如何解决Shell 试图在打开时运行 /usr/bin/virtualenvwrapper.sh
我对 Python(在 MacOS Big Sur 11.2 版上使用 Python 3.8.5)+ 编码非常陌生。我尝试使用 pyenv 创建虚拟环境,但都没有成功。现在,当我打开终端时,它说:
bash: /usr/local/bin/virtualenvwrapper.sh: No such file or directory
-bash: /usr/local/bin/virtualenvwrapper.sh: No such file or directory
-bash: pyenv: command not found
-bash: /Users/frankiechiappetta/.pyenv/versions/3.7.3/bin/virtualenvwrapper.sh: No such file or directory
-bash: /Users/frankiechiappetta/.pyenv/versions/3.7.3/bin/virtualenvwrapper.sh: No such file or directory
The default interactive shell is now zsh.
首先:我尝试编辑我的 bash_profile,当我运行 echo $PATH
时,我的路径如下所示:
/Users/frankiechiappetta/opt/anaconda3/bin:/Users/frankiechiappetta/opt/anaconda3/condabin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:Library/Python/3.8/bin:
我已经检查过了
~/.bashrc
,~/.bash_profile
,~/.bash_login
,~/.profile
用于“/usr/bin/virtualenvwrapper.sh”,但我在任何地方都找不到。我也找不到 .pyenv/versions/3.7.3/bin/virtualenvwrapper.sh。
第二:我很困惑,因为我的默认 shell 是 bash,但出于某种原因,每次我打开终端时,它都说我的交互式 shell 现在是 zsh。
如何编辑我的 bash_profile 以便在打开终端时不会出现这种情况?我什至不知道这里发生了什么,所以请原谅我的新手。我今天做了很多研究和故障排除,但到目前为止没有任何效果。感谢您的帮助!
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。