windows下多版本python安装
python下载地址
https://www.python.org/downloads/windows/
下载并安装对应版本
python27
python36
配置环境变量
PATH中添加D:\Python27;D:\Python27\Scripts;D:\Python36;D:\Python36\Scripts
修改D:\Python27目录下的python.exe和pythonw.exe
改名为:python2.exe和pythonw2.exe
在cmd中进行测试,显示结果如下:
C:\Users\Administrator>python2
Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:19:22) [MSC v.1500 32 bit (Intel)]
on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> quit()
C:\Users\Administrator>python
Python 3.6.0b2 (v3.6.0b2:b9fadc7d1c3f, Oct 10 2016, 20:36:51) [MSC v.1900 32 bit (Intel)]
on win32
Type "help", "copyright", "credits" or "license" for more information.
python2.7版本安装科学栈
#查看
python2 -m pip list
#更新pip
python2 -p pip install --upgrade pip
#安装numpy
python2 -m pip install numpy
python36安装科学栈
#查看
python -m pip list
#更新pip
python -p pip install --upgrade pip
#安装numpy
python -m pip install numpy
也可以直接下载文件,解压到lib目录下
科学栈镜像网址
http://www.lfd.uci.edu/~gohlke/pythonlibs/
https://www.python.org/downloads/windows/
下载并安装对应版本
python27
python36
配置环境变量
PATH中添加D:\Python27;D:\Python27\Scripts;D:\Python36;D:\Python36\Scripts
修改D:\Python27目录下的python.exe和pythonw.exe
改名为:python2.exe和pythonw2.exe
在cmd中进行测试,显示结果如下:
C:\Users\Administrator>python2
Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:19:22) [MSC v.1500 32 bit (Intel)]
on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> quit()
C:\Users\Administrator>python
Python 3.6.0b2 (v3.6.0b2:b9fadc7d1c3f, Oct 10 2016, 20:36:51) [MSC v.1900 32 bit (Intel)]
on win32
Type "help", "copyright", "credits" or "license" for more information.
python2.7版本安装科学栈
#查看
python2 -m pip list
#更新pip
python2 -p pip install --upgrade pip
#安装numpy
python2 -m pip install numpy
python36安装科学栈
#查看
python -m pip list
#更新pip
python -p pip install --upgrade pip
#安装numpy
python -m pip install numpy
也可以直接下载文件,解压到lib目录下
科学栈镜像网址
http://www.lfd.uci.edu/~gohlke/pythonlibs/