Ubuntu下安装Python和Pytorch1.0

1、安装python3.6

https://blog.csdn.net/sunshine_zkf/article/details/82841955

2、安装pip3

cd /usr/local/bin

https://jingyan.baidu.com/article/b907e627766f7646e6891c46.html

3、安装pytorch


4、报错解决

command not found: pip3(I can't use pip3 though python3-pip has already been installed.) 

https://www.cnblogs.com/ECJTUACM-873284962/p/10702688.html

ImportError: cannot import name 'main'

https://blog.csdn.net/fengzhen8023/article/details/82927776

Ubuntu下安装Python和Pytorch1.0_第1张图片

执行pip3 install https://download.pytorch.org/whl/cpu/torch-1.1.0-cp36-cp36m-linux_x86_64.whl时

ERROR: torch-1.1.0-cp36-cp36m-linux_x86_64.whl is not a supported wheel on this platform.
 

你可能感兴趣的:(Pytorch,Ubuntu,深度学习实战)