You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>
The text was updated successfully, but these errors were encountered:
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.
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.
I also got a similar problem with a less verbose message when I try to install the non-GPU version of Tensorflow.
The text was updated successfully, but these errors were encountered: