Pip3 not working on DPX2

I’m trying to use pip3 on a newly flashed Drive PX2 (Ubuntu 16.04), but I’m getting the following error:

Traceback (most recent call last):
  File "/usr/bin/pip3", line 11, in <module>
    sys.exit(main())
  File "/home/nvidia/.local/lib/python3.5/site-packages/pip/__init__.py", line 16, in main
    from pip._internal.utils.entrypoints import _wrapper
  File "/home/nvidia/.local/lib/python3.5/site-packages/pip/_internal/utils/entrypoints.py", line 3, in <module>
    from pip._internal.cli.main import main
  File "/home/nvidia/.local/lib/python3.5/site-packages/pip/_internal/cli/main.py", line 60
    sys.stderr.write(f"ERROR: {exc}")

In contrast, pip (python 2.7 ) works fine.

If pip is not an option, is there any other package manager that can be used for the PX2?

Any help would be great!

Dear @pascal.mater ,
May I know if pip is not enough? what libs you are looking to install?

In general, I’m not able to install any package with pip. Is there any other package manager I could install? or would I have to install everything via source?

Dear @pascal.mater,
It could be possible that the package does not match the requirements of python version.

 nvidia@tegra-ubuntu:/usr/local/driveworks$ pip install numpy
Collecting numpy
  Using cached https://files.pythonhosted.org/packages/d2/48/f445be426ccd9b2fb64155ac6730c7212358882e589cd3717477d739d9ff/numpy-1.20.1.zip
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-jYUGm_/numpy/setup.py", line 30, in <module>
        raise RuntimeError("Python version >= 3.7 required.")
    RuntimeError: Python version >= 3.7 required.
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-jYUGm_/numpy/
You are using pip version 8.1.1, however version 21.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

nvidia@tegra-ubuntu:/usr/local/driveworks$ pip install numpy==1.16.6
Collecting numpy==1.16.6
Downloading https://files.pythonhosted.org/packages/b7/6f/24647f014eef9b67a24adfcbcd4f4928349b4a0f8393b3d7fe648d4d2de3/numpy-1.16.6.zip (5.1MB)
100% |████████████████████████████████| 5.2MB 141kB/s
Building wheels for collected packages: numpy
Running setup.py bdist_wheel for numpy … |
done
Stored in directory: /home/nvidia/.cache/pip/wheels/cb/c2/c1/d99e8bf789c8dd07623af6be95e6a89984c85a05e31b8513c3
Successfully built numpy
Installing collected packages: numpy
Successfully installed numpy
nvidia@tegra-ubuntu:/usr/local/driveworks$ pip3 install numpy==1.16.6
Collecting numpy==1.16.6
Using cached https://files.pythonhosted.org/packages/b7/6f/24647f014eef9b67a24adfcbcd4f4928349b4a0f8393b3d7fe648d4d2de3/numpy-1.16.6.zip
Building wheels for collected packages: numpy
Running setup.py bdist_wheel for numpy … done
Stored in directory: /home/nvidia/.cache/pip/wheels/cb/c2/c1/d99e8bf789c8dd07623af6be95e6a89984c85a05e31b8513c3
Successfully built numpy
Installing collected packages: numpy
Successfully installed numpy

Dear @pascal.mater,
Do you have any questions furthur?