pip: bad interpreter: /../ no such file or directory

huangapple go评论69阅读模式
英文:

pip: bad interpreter: /../ no such file or directory

问题

我无法使用pip,出现错误:

pip: 坏的解释器: /Applications/Xcode.app/Contents/Developer/usr/bin/python3: 没有那个文件或目录

我尝试过:

brew link --overwrite python
python3 -m pip install whatever
brew install python

brew postinstall python

但都没有起作用。

英文:

I can't use pip I get an error

pip: bad interpreter: /Applications/Xcode.app/Contents/Developer/usr/bin/python3: no such file or directory 

I try:

brew link --overwrite python 
python3 -m pip install whatever
brew install python

brew postinstall python

but nothing works.

答案1

得分: 1

一些方式,Python3 命令在系统中被您搞乱了。您需要重置它。

只需运行以下命令:

set python3=/usr/bin/python3

现在您可以使用 pip

英文:

somehow python3 cmd is messed up in system by you. you need to reset it.

just run the command

set python3=/usr/bin/python3

now you can use pip

huangapple
  • 本文由 发表于 2023年2月18日 08:27:28
  • 转载请务必保留本文链接:https://go.coder-hub.com/75490369.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定