mkvirtualenv: 未找到命令的解决方法
2018-02-08 20:28
232 查看
1.升级python包管理工具pip
mkdir $HOME/.virtualenvs
2.在~/.bashrc中添加行:
export WORKON_HOME=$HOME/.virtualenvs
source /usr/local/bin/virtualenvwrapper.sh
3.运行:
source ~/.bashrc3.创建python虚拟环境
rmvirtualenv [虚拟环境名称]
pip install --upgrade pip 备注:当你想升级一个包的时候 `pip install --upgrade 包名`2.python虚拟环境安装
sudo apt-get install python-virtualenv sudo easy_install virtualenvwrapper上述工具装好后找不到mkvirtualenv命令,需要执行以下环境变量设置。1.创建目录用来存放虚拟环境
mkdir $HOME/.virtualenvs
2.在~/.bashrc中添加行:
export WORKON_HOME=$HOME/.virtualenvs
source /usr/local/bin/virtualenvwrapper.sh
3.运行:
source ~/.bashrc3.创建python虚拟环境
mkvirtualenv [虚拟环境名称] workon [虚拟环境名称]4.退出虚拟环境 离开 deactivate5.删除(慎用)
rmvirtualenv [虚拟环境名称]
相关文章推荐
- pip3 安装gunicorn后,运行提示无法找到命令时的解决方法
- hadoop学习笔记二之未找到hadoop命令时的解决方法
- MacOS Sierra 安装 爬虫Scrapy或虚拟环境扩展包virtualenvwrapper,报Uninstalling six-1.4.1的解决方法
- mkvirtualenv command not found解决
- ubuntu下,py2,py3共存,/usr/bin/python: No module named virtualenvwrapper错误解决方法
- windows安装cygwin运行shell脚本 $'\r': 未找到命令的解决方法
- MacOS Sierra 安装 爬虫Scrapy或虚拟环境扩展包virtualenvwrapper,报Uninstalling six-1.4.1的解决方法
- makecc 命令未找到的解决方法
- 执行 pod install后提示 -bash: pod: command not found(未找到命令)的解决方法
- make:cc 命令未找到的解决方法
- samba安装卸载后再安装 不能找到smbpasswd命令的解决方法
- Centos7 ifconfig这个命令没找到的解决方法
- bash: service: command not found(service命令未找到的) 错误的解决方法
- 解决:make:cc 命令未找到的解决方法
- 在网上找到的一个解决mysql命令窗口一闪而过的有效方法
- fedora make: gcc:命令未找到(解决方法)
- ubuntu编译安卓内核时arm-eabi-gcc :命令未找到的解决方法
- "/bin 不在PATH 环境变量中,故无法找到该命令"的一种解决方法
- cygwin下关于 $'\r': 未找到命令的解决方法
- Ubuntu/Debian下 apt-get command not found 命令无法找到的解决方法