pkg_resources.DistributionNotFound: 'wheel>=0.26;python_version >=“3"'分布未找到,张量板需要 [英] pkg_resources.DistributionNotFound: The 'wheel>=0.26; python_version >= "3"' distribution was not found and is required by tensorboard

查看:41
本文介绍了pkg_resources.DistributionNotFound: 'wheel>=0.26;python_version >=“3"'分布未找到,张量板需要的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我从 unity 安装 ml-agents 时,我遇到了一个问题.我现在无法修复它.我正在通过 anaconda 运行 env.我输入了命令:mlagents-learn 验证安装

When I was installing the ml-agents from unity,i encountered a problem. i was not able to fix it at this moment. I am running an env through anaconda. i entered the command: mlagents-learn to verify the installation

(unity_envIAJ) C:\Users\Rui\Documents\GitHub\ml-agents-release_10>mlagents-learn
Traceback (most recent call last):
  File "D:\Conda\envs\unity_envIAJ\lib\site-packages\pkg_resources\__init__.py", line 567, in _build_master
    ws.require(__requires__)
  File "D:\Conda\envs\unity_envIAJ\lib\site-packages\pkg_resources\__init__.py", line 884, in require
    needed = self.resolve(parse_requirements(requirements))
  File "D:\Conda\envs\unity_envIAJ\lib\site-packages\pkg_resources\__init__.py", line 775, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (numpy 1.19.2 (d:\conda\envs\unity_enviaj\lib\site-packages), Requirement.parse('numpy<1.19.0,>=1.14.1'), {'mlagents-envs'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\Conda\envs\unity_envIAJ\Scripts\mlagents-learn-script.py", line 33, in <module>
    sys.exit(load_entry_point('mlagents', 'console_scripts', 'mlagents-learn')())
  File "D:\Conda\envs\unity_envIAJ\Scripts\mlagents-learn-script.py", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "D:\Conda\envs\unity_envIAJ\lib\importlib\metadata.py", line 75, in load
    module = import_module(match.group('module'))
  File "D:\Conda\envs\unity_envIAJ\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "c:\users\rui\documents\github\ml-agents-release_10\ml-agents\mlagents\trainers\learn.py", line 2, in <module>
    from mlagents import torch_utils
  File "c:\users\rui\documents\github\ml-agents-release_10\ml-agents\mlagents\torch_utils\__init__.py", line 1, in <module>
    from mlagents.torch_utils.torch import torch as torch  # noqa
  File "c:\users\rui\documents\github\ml-agents-release_10\ml-agents\mlagents\torch_utils\torch.py", line 4, in <module>
    import pkg_resources
  File "D:\Conda\envs\unity_envIAJ\lib\site-packages\pkg_resources\__init__.py", line 3239, in <module>
    def _initialize_master_working_set():
  File "D:\Conda\envs\unity_envIAJ\lib\site-packages\pkg_resources\__init__.py", line 3222, in _call_aside
    f(*args, **kwargs)
  File "D:\Conda\envs\unity_envIAJ\lib\site-packages\pkg_resources\__init__.py", line 3251, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "D:\Conda\envs\unity_envIAJ\lib\site-packages\pkg_resources\__init__.py", line 569, in _build_master
    return cls._build_from_requirements(__requires__)
  File "D:\Conda\envs\unity_envIAJ\lib\site-packages\pkg_resources\__init__.py", line 582, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "D:\Conda\envs\unity_envIAJ\lib\site-packages\pkg_resources\__init__.py", line 770, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'wheel>=0.26; python_version >= "3"' distribution was not found and is required by tensorboard

python 版本:3.8.0张量板:2.4.0车轮:0.36.2

python version: 3.8.0 tensorboard: 2.4.0 wheel: 0.36.2

推荐答案

我不得不将 numpy 更改为正确的版本,并继续卸载任何与 tensorboard 和 tensorflow 相关的软件包,并且仅通过 conda tensorboard 进行安装.

I had to change the numpy for the correct version and proceeded to uninstall any tensorboard and tensorflow related packages and only install through conda tensorboard.

这篇关于pkg_resources.DistributionNotFound: 'wheel>=0.26;python_version &gt;=“3"'分布未找到,张量板需要的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆