我似乎丢失了 Mac 上的所有 python 包。
我输入下面的命令从python3.6升级到python3.7:
brew upgrade python
现在当我进入ipython3终端时,它说:
-bash: /usr/local/bin/ipython3: /usr/local/opt/python/bin/python3.6: bad interpreter: No such file or directory
但是,ipython3在执行 brew 升级之前,我能够使用片刻。此外,我想我已经丢失了所有的 python 包,因为当我在 Python3 中执行导入模块时,它说:
ModuleNotFoundError: No module named *examplepythonpackage*
我之前安装的 python 包是否都丢失了,我现在是否必须单独重新安装它们?
我也无法运行(在 bash 终端中)$ipython3
-bash: /usr/local/bin/ipython3: /usr/local/opt/python/bin/python3.6: bad interpreter: No such file or directory
以供参考:
$ which python
/usr/bin/python
$ which python3
/usr/local/bin/python3
$ pip --version
pip 18.1 from /Library/Python/2.7/site-packages/pip-18.1-py2.7.egg/pip (python 2.7)
$ pip3 --version
pip 18.1 from /usr/local/lib/python3.7/site-packages/pip (python 3.7)
鸿蒙传说
相关分类