在一个系统中,如果同时存在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" '

 

相关文章:

  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-10
  • 2021-07-21
  • 2022-12-23
  • 2022-02-05
  • 2021-11-12
  • 2022-12-23
  • 2021-09-24
相关资源
相似解决方案