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

While installing tensorflow-gpu, got error message that told me to open an issue ticket. #8729

Closed
jamesphillipturpin opened this issue Aug 7, 2020 · 2 comments
Labels
resolution: duplicate Duplicate of an existing issue/PR

Comments

@jamesphillipturpin
Copy link

I'm trying to install various packages that are (Tensorflow, Pytorch, etc) that are used by open source Python projects for neural networks. One of these gives an error message that recommends opening an issue ticket here.

C:\Python38\tensorflow>pip install tensorflow-gpu
Requirement already satisfied: tensorflow-gpu in c:\python38\lib\site-packages (2.3.0)
Requirement already satisfied: google-pasta>=0.1.8 in c:\python38\lib\site-packages (from tensorflow-gpu) (0.2.0)
Requirement already satisfied: grpcio>=1.8.6 in c:\python38\lib\site-packages (from tensorflow-gpu) (1.30.0)
Requirement already satisfied: h5py<2.11.0,>=2.10.0 in c:\python38\lib\site-packages (from tensorflow-gpu) (2.10.0)
Requirement already satisfied: tensorboard<3,>=2.3.0 in c:\python38\lib\site-packages (from tensorflow-gpu) (2.3.0)
Requirement already satisfied: opt-einsum>=2.3.2 in c:\python38\lib\site-packages (from tensorflow-gpu) (3.3.0)
Requirement already satisfied: absl-py>=0.7.0 in c:\python38\lib\site-packages (from tensorflow-gpu) (0.9.0)
Requirement already satisfied: gast==0.3.3 in c:\python38\lib\site-packages (from tensorflow-gpu) (0.3.3)
Requirement already satisfied: keras-preprocessing<1.2,>=1.1.1 in c:\python38\lib\site-packages (from tensorflow-gpu) (1.1.2)
Requirement already satisfied: tensorflow-gpu-estimator<2.4.0,>=2.3.0 in c:\python38\lib\site-packages (from tensorflow-gpu) (2.3.0)
Requirement already satisfied: termcolor>=1.1.0 in c:\python38\lib\site-packages (from tensorflow-gpu) (1.1.0)
Requirement already satisfied: wheel>=0.26 in c:\python38\lib\site-packages (from tensorflow-gpu) (0.34.2)
Requirement already satisfied: wrapt>=1.11.1 in c:\python38\lib\site-packages (from tensorflow-gpu) (1.12.1)
Requirement already satisfied: protobuf>=3.9.2 in c:\python38\lib\site-packages (from tensorflow-gpu) (3.12.2)
Requirement already satisfied: six>=1.12.0 in c:\python38\lib\site-packages (from tensorflow-gpu) (1.15.0)
Requirement already satisfied: astunparse==1.6.3 in c:\python38\lib\site-packages (from tensorflow-gpu) (1.6.3)
Requirement already satisfied: scipy==1.4.1 in c:\python38\lib\site-packages (from tensorflow-gpu) (1.4.1)
Requirement already satisfied: numpy<1.19.0,>=1.16.0 in c:\python38\lib\site-packages (from tensorflow-gpu) (1.18.5)
Requirement already satisfied: markdown>=2.6.8 in c:\python38\lib\site-packages (from tensorboard<3,>=2.3.0->tensorflow-gpu) (3.2.2)
Requirement already satisfied: requests<3,>=2.21.0 in c:\python38\lib\site-packages (from tensorboard<3,>=2.3.0->tensorflow-gpu) (2.24.0)
Requirement already satisfied: google-auth<2,>=1.6.3 in c:\python38\lib\site-packages (from tensorboard<3,>=2.3.0->tensorflow-gpu) (1.19.2)
Requirement already satisfied: google-auth-oauthlib<0.5,>=0.4.1 in c:\python38\lib\site-packages (from tensorboard<3,>=2.3.0->tensorflow-gpu) (0.4.1)
Requirement already satisfied: werkzeug>=0.11.15 in c:\python38\lib\site-packages (from tensorboard<3,>=2.3.0->tensorflow-gpu) (1.0.1)
Requirement already satisfied: setuptools>=41.0.0 in c:\python38\lib\site-packages (from tensorboard<3,>=2.3.0->tensorflow-gpu) (41.2.0)
Requirement already satisfied: tensorboard-plugin-wit>=1.6.0 in c:\python38\lib\site-packages (from tensorboard<3,>=2.3.0->tensorflow-gpu) (1.7.0)
Requirement already satisfied: idna<3,>=2.5 in c:\python38\lib\site-packages (from requests<3,>=2.21.0->tensorboard<3,>=2.3.0->tensorflow-gpu) (2.6)
Requirement already satisfied: certifi>=2017.4.17 in c:\python38\lib\site-packages (from requests<3,>=2.21.0->tensorboard<3,>=2.3.0->tensorflow-gpu) (2020.6.20)
Requirement already satisfied: chardet<4,>=3.0.2 in c:\python38\lib\site-packages (from requests<3,>=2.21.0->tensorboard<3,>=2.3.0->tensorflow-gpu) (3.0.4)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in c:\python38\lib\site-packages (from requests<3,>=2.21.0->tensorboard<3,>=2.3.0->tensorflow-gpu) (1.22)
Requirement already satisfied: cachetools<5.0,>=2.0.0 in c:\python38\lib\site-packages (from google-auth<2,>=1.6.3->tensorboard<3,>=2.3.0->tensorflow-gpu) (4.1.1)
Requirement already satisfied: rsa<5,>=3.1.4; python_version >= "3" in c:\python38\lib\site-packages (from google-auth<2,>=1.6.3->tensorboard<3,>=2.3.0->tensorflow-gpu) (4.6)
Requirement already satisfied: pyasn1-modules>=0.2.1 in c:\python38\lib\site-packages (from google-auth<2,>=1.6.3->tensorboard<3,>=2.3.0->tensorflow-gpu) (0.2.8)
Requirement already satisfied: requests-oauthlib>=0.7.0 in c:\python38\lib\site-packages (from google-auth-oauthlib<0.5,>=0.4.1->tensorboard<3,>=2.3.0->tensorflow-gpu) (1.3.0)
Requirement already satisfied: pyasn1>=0.1.3 in c:\python38\lib\site-packages (from rsa<5,>=3.1.4; python_version >= "3"->google-auth<2,>=1.6.3->tensorboard<3,>=2.3.0->tensorflow-gpu) (0.4.8)
Requirement already satisfied: oauthlib>=3.0.0 in c:\python38\lib\site-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.5,>=0.4.1->tensorboard<3,>=2.3.0->tensorflow-gpu) (3.1.0)
ERROR: Error while checking for conflicts. Please file an issue on pip's issue tracker: https://github.com/pypa/pip/issues/new
Traceback (most recent call last):
  File "c:\python38\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 3021, in _dep_map
    return self.__dep_map
  File "c:\python38\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2815, in __getattr__
    raise AttributeError(attr)
AttributeError: _DistInfoDistribution__dep_map

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\python38\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 3012, in _parsed_pkg_info
    return self._pkg_info
  File "c:\python38\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2815, in __getattr__
    raise AttributeError(attr)
AttributeError: _pkg_info

During handling of the above exception, another exception occurred trying to install the GPU compatible version of Tensorflow

Traceback (most recent call last):
  File "c:\python38\lib\site-packages\pip\_internal\commands\install.py", line 534, in _determine_conflicts
    return check_install_conflicts(to_install)
  File "c:\python38\lib\site-packages\pip\_internal\operations\check.py", line 108, in check_install_conflicts
    package_set, _ = create_package_set_from_installed()
  File "c:\python38\lib\site-packages\pip\_internal\operations\check.py", line 50, in create_package_set_from_installed
    package_set[name] = PackageDetails(dist.version, dist.requires())
  File "c:\python38\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2736, in requires
    dm = self._dep_map
  File "c:\python38\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 3023, in _dep_map
    self.__dep_map = self._compute_dependencies()
  File "c:\python38\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 3032, in _compute_dependencies
    for req in self._parsed_pkg_info.get_all('Requires-Dist') or []:
  File "c:\python38\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 3014, in _parsed_pkg_info
    metadata = self.get_metadata(self.PKG_INFO)
  File "c:\python38\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 1420, in get_metadata
    value = self._get(path)
  File "c:\python38\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 1616, in _get
    with open(path, 'rb') as stream:
FileNotFoundError: [Errno 2] No such file or directory: 'c:\\python38\\lib\\site-packages\\tensorflow_estimator-2.2.0.dist-info\\METADATA'

C:\Python38\tensorflow>

I also got a similar problem with a less verbose message when I try to install the non-GPU version of Tensorflow.

C:\Python38\tensorflow>pip install tensorflow
Requirement already satisfied: tensorflow in c:\python38\lib\site-packages (2.2.0)
Requirement already satisfied: google-pasta>=0.1.8 in c:\python38\lib\site-packages (from tensorflow) (0.2.0)
Requirement already satisfied: keras-preprocessing>=1.1.0 in c:\python38\lib\site-packages (from tensorflow) (1.1.2)
Requirement already satisfied: astunparse==1.6.3 in c:\python38\lib\site-packages (from tensorflow) (1.6.3)
Requirement already satisfied: wheel>=0.26; python_version >= "3" in c:\python38\lib\site-packages (from tensorflow) (0.34.2)
Requirement already satisfied: six>=1.12.0 in c:\python38\lib\site-packages (from tensorflow) (1.15.0)
Requirement already satisfied: grpcio>=1.8.6 in c:\python38\lib\site-packages (from tensorflow) (1.30.0)
Requirement already satisfied: absl-py>=0.7.0 in c:\python38\lib\site-packages (from tensorflow) (0.9.0)
Requirement already satisfied: gast==0.3.3 in c:\python38\lib\site-packages (from tensorflow) (0.3.3)
Requirement already satisfied: opt-einsum>=2.3.2 in c:\python38\lib\site-packages (from tensorflow) (3.3.0)
Requirement already satisfied: scipy==1.4.1; python_version >= "3" in c:\python38\lib\site-packages (from tensorflow) (1.4.1)
Requirement already satisfied: h5py<2.11.0,>=2.10.0 in c:\python38\lib\site-packages (from tensorflow) (2.10.0)
Requirement already satisfied: protobuf>=3.8.0 in c:\python38\lib\site-packages (from tensorflow) (3.12.2)
Requirement already satisfied: numpy<2.0,>=1.16.0 in c:\python38\lib\site-packages (from tensorflow) (1.18.5)
Requirement already satisfied: termcolor>=1.1.0 in c:\python38\lib\site-packages (from tensorflow) (1.1.0)
Requirement already satisfied: tensorflow-estimator<2.3.0,>=2.2.0 in c:\python38\lib\site-packages (from tensorflow) (2.2.0)
WARNING: No metadata found in c:\python38\lib\site-packages
ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: 'c:\\python38\\lib\\site-packages\\tensorflow_estimator-2.2.0.dist-info\\METADATA'


C:\Python38\tensorflow>
@triage-new-issues triage-new-issues bot added the S: needs triage Issues/PRs that need to be triaged label Aug 7, 2020
@uranusjr uranusjr added the resolution: duplicate Duplicate of an existing issue/PR label Aug 7, 2020
@triage-new-issues triage-new-issues bot removed the S: needs triage Issues/PRs that need to be triaged label Aug 7, 2020
@uranusjr
Copy link
Member

uranusjr commented Aug 7, 2020

Looks like a duplicate to #8676.

@uranusjr uranusjr closed this as completed Aug 7, 2020
@jamesphillipturpin
Copy link
Author

jamesphillipturpin commented Aug 7, 2020

I was able to resolve this by copying and pasting similarly named files from the tensorboard package/module as the missing files, and doing a find replace to make the module/package names and version numbers correct. Although pip couldn't find any files to uninstall, this tricked pip into thinking the uninstall was complete, which then allowed it to re-install the package/module (with a different version in my case) automatically as a requirement/dependency.

I don't have much faith that this is a perfect solution, but I'm likely to do a clean install of Python later after I've figured out exactly what I need, before using this for anything real.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
resolution: duplicate Duplicate of an existing issue/PR
Projects
None yet
Development

No branches or pull requests

2 participants