在一个系统中,如果同时存在python2和python3,在cmd.exe程序下执行pip、pip2或者pip3均会报错。

如何解决:

如果是在python3环境下,使用pip安装扩展库,可以使用以下指令:

python3 -m pip install django

 示意图: 

python pip使用报错:  Fatal error in launcher: Unable to create process using '"c:\python27\python.exe"  "C:\Python27\Scripts\pip.exe" '

 

如果是在python2环境下,使用pip安装扩展库,可以使用以下指令:

python2 -m pip install django

 

示意图:

python pip使用报错:  Fatal error in launcher: Unable to create process using '"c:\python27\python.exe"  "C:\Python27\Scripts\pip.exe" '

 

卸载操作:

python3 -m pip uninstall django

 

 

python2 -m pip uninstall django

python pip使用报错:  Fatal error in launcher: Unable to create process using '"c:\python27\python.exe"  "C:\Python27\Scripts\pip.exe" '

 

相关文章: