Unable to install pyindex and nvidia-tlt in AGX Xavier

**• Hardware Platform : Jetson AGX Xavier
**• DeepStream Version : 5.0
**• JetPack Version : 4.4[L4T 32.4.3]
**• TensorRT Version : 7.1.3.0
**• NVIDIA GPU Driver Version : R32 (release), REVISION: 4.3, GCID: 21589087, BOARD: t186ref, EABI: aarch64
• Unable to install pyindex and nvidia-tlt in AGX Xavier
*• I have tried to install the following packages in AGX Xavier machine
pip3 install nvidia-pyindex
pip3 install nvidia-tlt
(
also tried with sudo permission also)

pip3 install nvidia-pyindex

It showed error as :
Complete output from command /usr/bin/python3 -u -c “import setuptools, tokenize;file=’/tmp/pip-build-s5h9uasg/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-utkxqsgm-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-s5h9uasg/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-s5h9uasg/nvidia-pyindex/setup.py", line 269, in <module>
    packages=find_packages(),
  File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 129, 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-s5h9uasg/nvidia-pyindex/setup.py", line 160, in run
    _install_nvidia_pypi_index()
  File "/tmp/pip-build-s5h9uasg/nvidia-pyindex/setup.py", line 59, in _install_nvidia_pypi_index
    config_filedict = get_configuration_files()
  File "/tmp/pip-build-s5h9uasg/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-s5h9uasg/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-utkxqsgm-record/install-record.txt --single-version-externally-managed --compile” failed with error code 1 in /tmp/pip-build-s5h9uasg/nvidia-pyindex/

pip3 install nvidia-tlt
The following error is for nvidia-tlt:

Complete output from command python setup.py egg_info:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-build-NPXyLQ/nvidia-tlt/setup.py", line 129
    print(new_line, end='')
                       ^
SyntaxError: invalid syntax

----------------------------------------

Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-NPXyLQ/nvidia-tlt/

Both the above packages are tried in pip and pip3

Can you please help me out this.

Hi,

TLT need to be used on an x86 environment.
Once the training job is finished, you can inference the model with Deepstream/TensorRT on the Jetson.

https://docs.nvidia.com/metropolis/TLT/tlt-user-guide/text/requirements_and_installation.html

Thanks.

1 Like

Ok. Thanks. I will do the training as per the guidelines in the link and will test accordingly

Thank you for the assistance.