windows设置python环境

上传人:第*** 文档编号:61704071 上传时间:2018-12-10 格式:DOCX 页数:13 大小:2.09MB
返回 下载 相关 举报
windows设置python环境_第1页
第1页 / 共13页
windows设置python环境_第2页
第2页 / 共13页
windows设置python环境_第3页
第3页 / 共13页
windows设置python环境_第4页
第4页 / 共13页
windows设置python环境_第5页
第5页 / 共13页
点击查看更多>>
资源描述

《windows设置python环境》由会员分享,可在线阅读,更多相关《windows设置python环境(13页珍藏版)》请在金锄头文库上搜索。

1、CS-1004, Introduction to Programming for Non-Majors, A-Term 2014Setting up Python 3.4 and numpy and matplotlibon your own Windows PC or laptopHugh C. Lauer Copyright 2014, Hugh C. Lauer. All rights reserved. Permission is given for use in courses at Worcester Polytechnic Institute, Worcester, Massac

2、husetts.Adjunct ProfessorWorcester Polytechnic InstituteProgramming assignments in CS-1004 will be in the programming language Python specifically, version 3.4 of Python. In addition, you will need several Python packages, including one called numpy (meaning “Numerical Python”) and one called matplo

3、tlib, a Python version of the popular Matlab system. The first part of this document provides instructions for installing Python 3.4 on Windows 7 and Windows 8 platforms. The second part of the document provides instructions on how to install additional Python packages, such as numpy and matplotlib.

4、 If you have a Macintosh or Linux computer or laptop, please refer to this documents instead: docx, pdf Public laboratory computers at WPI will have the same version of Python 3.4 and numpy installed on them for academic year 2014-2015. However, they will not have matplotlib or other additional pack

5、ages that may be specified during the term.In general, it is expected that assignments will be compatible among Windows, Macintosh, and Linux systems, provided that they all use compatible versions of Python and numpy. Note:There are two different, incompatible versions of Python in general use arou

6、nd the world Python 2.7 and Python 3.4. Significant changes to the Python language were made between Python 2.x and Python 3.y (for all values of x and y). The Python 3 language is cleaner, more self-consistent, and more user-friendly. Programs written for versions of Python 2 will not necessarily r

7、un on Python 3 installations; if they do run, they may get different answers to the same problem.That being said, a lot of legacy Python 2 code is still in use, and new Python 2.7 code is still being written and distributed by organizations that have not yet upgraded to Python 3. Not all Python 2 pa

8、ckages have been ported to Python 3.Installing Python 3.4 on Windows Systems It is useful to print out the relevant section of this document. If you read it on-screen, the dialog boxes of the installation tend to obscure the instructions of the document, just when you need them the most!, These inst

9、ructions have been tested on both Windows 7 and Windows 8.There are two variants of Python 3.4 for Windows a 32-bit version and a 64-bit version. Obviously, the 64-bit version requires a 64-bit Windows computer. Fortunately, most Windows PCs sold over the past few years are 64-bit. However, the 32-b

10、it version of Python can run on both 64-bit Windows PCs and 32-bit Windows PCs.For this course, we must use the 32-bit version of Python on Windows. The reason is that the official release of numpy is currently available for Windows only in 32-bit format.To obtain the correct version of Python, clic

11、k on this link python-3.4.1.msi and download the resulting file to a convenient folder or directory. Alternatively, you may browse tohttp:/www.cs.wpi.edu/cs1004/a14/Resourcesand download them from there. Note: If you go to an official Python download page, you will find a downloadable file named pyt

12、hon-3.4.1.amd64.msi. Do not install this! It is the 64-bit version, and it is not compatible with the currently available version of numpy.Double-click on the file python-3.4.1.msi to start the installation. You should be greeted by a dialog box resembling the following:Figure 1If you subsequently s

13、ee a dialog box resembling Figure 2 below for any version of Python 3, select Remove Python for that version. This is important. There may already be a 64-bit Python installed without your knowing it, and this will cause problems with the installation of numpy and matplotlib. Removing Python will ta

14、ke several minutes and may require you to confirm in one or more additional dialog boxes.Figure 2After you have removed your previous version of Python, click Finish and start over at Figure 1. After clicking Next, you should see a dialog box resembling the following:Figure 3Whether you choose to in

15、stall “for all users” or just for yourself is a matter of personal preference. Click Next to bring up the following dialog box.Figure 4Click Next to select the default directory. If it tells you the directory already exists and asks if you are sure that you want to overwrite existing files, click Ye

16、s. In the next dialog box (Figure 5 below), you may customize the installation. Simply click Next without making any changes.Figure 5The installation should begin and will take several minutes and may require confirmation in additional dialog boxes. On some computers, these additional dialog boxes are occasionally hidden behind other windows. If nothing seems to be happening, try clicking on

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 办公文档 > 解决方案

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号