分享

成功解决PackagesNotFoundError: The following packages are not available from current channels: tensorflo

 处女座的程序猿 2021-09-28

解决问题

conda install ‐‐channel https://conda./anaconda tensorflow‐gpu=1.9.0
Collecting package metadata (current_repodata.json): done
Solving environment: failed with current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed
PackagesNotFoundError: The following packages are not available from current channels:

  - tensorflow‐gpu=1.9.0
  - ‐‐channel
  - //conda./anaconda

Current channels:
  - https://repo./pkgs/main/linux-64
  - https://repo./pkgs/main/noarch
  - https://repo./pkgs/r/linux-64
  - https://repo./pkgs/r/noarch

To search for alternate channels that may provide the conda package you're looking for, navigate to   https://  and use the search bar at the top of the page.

解决思路

解决环境:当前的repodata.json失败,将使用下一个repodata源重试。
收集包元数据(repodata.json):完成
求解环境:失败
包未找到错误 :以下包不能从当前频道使用:
  - tensorflow‐gpu=1.9.0
  - ‐‐channel
  - //conda./anaconda
当前频道:
-https://repo./pkgs/main/linux-64
-https://repo./pkgs/main/noarch
-https://repo./pkgs/r/linux-64
-https://repo./pkgs/r/noarch
要搜索可能提供您要查找的Conda软件包的备用频道,请导航到https://,并使用页面顶部的搜索栏。

解决方法

下载的地址错误,原先方法不好用,更改下载命令即可!

pip install tensorflow-gpu==1.9.0

大功告成!

    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约