问题描述
我对 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 (将#修改为@)