Hello @mehmetdeniz
Still having the same issues using l4t-ml :
python3 -m pip install nvidia-pyindex
Collecting nvidia-pyindex
Downloading https://files.pythonhosted.org/packages/40/e6/56a6909f95409a31865399282f5f5a1692e89e7f5f5c5e7633d201e0fbd0/nvidia-pyindex-1.0.6.tar.gz
Building wheels for collected packages: nvidia-pyindex
Running setup.py bdist_wheel for nvidia-pyindex … error
Complete output from command /usr/bin/python3 -u -c “import setuptools, tokenize;file=‘/tmp/pip-build-j8u6vfmd/nvidia-pyindex/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” bdist_wheel -d /tmp/tmp49pmgcohpip-wheel- --python-tag cp36:
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/nvidia_pyindex
copying nvidia_pyindex/init.py → build/lib/nvidia_pyindex
copying nvidia_pyindex/utils.py → build/lib/nvidia_pyindex
copying nvidia_pyindex/cmdline.py → build/lib/nvidia_pyindex
running egg_info
writing nvidia_pyindex.egg-info/PKG-INFO
writing dependency_links to nvidia_pyindex.egg-info/dependency_links.txt
writing entry points to nvidia_pyindex.egg-info/entry_points.txt
writing top-level names to nvidia_pyindex.egg-info/top_level.txt
reading manifest file ‘nvidia_pyindex.egg-info/SOURCES.txt’
reading manifest template ‘MANIFEST.in’
writing manifest file ‘nvidia_pyindex.egg-info/SOURCES.txt’
installing to build/bdist.linux-aarch64/wheel
running install
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
COMMAND: InstallCommand
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
/bin/sh: 1: nvidia_pyindex: not found
Traceback (most recent call last):
File “/tmp/pip-build-j8u6vfmd/nvidia-pyindex/nvidia_pyindex/utils.py”, line 17, in get_configuration_files
output = subprocess.check_output(command, stderr=subprocess.STDOUT)
File “/usr/lib/python3.6/subprocess.py”, line 356, in check_output
**kwargs).stdout
File “/usr/lib/python3.6/subprocess.py”, line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command ‘[’/usr/bin/python3’, ‘-c’, ‘from pip._internal.configuration import get_configuration_files; print(get_configuration_files())’]’ returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “”, line 1, in
File “/tmp/pip-build-j8u6vfmd/nvidia-pyindex/setup.py”, line 269, in
packages=find_packages(),
File “/usr/local/lib/python3.6/dist-packages/setuptools/init.py”, line 153, in setup
return distutils.core.setup(**attrs)
File “/usr/lib/python3.6/distutils/core.py”, line 148, in setup
dist.run_commands()
File “/usr/lib/python3.6/distutils/dist.py”, line 955, in run_commands
self.run_command(cmd)
File “/usr/lib/python3.6/distutils/dist.py”, line 974, in run_command
cmd_obj.run()
File “/usr/local/lib/python3.6/dist-packages/wheel/bdist_wheel.py”, line 335, in run
self.run_command(‘install’)
File “/usr/lib/python3.6/distutils/cmd.py”, line 313, in run_command
self.distribution.run_command(command)
File “/usr/lib/python3.6/distutils/dist.py”, line 974, in run_command
cmd_obj.run()
File “/tmp/pip-build-j8u6vfmd/nvidia-pyindex/setup.py”, line 160, in run
_install_nvidia_pypi_index()
File “/tmp/pip-build-j8u6vfmd/nvidia-pyindex/setup.py”, line 59, in _install_nvidia_pypi_index
config_filedict = get_configuration_files()
File “/tmp/pip-build-j8u6vfmd/nvidia-pyindex/nvidia_pyindex/utils.py”, line 21, in get_configuration_files
raise RuntimeError(output) from e
RuntimeError: Traceback (most recent call last):
File “”, line 1, in
ModuleNotFoundError: No module named ‘pip._internal’
Failed building wheel for nvidia-pyindex
Running setup.py clean for nvidia-pyindex
Failed to build nvidia-pyindex
Installing collected packages: nvidia-pyindex
Running setup.py install for nvidia-pyindex … error
Complete output from command /usr/bin/python3 -u -c “import setuptools, tokenize;file=‘/tmp/pip-build-j8u6vfmd/nvidia-pyindex/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record /tmp/pip-1hybbt22-record/install-record.txt --single-version-externally-managed --compile:
running install
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
COMMAND: InstallCommand
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
/bin/sh: 1: nvidia_pyindex: not found
Traceback (most recent call last):
File “/tmp/pip-build-j8u6vfmd/nvidia-pyindex/nvidia_pyindex/utils.py”, line 17, in get_configuration_files
output = subprocess.check_output(command, stderr=subprocess.STDOUT)
File “/usr/lib/python3.6/subprocess.py”, line 356, in check_output
**kwargs).stdout
File “/usr/lib/python3.6/subprocess.py”, line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command ‘[’/usr/bin/python3’, ‘-c’, ‘from pip._internal.configuration import get_configuration_files; print(get_configuration_files())’]’ returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-j8u6vfmd/nvidia-pyindex/setup.py", line 269, in <module>
packages=find_packages(),
File "/usr/local/lib/python3.6/dist-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/tmp/pip-build-j8u6vfmd/nvidia-pyindex/setup.py", line 160, in run
_install_nvidia_pypi_index()
File "/tmp/pip-build-j8u6vfmd/nvidia-pyindex/setup.py", line 59, in _install_nvidia_pypi_index
config_filedict = get_configuration_files()
File "/tmp/pip-build-j8u6vfmd/nvidia-pyindex/nvidia_pyindex/utils.py", line 21, in get_configuration_files
raise RuntimeError(output) from e
RuntimeError: Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'pip._internal'
----------------------------------------
Command “/usr/bin/python3 -u -c “import setuptools, tokenize;file=‘/tmp/pip-build-j8u6vfmd/nvidia-pyindex/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record /tmp/pip-1hybbt22-record/install-record.txt --single-version-externally-managed --compile” failed with error code 1 in /tmp/pip-build-j8u6vfmd/nvidia-pyindex/
Also if I run :
python3
Python 3.6.9 (default, Oct 8 2020, 12:12:24)
[GCC 8.4.0] on linux
Type “help”, “copyright”, “credits” or “license” for more information.
import tensorrt as trt
trt.version
Traceback (most recent call last):
File “”, line 1, in
AttributeError: module ‘tensorrt’ has no attribute ‘version’