小编pk4*_*059的帖子

安装Anaconda后,conda命令失败并显示"ImportError:no module named conda.cli"

我最近安装了64位Linux版本的Anaconda(1.8.0-Linux-x86_64).安装似乎工作正常:

$ python 
Python 2.7.5 |Continuum Analytics, Inc.| (default, Nov  4 2013, 15:30:26)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>>
##No issues here 
Run Code Online (Sandbox Code Playgroud)

但是,如果我尝试任何conda命令,我会收到一个错误:

$ conda info
Traceback (most recent call last):
  File "~/anaconda/bin/conda", line 3, in <module>
    from conda.cli import main
ImportError: No module named conda.cli
Run Code Online (Sandbox Code Playgroud)

安装在我的用户目录(〜/ anaconda)下.我已经验证$ PATH包含〜/ anaconda/bin.$ PYTHONPATH也设置为〜/ anaconda/lib.

有关'conda'命令有什么问题的想法?我的搜索似乎没有显示任何其他人报告此错误.

python linux anaconda

28
推荐指数
3
解决办法
5万
查看次数

标签 统计

anaconda ×1

linux ×1

python ×1