ERROR: virtualenvwrapper could not find virtualenv in your path

ERROR: virtualenvwrapper could not find virtualenv in your path,第1张

概述环境: Ubuntu 18.04 Python3 使用pip3安装virtualenv和virtualenvwrapper两个包,ubuntu18.04中,用户使用pip安装的包在~/.local/下,在.bashrc中添加的配置如下: # Python Virtualenv Settingsexport WORKON_HOME=~/.virtualenvsexport VIRTUALENV

环境:

Ubuntu 18.04 python3

使用pip3安装virtualenvvirtualenvwrapper两个包,ubuntu18.04中,用户使用pip安装的包在~/.local/下,在.bashrc中添加的配置如下:

# Python Virtualenv Settingsexport WORKON_HOME=~/.virtualenvsexport VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3source ~/.local/bin/virtualenvwrapper.sh

使用mkvirtualenv创建虚拟环境时,报错如下:

[email protected]:~$ mkvirtualenv remoteERROR: virtualenvwrapper Could not find virtualenv in your path

提示virtualenv 不在环境中,需要在配置文件添加virtualenv的路径进去,具体配置如下:

# Python Virtualenv Settingsexport WORKON_HOME=~/.virtualenvsexport VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3# 指定virtualenv的路径export VIRTUALENVWRAPPER_VIRTUALENV=~/.local/bin/virtualenvsource ~/.local/bin/virtualenvwrapper.sh

然后重新加载.bashrc文件即可

总结

以上是内存溢出为你收集整理的ERROR: virtualenvwrapper could not find virtualenv in your path全部内容,希望文章能够帮你解决ERROR: virtualenvwrapper could not find virtualenv in your path所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://www.outofmemory.cn/langs/1190975.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-03
下一篇 2022-06-03

发表评论

登录后才能评论

评论列表(0条)

保存