sh Virtualenv安装
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh Virtualenv安装相关的知识,希望对你有一定的参考价值。
#!/bin/bash
echo "Delete old enviorement_________"
rm -rf virtualenv
echo -e "Done\n"
echo "Install virtualenv_____________"
pip install virtualenv
echo -e "Done\n"
echo "Create environment_____________"
if command -v python3 &>/dev/null; then
echo "Python3 found..."
virtualenv -p python3 virtualenv
else
echo "Python3 not found..."
virtualenv virtualenv
fi
echo -e "Done\n"
echo "Start environment______________"
source virtualenv/bin/activate
echo -e "Done\n"
echo "Install requirements.apt_______"
if [ -s "requirements.apt" ]
then
sudo apt-get install $(cat requirements.apt)
fi
echo -e "Done\n"
echo "Install requirements.txt_______"
if [ -s "requirements.txt" ]
then
pip install -r requirements.txt
fi
echo -e "Done\n"
echo "[Finished]"
以上是关于sh Virtualenv安装的主要内容,如果未能解决你的问题,请参考以下文章
sh 在Ubuntu 12.04上将Pygame 1.9.1安装到Python2.7 virtualenv中的脚本。确保在运行thi之前激活了virtualenv
[Mac][Python][Virtualenv]安装配置和使用
安装virtualenv
安装virtualenv后,找不到mkvirtualenv和workon
sh 使用pyenv-virtualenv强制virtualenv快速更改
sh zsh插件自动激活本地virtualenv