|
发表于 2020-7-9 09:35:06
|
显示全部楼层
养成良好的开发习惯,每一个项目都使用 virtualenv
- # divinerapier @ zephyrus in ~/venv [9:34:29] C:130
- $ pip install virtualenv -i https://mirrors.aliyun.com/pypi/simple
- # divinerapier @ zephyrus in ~ [9:33:07]
- $ which python
- /usr/sbin/python
- # divinerapier @ zephyrus in ~ [9:33:11]
- $ python -V
- Python 3.8.3
- # divinerapier @ zephyrus in ~ [9:33:13]
- $ virtualenv -p /usr/sbin/python --no-download venv
- created virtual environment CPython3.8.3.final.0-64 in 267ms
- creator CPython3Posix(dest=/home/divinerapier/venv, clear=False, global=False)
- seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/divinerapier/.local/share/virtualenv)
- added seed packages: pip==20.1.1, setuptools==49.1.0, wheel==0.34.2
- activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
- # divinerapier @ zephyrus in ~ [9:33:44]
- $ cd venv
- # divinerapier @ zephyrus in ~/venv [9:33:48]
- $ source bin/activate
- (venv)
- # divinerapier @ zephyrus in ~/venv [9:34:03]
- $ which python
- /home/divinerapier/venv/bin/python
- (venv)
- # divinerapier @ zephyrus in ~/venv [9:34:06]
- $ which pip
- /home/divinerapier/venv/bin/pip
- (venv)
- # divinerapier @ zephyrus in ~/venv [9:34:09]
- $
复制代码 |
|