Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explain reason for pip message No matching distribution #10501

Closed
EdSeymore opened this issue Sep 22, 2021 · 9 comments
Closed

Explain reason for pip message No matching distribution #10501

EdSeymore opened this issue Sep 22, 2021 · 9 comments
Labels
C: error messages Improving error messages type: feature request Request for a new feature

Comments

@EdSeymore
Copy link

What's the problem this feature will solve?

I am trying to install tensorflow on Jetson Xavier NX with ubuntu 18.04, python3.8 and pip21.2.4 with
pip3 install tensorflow and get

  • ERROR: No matching distribution found for tensorflow
    This is the recommended method given in several sources online and paper books.

Describe the solution you'd like

I assume the error message is correct: something does not match.
I would like the specific mismatch: cpu, OS, python, pip or anything else which is causing this message.
Given that is difficult to determine, a list of potential candidates would be helpful.

Additional context

This seems to be common problem based upon google searches. There is one disturbing entry which says that some of the instructions may even be incorrect:
sudo pip3 install tensorflow
Ref: #5599

@di di transferred this issue from pypi/warehouse Sep 22, 2021
@DiddiLeija DiddiLeija added C: error messages Improving error messages type: feature request Request for a new feature labels Sep 22, 2021
@uranusjr
Copy link
Member

#5599 seems totally unrelated?

Also, would you be interested in drafting the message you have in mind and work on a pull request?

@EdSeymore
Copy link
Author

I totally do not understand why pip3 install tensorflow fails. If I manually search https://pypi.org/ I find tensorflow 6.2 which seems to match my system configuration. Many instructions to use pip to install packages for robot code recommend sudo pip3 install package_name which violates rule 2 in 5599 entry. My concern is that I have damaged my ubuntu system image in some way which is causing pip to fail. I am no expert with this seemly very complex environment. I am just trying to use python to explore the full range of robot implementation, not become an expert in the details of the various packages required.

@notatallshaw
Copy link
Contributor

I attempted to reproduce your issue with the instructions you gave and couldn't:

$ pip3 install tensorflow
Collecting tensorflow
  Downloading tensorflow-2.6.0-cp38-cp38-manylinux2010_x86_64.whl (458.4 MB)
     |████████████████████████████████| 458.4 MB 9.0 MB/s
Collecting absl-py~=0.10
  Downloading absl_py-0.14.0-py3-none-any.whl (131 kB)
     |████████████████████████████████| 131 kB 6.1 MB/s
Collecting google-pasta~=0.2
  Downloading google_pasta-0.2.0-py3-none-any.whl (57 kB)
     |████████████████████████████████| 57 kB 5.2 MB/s
Collecting tensorboard~=2.6
  Downloading tensorboard-2.6.0-py3-none-any.whl (5.6 MB)
     |████████████████████████████████| 5.6 MB 4.6 MB/s
Collecting tensorflow-estimator~=2.6
  Downloading tensorflow_estimator-2.6.0-py2.py3-none-any.whl (462 kB)
     |████████████████████████████████| 462 kB 4.1 MB/s
Collecting protobuf>=3.9.2
  Using cached protobuf-3.18.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB)
Collecting opt-einsum~=3.3.0
  Downloading opt_einsum-3.3.0-py3-none-any.whl (65 kB)
     |████████████████████████████████| 65 kB 4.7 MB/s
Collecting wheel~=0.35
  Using cached wheel-0.37.0-py2.py3-none-any.whl (35 kB)
Collecting gast==0.4.0
  Downloading gast-0.4.0-py3-none-any.whl (9.8 kB)
Collecting clang~=5.0
  Downloading clang-5.0.tar.gz (30 kB)
Collecting termcolor~=1.1.0
  Using cached termcolor-1.1.0.tar.gz (3.9 kB)
Collecting typing-extensions~=3.7.4
  Downloading typing_extensions-3.7.4.3-py3-none-any.whl (22 kB)
Collecting h5py~=3.1.0
  Downloading h5py-3.1.0-cp38-cp38-manylinux1_x86_64.whl (4.4 MB)
     |████████████████████████████████| 4.4 MB 4.3 MB/s
Collecting keras-preprocessing~=1.1.2
  Downloading Keras_Preprocessing-1.1.2-py2.py3-none-any.whl (42 kB)
     |████████████████████████████████| 42 kB 2.2 MB/s
Collecting grpcio<2.0,>=1.37.0
  Using cached grpcio-1.40.0-cp38-cp38-manylinux2014_x86_64.whl (4.3 MB)
Collecting six~=1.15.0
  Using cached six-1.15.0-py2.py3-none-any.whl (10 kB)
Collecting flatbuffers~=1.12.0
  Downloading flatbuffers-1.12-py2.py3-none-any.whl (15 kB)
Collecting numpy~=1.19.2
  Using cached numpy-1.19.5-cp38-cp38-manylinux2010_x86_64.whl (14.9 MB)
Collecting wrapt~=1.12.1
  Using cached wrapt-1.12.1.tar.gz (27 kB)
Collecting keras~=2.6
  Downloading keras-2.6.0-py2.py3-none-any.whl (1.3 MB)
     |████████████████████████████████| 1.3 MB 4.9 MB/s
Collecting astunparse~=1.6.3
  Downloading astunparse-1.6.3-py2.py3-none-any.whl (12 kB)
Collecting google-auth-oauthlib<0.5,>=0.4.1
  Using cached google_auth_oauthlib-0.4.6-py2.py3-none-any.whl (18 kB)
Collecting markdown>=2.6.8
  Using cached Markdown-3.3.4-py3-none-any.whl (97 kB)
Collecting tensorboard-data-server<0.7.0,>=0.6.0
  Downloading tensorboard_data_server-0.6.1-py3-none-manylinux2010_x86_64.whl (4.9 MB)
     |████████████████████████████████| 4.9 MB 4.3 MB/s
Collecting werkzeug>=0.11.15
  Using cached Werkzeug-2.0.1-py3-none-any.whl (288 kB)
Collecting tensorboard-plugin-wit>=1.6.0
  Downloading tensorboard_plugin_wit-1.8.0-py3-none-any.whl (781 kB)
     |████████████████████████████████| 781 kB 3.7 MB/s
Collecting google-auth<2,>=1.6.3
  Using cached google_auth-1.35.0-py2.py3-none-any.whl (152 kB)
Requirement already satisfied: setuptools>=41.0.0 in ./.venv/lib/python3.8/site-packages (from tensorboard~=2.6->tensorflow) (44.0.0)
Collecting requests<3,>=2.21.0
  Using cached requests-2.26.0-py2.py3-none-any.whl (62 kB)
Collecting requests-oauthlib>=0.7.0
  Using cached requests_oauthlib-1.3.0-py2.py3-none-any.whl (23 kB)
Collecting cachetools<5.0,>=2.0.0
  Using cached cachetools-4.2.2-py3-none-any.whl (11 kB)
Collecting rsa<5,>=3.1.4; python_version >= "3.6"
  Using cached rsa-4.7.2-py3-none-any.whl (34 kB)
Collecting pyasn1-modules>=0.2.1
  Using cached pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)
Collecting idna<4,>=2.5; python_version >= "3"
  Using cached idna-3.2-py3-none-any.whl (59 kB)
Collecting charset-normalizer~=2.0.0; python_version >= "3"
  Using cached charset_normalizer-2.0.6-py3-none-any.whl (37 kB)
Collecting urllib3<1.27,>=1.21.1
  Downloading urllib3-1.26.7-py2.py3-none-any.whl (138 kB)
     |████████████████████████████████| 138 kB 4.3 MB/s
Collecting certifi>=2017.4.17
  Using cached certifi-2021.5.30-py2.py3-none-any.whl (145 kB)
Collecting oauthlib>=3.0.0
  Using cached oauthlib-3.1.1-py2.py3-none-any.whl (146 kB)
Collecting pyasn1>=0.1.3
  Using cached pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
Installing collected packages: six, absl-py, google-pasta, cachetools, pyasn1, rsa, pyasn1-modules, google-auth, oauthlib, idna, charset-normalizer, urllib3, certifi, requests, requests-oauthlib, google-auth-oauthlib, grpcio, markdown, numpy, protobuf, wheel, tensorboard-data-server, werkzeug, tensorboard-plugin-wit, tensorboard, tensorflow-estimator, opt-einsum, gast, clang, termcolor, typing-extensions, h5py, keras-preprocessing, flatbuffers, wrapt, keras, astunparse, tensorflow
    Running setup.py install for clang ... done
    Running setup.py install for termcolor ... done
    Running setup.py install for wrapt ... done
Successfully installed absl-py-0.14.0 astunparse-1.6.3 cachetools-4.2.2 certifi-2021.5.30 charset-normalizer-2.0.6 clang-5.0 flatbuffers-1.12 gast-0.4.0 google-auth-1.35.0 google-auth-oauthlib-0.4.6 google-pasta-0.2.0 grpcio-1.40.0 h5py-3.1.0 idna-3.2 keras-2.6.0 keras-preprocessing-1.1.2 markdown-3.3.4 numpy-1.19.5 oauthlib-3.1.1 opt-einsum-3.3.0 protobuf-3.18.0 pyasn1-0.4.8 pyasn1-modules-0.2.8 requests-2.26.0 requests-oauthlib-1.3.0 rsa-4.7.2 six-1.15.0 tensorboard-2.6.0 tensorboard-data-server-0.6.1 tensorboard-plugin-wit-1.8.0 tensorflow-2.6.0 tensorflow-estimator-2.6.0 termcolor-1.1.0 typing-extensions-3.7.4.3 urllib3-1.26.7 werkzeug-2.0.1 wheel-0.37.0 wrapt-1.12.1

You should probably try to install in to a clean virtual environment.

@EdSeymore
Copy link
Author

I attempted to reproduce your issue with the instructions you gave and couldn't:
You should probably try to install in to a clean virtual environment.

Thank you very much for taking the time to check my issue.
I will build a new environment.
I remain concerned about how the ubuntu image has been damaged.
A user following documented instructions should not be able to create this type of failure.
But, I do know that not all google discovered posts are created equal.

@EdSeymore
Copy link
Author

As suggested, I built a new virtualenv.
Installed 5 packages without problem. Two fail:
pip3 install pip3
pip3 install tensorflow

For reference:
cd /home/nx/pyCode/
python -m venv ldl-env
source /home/nx/pyCode/ldl-env/bin/activate

pip3 list --local

Package Version


backports.entry-points-selectable 1.1.0
cycler 0.10.0
distlib 0.3.3
filelock 3.0.12
idx2numpy 1.2.3
kiwisolver 1.3.2
matplotlib 3.4.3
numpy 1.21.2
Pillow 8.3.2
pip 21.2.4 *
platformdirs 2.3.0
pyparsing 2.4.7
python-dateutil 2.8.2
setuptools 56.0.0 *
six 1.16.0
virtualenv 20.8.0

@ziebam
Copy link
Contributor

ziebam commented Sep 23, 2021

This might be related to platform compatibility tags that are used by default on your device. I couldn't find any specific information about NVIDIA Carmel's architecture, but tensorflow only supports x86_64 and i686 architectures for Linux per the filenames at PyPI.

  1. Could you try and run pip3 index versions tensorflow and see if that outputs any available versions?
  2. Did you try installing tensorflow per NVIDIA's guide for Jetson platform?

@uranusjr
Copy link
Member

Also pip3 debug would be useful.

@EdSeymore
Copy link
Author

pip3 index versions tensorflow yields:
ERROR: No matching distribution found for tensorflow
I have tried the NVIDIA guide instructions and was not
successful at that time. I have been at this for awhile
and will need to retrace my steps to see where that process
took me. I also tried https://elinux.org/Jetson_Zoo#Keras.

pip3 debug yields interest list, no error flagged.

Bottom line: Jetson support does not seem to be in PyPi.

I really appreciate all the help provided.

I will follow up with the NVIDIA guide instructions.

@pradyunsg
Copy link
Member

Gonna consolidate this into #6526, since it's basically the same thing IMO.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
C: error messages Improving error messages type: feature request Request for a new feature
Projects
None yet
Development

No branches or pull requests

6 participants