出现该错误,说明该版本不适合系统安装,可以尝试下载
torch-0.3.0.post4-cp27-cp27mu-linux_x86_64.whl 版本
pip install torch-0.3.0.post4-cp27-cp27mu-linux_x86_64.whl
Processing ./torch-0.3.0.post4-cp27-cp27mu-linux_x86_64.whl
Requirement already satisfied: numpy in /home/miao/deep_ocr_env/lib/python2.7/site-packages (from torch==0.3.0.post4) (1.12.1)
Collecting pyyaml (from torch==0.3.0.post4)
Downloading https://files.pythonhosted.org/packages/4a/85/db5a2df477072b2902b0eb892feb37d88ac635d36245a72a6a69b23b383a/PyYAML-3.12.tar.gz (253kB)
100% |████████████████████████████████| 256kB 30kB/s
Building wheels for collected packages: pyyaml
Running setup.py bdist_wheel for pyyaml ... done
Stored in directory: /home/miao/.cache/pip/wheels/03/05/65/bdc14f2c6e09e82ae3e0f13d021e1b6b2481437ea2f207df3f
Successfully built pyyaml
Installing collected packages: pyyaml, torch
Successfully installed pyyaml-3.12 torch-0.3.0.post4