1、背景
环境:Ubuntu16.04 & titanx
作为新一代的人工智能训练平台的PYTORCH,有其独特的优势,为此,完整的安装这一平台,是开展所有工作的首要条件,一开始,笔者认为应该轻松的完成,但是发现实际上要从零完成这一工作,尤其是在NVIDIA TITANX 下,是需要3~4天的摸索的,为了便于后续的工作,也为了后面使用的童鞋,写下这篇文章,闲话少说,先上最终完成shell输出。
xxx@xxxUbuntu:~$ sudo pip3 install torch-1.2.0-cp35-cp35m-manylinux1_x86_64.whl
[sudo] xxx 的密码:
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
WARNING: The directory '/home/xxx/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Processing ./torch-1.2.0-cp35-cp35m-manylinux1_x86_64.whl
Collecting numpy
Downloading numpy-1.18.4-cp35-cp35m-manylinux1_x86_64.whl (20.0 MB)
|████████████████████████████████| 20.0 MB 19 kB/s
Installing collected packages: numpy, torch
Successfully installed numpy-1.18.4 torch-1.2.0
xxx@xxxUbuntu:~$ sudo pip3 install torchvision-0.4.0-cp35-cp35m-manylinux1_x86_64.whl
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
WARNING: The directory '/home/xxx/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Processing ./torchvision-0.4.0-cp35-cp35m-manylinux1_x86_64.whl
Requirement already satisfied: six in /usr/lib/python3/dist