【发布时间】:2020-08-18 14:51:38
【问题描述】:
我目前正在使用 mac,每当我启动终端时,它都会显示如下代码。我尝试了stackoverflow中的所有方法,但没有成功,所以我发布了我自己的方法。 请帮我解决这个问题。我试过“sudo apt-get install python3-pip”或“sudo pip3 install virtualenvwrapper”。都安装好了
留言
Last login: Tue Aug 18 22:33:59 on ttys000
virtualenvwrapper_run_hook:12: no such file or directory: /usr/local/bin/python3
virtualenvwrapper.sh: There was a problem running the initialization hooks.
If Python could not import the module virtualenvwrapper.hook_loader,
check that virtualenvwrapper has been installed for
VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python3 and that PATH is
set properly.
哪个python命令
/usr/bin/python
Python 版本命令
Python 2.7.16
哪个python3命令
/Library/Frameworks/Python.framework/Versions/3.7/bin/python3
Python version3 命令
Python 3.7.4
pip3 --version 命令
pip 19.3.1 from /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip (python 3.7)
【问题讨论】:
-
错误出现在什么命令之后?如果你已经在 bash 文件中设置好了,也请分享一下
-
我没有发表任何评论。当我打开终端时会出现这个错误