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

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

如何解决:

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

python3 -m pip install django

 示意图: 

 

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

python2 -m pip install django

 

示意图:

 

卸载操作:

python3 -m pip uninstall django

 

 

python2 -m pip uninstall django

 

posted @ 2019-03-04 22:58  局长  阅读(2596)  评论(0编辑  收藏  举报