mkvirtualenv 返回 zsh:找不到命令:mkvirtualenv

问题描述

我安装了 virtualenv 和 virtualenvwrapper。但是,当输入 mkvirtualenv 后跟我要创建的环境名称时,出现以下错误

TodosComponent:

const { data } = usetodos()

当我运行 virtualenvwrapper.sh 时:

@Laura-Macbook ~ % mkvirtualenv myapp 
zsh: command not found: mkvirtualenv

我的 ~/.zshrc 配置文件如下:

@Laura-Macbook ~ % virtualenvwrapper.sh
/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: No module named virtualenvwrapper
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/bin/python and that PATH is
set properly.

我尝试按照几个帖子的说明进行操作,但似乎无法解决!我在 these instructions 之后安装了 python 和 pyenv。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)