安装使用 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
来源:CSDN
作者:sha_ka
链接:https://blog.csdn.net/sha_ka/article/details/103696166