ubuntu安装 pyenv&pyenv-virtualenv&pipenv

随声附和 提交于 2019-12-26 06:09:47

安装使用 pyenv&pyenv-virtualenv

pyenv 安装

git clone https://github.com/pyenv/pyenv.git ~/.pyenv

添加环境变量:

echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bashrc
source ~/.bashrc

pyenv-virtualenv 安装

git clone https://github.com/pyenv/pyenv-virtualenv.git ~/.pyenv/plugins/pyenv-virtualenv

添加环境变量:

echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc
source ~/.bashrc

参考:https://www.jb51.net/article/174740.htm

使用:https://msd.misuland.com/pd/3255817928875967886

安装使用 pipenv

参考:https://www.jianshu.com/p/00af447f0005

https://www.jianshu.com/p/00af447f0005

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!