前提・実現したいこと
pip showで各アプリのバージョンを確認しようとしたところ、
エラーが出てしまい、その解決法がわからないのでご教授お願い致します。
発生している問題・エラーメッセージ
エラーメッセージ
$ pip show tensorflow
ERROR: Exception:
Traceback (most recent call last):
File "C:\Users\V404\Anaconda3\envs\tensorflow\lib\site-packages\pip_vendor\pkg_resources_init_.py", line 3021, in _dep_map
return self._dep_map
File "C:\Users\V404\Anaconda3\envs\tensorflow\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:\Users\V404\Anaconda3\envs\tensorflow\lib\site-packages\pip_vendor\pkg_resources_init_.py", line 3012, in _parsed_pkg_info
return self.pkg_info
File "C:\Users\V404\Anaconda3\envs\tensorflow\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:
Traceback (most recent call last):
File "C:\Users\V404\Anaconda3\envs\tensorflow\lib\site-packages\pip_internal\cli\base_command.py", line 224, in main
status = self.run(options, args)
File "C:\Users\V404\Anaconda3\envs\tensorflow\lib\site-packages\pip_internal\commands\show.py", line 53, in run
results, list_files=options.files, verbose=options.verbose):
File "C:\Users\V404\Anaconda3\envs\tensorflow\lib\site-packages\pip_internal\commands\show.py", line 154, in print_results
for i, dist in enumerate(distributions):
File "C:\Users\V404\Anaconda3\envs\tensorflow\lib\site-packages\pip_internal\commands\show.py", line 93, in search_packages_info
'required_by': get_requiring_packages(dist.project_name)
File "C:\Users\V404\Anaconda3\envs\tensorflow\lib\site-packages\pip_internal\commands\show.py", line 81, in get_requiring_packages
pkg.project_name for pkg in pkg_resources.working_set
File "C:\Users\V404\Anaconda3\envs\tensorflow\lib\site-packages\pip_internal\commands\show.py", line 84, in <listcomp>
pkg.requires()]
File "C:\Users\V404\Anaconda3\envs\tensorflow\lib\site-packages\pip_vendor\pkg_resources_init.py", line 2736, in requires
dm = self.dep_map
File "C:\Users\V404\Anaconda3\envs\tensorflow\lib\site-packages\pip_vendor\pkg_resources_init.py", line 3023, in _dep_map
self.__dep_map = self.compute_dependencies()
File "C:\Users\V404\Anaconda3\envs\tensorflow\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:\Users\V404\Anaconda3\envs\tensorflow\lib\site-packages\pip_vendor\pkg_resources_init.py", line 3014, in parsed_pkg_info
metadata = self.get_metadata(self.PKG_INFO)
File "C:\Users\V404\Anaconda3\envs\tensorflow\lib\site-packages\pip_vendor\pkg_resources_init.py", line 1420, in get_metadata
value = self.get(path)
File "C:\Users\V404\Anaconda3\envs\tensorflow\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:\users\v404\anaconda3\envs\tensorflow\lib\site-packages\numpy-1.19.4.dist-info\METADATA'
試したこと
コンピュータ内にMETADATAというファイルがあるか検索を行った
→見つけることができなかった
他のpipコマンドは使えるか試してみた
→pip installは使えなかった(同様のエラーが出た)
condaでtensorflowを入れなおしてみた
→エラーは変わらなかった
補足情報
使用した環境
cygwin64
Anaconda3
あなたの回答
tips
プレビュー