
4

Python 虚拟环境设置 与 模块安装
source link: https://yjalifebook.com/python-%e8%99%9a%e6%8b%9f%e7%8e%af%e5%a2%83%e8%ae%be%e7%bd%ae/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Python 虚拟环境设置 与 模块安装
Python 虚拟环境设置
首先需要有 pip 包管理工具,使用pip --version
查看是否已经安装。
安装 virtualenv 工具:pip install virtualenv
创建一个新的虚拟环境:virtualenv .envpython
激活虚拟环境:
For Macsource .envpython/bin/activate
For Windows.envpython
\Scripts\activate
关闭虚拟环境:deactivate
python 模块安装
pip install -r requirements.txt
Reference:
Python Virtual Environments – 11.2014
欢迎大家关顾我的Facebook主页「Y Life Book」以及我的公众微信号「不点语书」,我们下期见。
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK