pytorch-book icon indicating copy to clipboard operation
pytorch-book copied to clipboard

Virtual environment

Open iydon opened this issue 5 years ago • 0 comments

忘记书里面怎么讲虚拟环境了, 或许可以考虑替代 requirements.txt 文件, 比如 Pipfile (项目根目录), 一方面安装方式简化了 (pipenv install), 另一方面, 可以更好确定各个库的版本及依赖关系. 比如下面我使用的例子:

[[source]]
name = "pypi"
url = "https://pypi.mirrors.ustc.edu.cn/simple"
verify_ssl = true

[dev-packages]

[packages]
torch = "==1.3.1"
torchvision = "*"
tqdm = "*"
fire = "*"
visdom = "*"
torchnet = "*"

[requires]
python_version = "3.7"

iydon avatar Dec 02 '19 04:12 iydon