Created
January 10, 2020 05:53
-
-
Save aemonair/7566cfe8905b498e6eeedc4c86a5e1c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0.导出环境 | |
#使用pip导出当前环境所有依赖包信息文件 | |
pip3 freeze > req.txt | |
导出 安装包 | |
# 下载所有依赖包到本地 | |
pip3 download -r req.txt -d packages | |
(可选 -i https://pypi.douban.com/simple) | |
1.安装python3.7 | |
2.安装pycharm | |
3.搭建环境: | |
3.1创建虚拟环境 | |
使用virtual.txt安装virtualenv; | |
pip install --no-index --find-links=packages -r virtual.txt | |
或者 pip install virtualenv-16.7.5-py2.py3-none-any.whl | |
创建名为python_venv的虚拟环境; | |
virtualenv --python=python python_venv | |
检查环境 | |
where python | |
call python_venv/Scripts/activate | |
python -V | |
where python | |
3.2 安装依赖项 | |
pip install --no-index --find-links=packages -r req.txt | |
4.打开pyCharm,进行配置, | |
打开vnpy,File-setting-Project Interpreter,show All,+Virtualenv Environment, | |
选择已经存在的 虚拟环境,python_venv,Apply |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment