当前位置:   article > 正文

Solving environment: failed conda all InvalidVersionSpecError: Invalid version spec: =2.7

invalidversionspecerror: invalid version spec: =2.7

1 问题描述

执行:conda update --all命令时候出现了

Solving environment: failed

InvalidVersionSpecError: Invalid version spec: =2.7

2 解决方案

修改.condar文件内容为:

channels:
  - defaults
show_channel_urls: true
default_channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
custom_channels:
  conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  msys2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  bioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  menpo: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  simpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
 

Anaconda 镜像使用帮助https://mirror.tuna.tsinghua.edu.cn/help/anaconda/

3 然后

(1)pip uninstall tensorflow卸载tensorflow

(2)conda update --all

(3)conda create -n cat python=3.7

(4)conda install tensorflow-gpu=1.14.0

(5)安装完毕

问题解决。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家小花儿/article/detail/467892
推荐阅读
相关标签
  

闽ICP备14008679号