NVIDIA / tensorflow

An Open Source Machine Learning Framework for Everyone
https://developer.nvidia.com/deep-learning-frameworks
Apache License 2.0
990 stars 152 forks source link

ERROR: Could not find a version that satisfies the requirement nvidia-tensorflow (from versions: 0.0.1.dev4, 0.0.1.dev5) ERROR: No matching distribution found for nvidia-tensorflow #38

Open nazishnaeem opened 3 years ago

nazishnaeem commented 3 years ago

Hey! I'm trying to run sd_maskrcnn but getting this error with the nvidia I'm running it on colab I've tried installing but keep getting same error

DEKHTIARJonathan commented 3 years ago

You need to install nvidia-pyindex first: pip install nvidia-pyindex

nazishnaeem commented 3 years ago

I did that! I also ran pip install nvidia-tensorflow , but this gives same error as mentioned in the title

nazishnaeem commented 3 years ago

Collecting nvidia-tensorflow Using cached nvidia-tensorflow-0.0.1.dev5.tar.gz (7.9 kB) WARNING: Discarding https://files.pythonhosted.org/packages/c7/b8/b96bd09cc7c9cf9dbd8b82313c4f9860fe615b3ce7f3f6efc962d166178b/nvidia-tensorflow-0.0.1.dev5.tar.gz#sha256=65f44f1b583b950925a3617a75fd299c29975f1f14327bb2d946cb52e84baef5 (from https://pypi.org/simple/nvidia-tensorflow/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Using cached nvidia-tensorflow-0.0.1.dev4.tar.gz (3.8 kB) WARNING: Discarding https://files.pythonhosted.org/packages/97/39/b1aa7fe84e2ad1f183f5fc851bea78bb46a73ebb9a91ffed0878f656f2f6/nvidia-tensorflow-0.0.1.dev4.tar.gz#sha256=1be0b140aadedcd7a05f736566587bb1aacc6baa1797d7fda7d8f23e59f35142 (from https://pypi.org/simple/nvidia-tensorflow/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. ERROR: Could not find a version that satisfies the requirement nvidia-tensorflow (from versions: 0.0.1.dev4, 0.0.1.dev5) ERROR: No matching distribution found for nvidia-tensorflow

This is the complete prompt of the error

nazishnaeem commented 3 years ago

I installed python 3.8, now I'm getting the following error:

Using cached nvidia-tensorflow-0.0.1.dev5.tar.gz (7.9 kB) ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

ziyuang commented 2 years ago

I did that! I also ran pip install nvidia-tensorflow , but this gives same error as mentioned in the title

I only saw this when I didn't install nvidia-pyindex. Does the pip belong to the Python you are working with? Or maybe try it inside a virtual environment.

GoingMyWay commented 2 years ago

You need to install nvidia-pyindex first: pip install nvidia-pyindex

Same error, I installed nvidia-pyindex and the error still happens.

GoingMyWay commented 2 years ago

Unfortunately, TF 1.15 for Python3.7 is not available. Here is the list: https://developer.download.nvidia.com/compute/redist/nvidia-tensorflow/

Please use Python 3.6 instead.

rsuriano commented 2 years ago

I'm having the same issue, I'm on a virtual env with Python 3.8. I installed nvidia-pyindex but still had the same error.

artavasdes commented 2 years ago

I am also experiencing a similar issue. I created a fresh python 3.6 environment in anaconda and the first thing I did was successfully install nvidia-pyindex

For some reason, trying to pip install nvidia-tensorflow fails claiming that: Could not find a version that satisfies the requirement nvidia-tensorflow==0.0.1.dev5 (from versions: 0.0.1.dev4, 0.0.1.dev5)

ramonlins commented 2 years ago

If your project is using a requirements.txt file, then you can add the following line to your requirements.txt file as an alternative to installing the nvidia-pyindex package.

--extra-index-url https://pypi.ngc.nvidia.com

Reference: install-tensorrt

So for e.g, if you are running an environment.yml:

name: base
channels:
  - conda-forge
  - default
dependencies:
  - python=3.7
  - pip
  - pip:
      - "--extra-index-url https://pypi.ngc.nvidia.com"
      - nvidia-tensorrt

After install nvidia-tensorrt, tensorflow should be able to run tensorrt.

This will install latest tensorrt version together with cuda+cublas+cudnn.

hlc1209 commented 1 year ago

Try to upgrade your pip

python -m pip install --upgrade pip

It solves my issue

nluehr commented 1 year ago

For tensorrt, the package was renamed from nvidia-tensorrt to just tensorrt (see https://github.com/NVIDIA/tensorflow/commit/4821ee55bb8509236770a288ad2c24c18eaa62e2). No extra-index-url should be required for tensorrt as it is in the PyPI index.

nvidia-tensorflow remains in the ngc pypi index, so it is necessary to install nvidia-pyindex as before. Assuming you are using Python 3.6 or 3.8, the error in https://github.com/NVIDIA/tensorflow/issues/38#issuecomment-1079779810 indeed looks like pip is out of date. In addition to upgrading pip as noted in the previous comment, also make sure pip --version returns the updated version, as bash's hashing may get out of sync.

MrMaynard commented 1 year ago

I see the same thing on the latest pip:

Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
ERROR: Could not find a version that satisfies the requirement tensorrt==7.2.3.4 (from versions: 0.0.1.dev5, 0.0.1)
nluehr commented 1 year ago

@MrMaynard have you tried python3 -m pip install --upgrade pip? In the past that has fixed this error when I've run into it.

mirq commented 1 year ago

image

There's no tensorrt package for python 3.11. Make sure that you are using 3.10 or below.