Python.h: No such file or directory #include "Python.h"

When I execute command ‘sudo python3 setup.py install’ to install torchvision on NX,it prompt me as shown below:

Building wheel torchvision-0.6.0a0+b68adcf
running install
running bdist_egg
running egg_info
writing torchvision.egg-info/PKG-INFO
writing dependency_links to torchvision.egg-info/dependency_links.txt
writing requirements to torchvision.egg-info/requires.txt
writing top-level names to torchvision.egg-info/top_level.txt
/usr/local/lib/python3.6/dist-packages/torch/utils/cpp_extension.py:304: UserWarning: Attempted to use ninja as the BuildExte
warnings.warn(msg.format(‘we could not find ninja.’))
reading manifest file ‘torchvision.egg-info/SOURCES.txt’
reading manifest template ‘MANIFEST.in’
warning: no previously-included files matching ‘pycache’ found under directory ‘
warning: no previously-included files matching '
.py[co]’ found under directory ‘*’
writing manifest file ‘torchvision.egg-info/SOURCES.txt’
installing library code to build/bdist.linux-aarch64/egg
running install_lib
running build_py
copying torchvision/version.py -> build/lib.linux-aarch64-3.6/torchvision
running build_ext
building ‘torchvision._C’ extension
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdlib/python3.6/dist-packages/torch/include -I/usr/local/lib/python3.6/dist-packages/torch/include/torch/csrc/api/include -I/us-I/usr/local/cuda/include -I/usr/include/python3.6m -c /home/pqai/Downloads/torchvision/torchvision/csrc/vision.cpp -o build/ -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=1 -std=c++14
/home/pqai/Downloads/torchvision/torchvision/csrc/vision.cpp:1:10: fatal error: Python.h: No such file or directory
#include <Python.h>
^~~~~~~~~~
compilation terminated.
error: command ‘aarch64-linux-gnu-gcc’ failed with exit status 1

Then I try to install python3-dev,my python3 version is 3.6.9,it prompt me as shown below:

==============================================================================
Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
python3-dev : Depends: python3 (= 3.6.5-3) but 3.6.7-1~18.04 is to be installed
Depends: libpython3-dev (= 3.6.5-3) but it is not going to be installed
Depends: python3.6-dev (>= 3.6.5-2~) but it is not going to be installed

OK!I try to install python3.6-dev,but it prompt me as shown below:

==============================================================================
Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
python3.6-dev : Depends: python3.6 (= 3.6.5-3) but 3.6.9-1~18.04 is to be installed
Depends: libpython3.6-dev (= 3.6.5-3) but it is not going to be installed
Depends: libpython3.6 (= 3.6.5-3) but 3.6.9-1~18.04 is to be installed
E: Unable to correct problems, you have held broken packages.

I realy don’t know how to reslove this problem!

I solved this problem after repainted nx img.