1.将C:\Python34中的python.exe改名为python3.exe,同时将C:\Python34\Scripts中的pip.exe删除
效果图:
2.在环境变量PATH中添加:
C:\Python27;C:\Python27\Scripts;C:\Python34;C:\Python34\Scripts
3.测试:
C:\Users\wanlifeipeng>python -V Python 2.7.10 C:\Users\wanlifeipeng>python3 -V Python 3.4.3 C:\Users\wanlifeipeng>pip -V pip 9.0.1 from C:\Python27\lib\site-packages (python 2.7) C:\Users\wanlifeipeng>pip3 -h Fatal error in launcher: Unable to create process using '"C:\Python34\python.exe"
发现pip3 有些问题,其实只要升级一下就可以了
C:\Users\wanlifeipeng>python3 -m pip install -U pip C:\Users\wanlifeipeng>pip3 -V pip 9.0.1 from C:\Python34\lib\site-packages (python 3.4)
至此大功告成。