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