ubuntu16.04源码安装PyTorch

Ubuntu16.04 64位, python3.5, 已装numpy, pip, git等
git clone --recursive https://github.com/pytorch/pytorch
pip install -r requirements.txt
python setup.py install(开始各种错误,调好错误以后再install)
错误:Could not find /home/april/pytorch/torch/lib/gloo/CMakeLists.txt
git submodule update --init --recursive (就是它提示的那句话)
错误:torch/lib/build_libs.sh: 行 143: cmake: 未找到命令
sudo apt install cmake
错误:torch/csrc/PtrWrapper.cpp:1:20: fatal error: Python.h: 没有那个文件或目录
sudo apt-get install python3-dev
sudo apt-get intall build-essential(还没试)
错误:command 'x86_64-linux-gnu-gcc' failed with exit status 1
sudo apt-get install gcc
python setup.py install
虚拟机,没装cuda,不知道接下来会怎样,反正python    import torch好了
先这样,试一试再说
2017.11.6
参考资料来源网上
git clone --recursive https://github.com/pytorch/pytorch
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值