tensorflow2 + torch1.3

virtualenv --system-site-packages -p python3 ./tf2
source ./tf2/bin/activate
pip install --upgrade pip
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple numpy
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple scipy
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple matplotlib
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple jupyter
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple notebook==5.7.4
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pandas
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow-gpu
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple sklearn
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple torch torchvision #torch 1.3.1, torchvision 0.4.2 https://download.pytorch.org/whl/torch_stable.html
pip install bottleneck==1.2.1 #1.3.0安装错误
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple fastai

jupyter notebook 出现连接错误

Downgrade Tornado to 5.1.1 from 6.0, that will solve it.

猜你喜欢

转载自www.cnblogs.com/medsci/p/11881512.html