Ubuntu下安装Python和Pytorch1.0

本文详细介绍了如何在Linux环境下安装Python3.6、pip3,并提供了PyTorch的安装步骤及常见错误解决方案,如pip3命令未找到、特定版本的PyTorch不支持当前平台等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1、安装python3.6

https://blog.youkuaiyun.com/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.youkuaiyun.com/fengzhen8023/article/details/82927776

执行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.
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值