安裝Python Development Packages與PyTorch

一、官方說明

ython Development Packages

The Python functionality of this project is implemented through Python extension modules that provide bindings to the native C++ code using the Python C API. While configuring the project, the repo searches for versions of Python that have development packages installed on the system, and will then build the bindings for each version of Python that's present (e.g. Python 2.7, 3.6, and 3.7). It will also build numpy bindings for versions of numpy that are installed.

By default, Ubuntu comes with the libpython-dev and python-numpy packages pre-installed (which are for Python 2.7). Although the Python 3.6 interpreter is pre-installed by Ubuntu, the Python 3.6 development packages (libpython3-dev) and python3-numpy are not. These development packages are required for the bindings to build using the Python C API.

So if you want the project to create bindings for Python 3.6, install these packages before proceeding:

$ sudo apt-get install libpython3-dev python3-numpy

所以.....

我選 n,重下指令

$ sudo apt-get install libpython3-dev

下載與安裝中

Installing PyTorch

切換到指定目錄

$ cd jetson-inference/tools  JetPack4.4已經把install-pytorch.sh放到這裡了

$ ./install-pytorch.sh

舊版的安裝位置

新版的安裝位置

按空白建選擇,再按下Enter就可以安裝了

其實我也不知道我安裝要幹嘛啦...我應該沒要自己訓練模型

過程其實有點久喔....坦白說

如果沒把握還是就別裝了

等到我懷疑人生