ubuntu16.04ソースインストールPyTorch
1740 ワード
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