CondaValueError: Malformed version string ‘~‘: invalid character(s)

这篇具有很好参考价值的文章主要介绍了CondaValueError: Malformed version string ‘~‘: invalid character(s)。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

CondaValueError: Malformed version string ‘~‘: invalid character(s),python,conda,开发语言
创建python3.6环境
conda create -n py36 python=3.6 anaconda和
升级conda环境
conda update conda和conda upgrade -n base -c defaults --override-channels conda都没用
都报这个错:
Solving environment: failed
CondaValueError: Malformed version string ‘~’: invalid character(s).
解决方法:
删除自己设置过的国内源
conda config --remove-key channels
设置为可通过notepad配置文件
conda config -set show_channel_urls_yes
打开C:\Users\test.condarc,全部覆盖为以下

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

最后conda clean -i
重新输入conda create -n py38 python=3.8 anaconda
现在可以了
CondaValueError: Malformed version string ‘~‘: invalid character(s),python,conda,开发语言

这里是引用https://blog.csdn.net/weixin_41673825/article/details/123901866文章来源地址https://www.toymoban.com/news/detail-597378.html

到了这里,关于CondaValueError: Malformed version string ‘~‘: invalid character(s)的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • Python报错:SyntaxError: invalid character ‘,‘ (U+FF0C)

    目录 项目场景: 问题描述: 原因分析: 解决方案: 这里简述项目相关背景: 这里描述项目中遇到的问题: 报错: 这句话翻译过来大概是: SyntaxError: invalid(无效的) character(字符) in identifier(标识符) 语法错误:标识符中的存在无效字符。 --------------------------------------------

    2023年04月18日
    浏览(38)
  • InvalidPathException: Malformed input or input contains unmappable characters 中文名文件 linux存储失败

    InvalidPathException: Malformed input or input contains unmappable characters 中文名文件 linux存储失败 使用java.nio.file.Path规范并解析路径,生成文件到本地,部分文件名带中文。提供对外下载文件接口,用于下载这些文件,下载后的文件要显示中文名。本地(windows)开发调试都OK。通过docke

    2024年02月15日
    浏览(39)
  • python - 无效版本规范错误 : Invalid version spec: =2. 7

    最近安装pytorch,一些包的版本在channel的package里并没有 比如报错:execute(502): An error occurred while installing package \\\'conda-forge::certifi-2022.9.24-pyhd8ed1ab_0\\\'.     -----------conda-forge就没这个版本的包。 想要在anaconda官网自己搜包,在安装则出现Invalid version spec: =2. 7。 原因: anaconda的版本

    2024年02月11日
    浏览(30)
  • Error:invalid character in indentifier

     Error:invalid character in indentifier   解决方案: 一般是中英文写错了

    2024年02月12日
    浏览(31)
  • 视频融合平台EasyCVR综合管理平台加密机授权报错invalid character是什么原因

    视频融合平台EasyCVR综合管理平台具备视频融合汇聚能力,作为安防视频监控综合管理平台,它支持多协议接入、多格式视频流分发,可支持的主流标准协议有国标GB28181、RTSP/Onvif、RTMP等,以及支持厂家私有协议与SDK接入,包括海康Ehome、海大宇等设备的SDK等,能对外分发RTS

    2024年02月09日
    浏览(39)
  • Golang做项目遇到bug invalid character ‘<‘ looking for beginning of value

    1、bug描述     事先在resis中存入哈希: 创建User结构体,拥有3个字段及对应json tag 通过查询redis得到这个user的哈希value为res,为string类型“\\\"userId\\\":100,\\\"userPwd\\\":\\\"123456\\\",\\\"userName\\\":\\\"scott\\\"\\\" 我在把这个字符串转成[]byte后使用json.Unmarshal()来反序列化,把解析后的数据赋给user实例 运行

    2024年02月11日
    浏览(41)
  • 已解决java.lang.IllegalArgumentException: Invalid character found in the request target.

    已解决java.lang.IllegalArgumentException: Invalid character found in the request target. 下滑查看解决方法 java.lang.IllegalArgumentException: Invalid character found in the request target. 对于Java.lang.IllegalArgumentException: Invalid character found in the request target的错误,可能是由于URL中包含了非法字符所致。 下滑查看

    2024年02月16日
    浏览(33)
  • docker 报错 error: invalid character ‘\x00‘ looking for beginning of value

    执行docker build的时候报错:error: invalid character ‘x00’ looking for beginning of value。 环境: Docker version 20.10.17, build 100c701 windows docker desktop 4.10.1 WSL2 解决办法:https://github.com/docker/for-win/issues/12561 导致报错的原因是 meta.json 损坏,被写入了零值。 https://docs.docker.com/desktop/release-no

    2024年02月15日
    浏览(45)
  • 踩坑:Invalid character found in method name. HTTP method names must be tokens

            在进行本地小程序与服务端请求时,由于加了签名认证,访问接口时报错 Spring boot端 小程序端    将 https: 更换成 http: 示例: https: //localhost:8080  改为   http ://localhost:8080       ssl证书到期了 Tomcat的header缓冲区大小不够 参考链接           3.修改端口号 server.xml中加上

    2024年02月07日
    浏览(36)
  • 报错:Invalid character found in method name. HTTP method names must be tokens

    是我在使用postman去调用后台接口时,引发的错误。因为之前还是好好的,这个接口就有问题。那必然是这个接口一些参数设置啥的出了问题。 关于网上有提到的解决方法: Tomcat的header缓冲区大小不够,只需要在server.xml中增加maxHttpHeaderSize字段即可 注意你的接口访问地址是

    2024年02月15日
    浏览(35)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包