CondaValueError:格式错误的版本字符串“〜”:无效字符

时间:2019-05-10 21:18:30

标签: install conda malformed

我的conda收到格式错误的版本字符串错误。我不知道如何调试此或如何检查它。

有人可以帮忙吗? GitHub讨论了这个问题,但是我还没有看到任何修复。

-bash-4.1$ conda install -c bioconda pysam
Solving environment: failed



 1. CondaValueError: Malformed version string '~': invalid character(s).

针对以下评论:

(mage_env) -bash-4.1$ echo $PATH
/usr/local/devel/ANNOTATION/jespinoz/anaconda/envs/mage_env/bin:/usr/local/packages/jdk-8u121/bin/:/usr/local/bin:/usr/local/devel/ANNOTATION/rrichter/local/bin:/home/syooseph/utils/clustalw1.83:/usr/local/packages/gsl/bin:/usr/local/sge_current/bin/lx-amd64:/usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/devel/ANNOTATION/jespinoz/anaconda/bin:/usr/local/devel/ANNOTATION/jespinoz/Dropseq/:/usr/local/devel/ANNOTATION/jespinoz/Dropseq/Drop-seq_tools-1.13/
(mage_env) -bash-4.1$ conda info

     active environment : mage_env
    active env location : /usr/local/devel/ANNOTATION/jespinoz/anaconda/envs/mage_env
            shell level : 1
       user config file : /home/jespinoz/.condarc
 populated config files : /home/jespinoz/.condarc
          conda version : 4.5.11
    conda-build version : not installed
         python version : 3.6.2.final.0
       base environment : /usr/local/devel/ANNOTATION/jespinoz/anaconda  (writable)
           channel URLs : https://conda.anaconda.org/ursky/linux-64
                          https://conda.anaconda.org/ursky/noarch
                          https://conda.anaconda.org/bioconda/linux-64
                          https://conda.anaconda.org/bioconda/noarch
                          https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/free/linux-64
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/pro/linux-64
                          https://repo.anaconda.com/pkgs/pro/noarch
          package cache : /usr/local/devel/ANNOTATION/jespinoz/anaconda/pkgs
                          /home/jespinoz/.conda/pkgs
       envs directories : /usr/local/devel/ANNOTATION/jespinoz/anaconda/envs
                          /home/jespinoz/.conda/envs
               platform : linux-64
             user-agent : conda/4.5.11 requests/2.14.2 CPython/3.6.2 Linux/2.6.32-696.18.7.el6.x86_64 centos/6.4 glibc/2.12
                UID:GID : 3456:63
             netrc file : None
           offline mode : False

3 个答案:

答案 0 :(得分:3)

looks like it was fixed with Conda 4.6.0。升级您的Conda应该可以解决问题。

conda upgrade -n base conda

如果您在解决环境方面遇到困难,建议您尝试

conda upgrade -n base -c defaults --override-channels conda

这将排除求解过程中的所有其他渠道,并且有帮助,因为修剪太多的选项是求解缓慢的主要原因之一。

答案 1 :(得分:0)

当我尝试从Yaml文件创建环境时,conda 4.8.2遇到了相同的问题。

加载一个不同的,已经存在的环境,然后再次卸载,在很多情况下都能解决问题。

答案 2 :(得分:0)

我需要从我的 .condarc 文件中删除 conda-forge。然后一切正常。