weixin_40140746 2020-06-17 14:40 采纳率: 0%
浏览 1267
已结题

ERROR: Error checking for conflicts.AttributeError: _DistInfoDistribution__dep_map;AttributeError: _pkg_info

当我从Anaconda打开Spyder时,收到这样一个报错:
图片说明

you have missing dependencies
#Mandatory
pyls>=0.31.0;<0.32.0:0.1.6(NOK)
please install them to aiod this message
……

我试图用pip或者conda安装pyls板块,但得到了不同的报错:
使用pip时的报错——
图片说明

ERROR: Error checking for conflicts.
Traceback (most recent call last):
  File "d:\anaconda\envs\tensorflow\lib\site-packages\pip-20.2b1-py3.7.egg\pip\_vendor\pkg_resources\__init__.py", line 3021, in _dep_map
    return self.__dep_map
  File "d:\anaconda\envs\tensorflow\lib\site-packages\pip-20.2b1-py3.7.egg\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 "d:\anaconda\envs\tensorflow\lib\site-packages\pip-20.2b1-py3.7.egg\pip\_vendor\pkg_resources\__init__.py", line 3012, in _parsed_pkg_info
    return self._pkg_info
  File "d:\anaconda\envs\tensorflow\lib\site-packages\pip-20.2b1-py3.7.egg\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 "d:\anaconda\envs\tensorflow\lib\site-packages\pip-20.2b1-py3.7.egg\pip\_internal\commands\install.py", line 509, in _warn_about_conflicts
    package_set, _dep_info = check_install_conflicts(to_install)
  File "d:\anaconda\envs\tensorflow\lib\site-packages\pip-20.2b1-py3.7.egg\pip\_internal\operations\check.py", line 114, in check_install_conflicts
    package_set, _ = create_package_set_from_installed()
  File "d:\anaconda\envs\tensorflow\lib\site-packages\pip-20.2b1-py3.7.egg\pip\_internal\operations\check.py", line 53, in create_package_set_from_installed
    package_set[name] = PackageDetails(dist.version, dist.requires())
  File "d:\anaconda\envs\tensorflow\lib\site-packages\pip-20.2b1-py3.7.egg\pip\_vendor\pkg_resources\__init__.py", line 2736, in requires
    dm = self._dep_map
  File "d:\anaconda\envs\tensorflow\lib\site-packages\pip-20.2b1-py3.7.egg\pip\_vendor\pkg_resources\__init__.py", line 3023, in _dep_map
    self.__dep_map = self._compute_dependencies()
  File "d:\anaconda\envs\tensorflow\lib\site-packages\pip-20.2b1-py3.7.egg\pip\_vendor\pkg_resources\__init__.py", line 3032, in _compute_dependencies
    for req in self._parsed_pkg_info.get_all('Requires-Dist') or []:
  File "d:\anaconda\envs\tensorflow\lib\site-packages\pip-20.2b1-py3.7.egg\pip\_vendor\pkg_resources\__init__.py", line 3014, in _parsed_pkg_info
    metadata = self.get_metadata(self.PKG_INFO)
  File "d:\anaconda\envs\tensorflow\lib\site-packages\pip-20.2b1-py3.7.egg\pip\_vendor\pkg_resources\__init__.py", line 1420, in get_metadata
    value = self._get(path)
  File "d:\anaconda\envs\tensorflow\lib\site-packages\pip-20.2b1-py3.7.egg\pip\_vendor\pkg_resources\__init__.py", line 1616, in _get
    with open(path, 'rb') as stream:
FileNotFoundError: [Errno 2] No such file or directory: 'd:\\anaconda\\envs\\tensorflow\\lib\\site-packages\\rsa-4.0.dist-info\\METADATA'

使用conda时的报错——
图片说明

(tensorflow) C:\Users\wangl>conda install pyls
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): failed

# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

    Traceback (most recent call last):
      File "D:\Anaconda\lib\site-packages\conda\core\subdir_data.py", line 248, in _load
        repodata_fn=self.repodata_fn)
      File "D:\Anaconda\lib\site-packages\conda\core\subdir_data.py", line 598, in fetch_repodata_remote_request
        raise Response304ContentUnchanged()
    conda.core.subdir_data.Response304ContentUnchanged

请问一下,是什么原因导致了这种情况?是python和anaconda的冲突吗?我是直接在anaconda里安装的python,并没有单独安装?现在应该如何解决这个难题呢?

  • 写回答

1条回答 默认 最新

  • zqbnqsdsmd 2020-06-18 00:04
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘