Python/virtualenv

来自康健生活
Kangkk​(留言 | 贡献)2022年1月10日 (一) 11:20的版本

引言

安装

1. 安装基础环境

/home/kangkk
sudo apt-get update
sudo apt-get install python3-pip python3-dev nginx

2. 安装 virtualenv

/home/kangkk
sudo pip install virtualenv

退出

/home/kangkk
deactivate
[jian@kang /home/kangkk]$
deactivate
DeprecationWarning: 'source deactivate' is deprecated. Use 'conda deactivate'.
/home/kangkk
conda deactivate

进入

/home/kangkk
mkdir ~/supervisor && cd ~/supervisor
virtualenv super
source super/bin/activate

切换

/home/kangkk
workon base