Всякий раз, когда я устанавливаю python пакет, я получаю эту ошибку. Я использую Intel development python в Miniconda . Пакет устанавливается, но всегда возникает ошибка зависимости. Ниже приведен пример.
pip install keras
Ошибка, как показано ниже.
(idp) D:\ml\tsk sir work>pip install keras
Requirement already satisfied: keras in c:\users\ggmah\miniconda3\envs\idp\lib\site-packages (2.3.1)
Requirement already satisfied: h5py in c:\users\ggmah\miniconda3\envs\idp\lib\site-packages (from keras) (2.10.0)
Requirement already satisfied: keras-applications>=1.0.6 in c:\users\ggmah\miniconda3\envs\idp\lib\site-packages (from keras) (1.0.8)
Requirement already satisfied: keras-preprocessing>=1.0.5 in c:\users\ggmah\miniconda3\envs\idp\lib\site-packages (from keras) (1.1.0)
Requirement already satisfied: scipy>=0.14 in c:\users\ggmah\miniconda3\envs\idp\lib\site-packages (from keras) (1.3.1)
Requirement already satisfied: pyyaml in c:\users\ggmah\miniconda3\envs\idp\lib\site-packages (from keras) (5.1.1)
Requirement already satisfied: numpy>=1.9.1 in c:\users\ggmah\miniconda3\envs\idp\lib\site-packages (from keras) (1.17.0)
Requirement already satisfied: six>=1.9.0 in c:\users\ggmah\miniconda3\envs\idp\lib\site-packages (from keras) (1.12.0)
ERROR: Error checking for conflicts.
Traceback (most recent call last):
File "C:\Users\ggmah\Miniconda3\envs\idp\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 3012, in _dep_map
return self.__dep_map
File "C:\Users\ggmah\Miniconda3\envs\idp\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2806, 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\ggmah\Miniconda3\envs\idp\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 3003, in _parsed_pkg_info
return self._pkg_info
File "C:\Users\ggmah\Miniconda3\envs\idp\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2806, 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\ggmah\Miniconda3\envs\idp\lib\site-packages\pip\_internal\commands\install.py", line 524, in _warn_about_conflicts
package_set, _dep_info = check_install_conflicts(to_install)
File "C:\Users\ggmah\Miniconda3\envs\idp\lib\site-packages\pip\_internal\operations\check.py", line 108, in check_install_conflicts
package_set, _ = create_package_set_from_installed()
File "C:\Users\ggmah\Miniconda3\envs\idp\lib\site-packages\pip\_internal\operations\check.py", line 47, in create_package_set_from_installed
package_set[name] = PackageDetails(dist.version, dist.requires())
File "C:\Users\ggmah\Miniconda3\envs\idp\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2727, in requires
dm = self._dep_map
File "C:\Users\ggmah\Miniconda3\envs\idp\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 3014, in _dep_map
self.__dep_map = self._compute_dependencies()
File "C:\Users\ggmah\Miniconda3\envs\idp\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 3023, in _compute_dependencies
for req in self._parsed_pkg_info.get_all('Requires-Dist') or []:
File "C:\Users\ggmah\Miniconda3\envs\idp\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 3005, in _parsed_pkg_info
metadata = self.get_metadata(self.PKG_INFO)
File "C:\Users\ggmah\Miniconda3\envs\idp\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 1419, in get_metadata
value = self._get(self._fn(self.egg_info, name))
File "C:\Users\ggmah\Miniconda3\envs\idp\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 1607, in _get
with open(path, 'rb') as stream:
FileNotFoundError: [Errno 2] No such file or directory: 'c:\\users\\ggmah\\miniconda3\\envs\\idp\\lib\\site-packages\\parso-0.5.1.dist-info\\METADATA'
Я попытался удалить и установить весь дистрибутив Intel, но ошибка все еще не устранена. Нет папки с именем parso-0.5.1.dist-info , которая будет создана. Я не знаю, как решить эту внутреннюю ошибку.