在Mac OS X 10.9上更新/安装新的Anaconda软件包时出错

时间:2014-08-05 18:14:16

标签: python macos anaconda

我最近将Anaconda更新为1.5.1版。以下是我安装的一些信息。

Current conda install:

             platform : osx-64
conda command version : 1.5.1
       root directory : /Applications/Anaconda
       default prefix : /Applications/Anaconda
         channel URLs : http://repo.continuum.io/pkgs/free/osx-64/
                    http://repo.continuum.io/pkgs/pro/osx-64/
environment locations : /Applications/Anaconda/envs
          config file : None

当我运行$ conda update conda时,我收到以下错误:

Traceback (most recent call last):
File "/Applications/Anaconda/bin/conda", line 5, in <module>
sys.exit(main())
File "/Applications/Anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 121, in        main
args.func(args, p)
File "/Applications/Anaconda/lib/python2.7/site-packages/conda/cli/main_update.py", line 36, in execute
conda = Anaconda()
File "/Applications/Anaconda/lib/python2.7/site-packages/conda/anaconda.py", line 43, in __init__
self._index = PackageIndex(fetch_index(self.channel_urls))
File "/Applications/Anaconda/lib/python2.7/site-packages/conda/package_index.py", line 42, in __init__
pkg = Package(pkg_info)
File "/Applications/Anaconda/lib/python2.7/site-packages/conda/package.py", line 58, in __init__
for spec_string in self._info['requires'])
KeyError: 'requires'

我在GitHub上搜索过,但是找不到问题的解决方案。有谁知道如何解决这个问题,以便安装/更新conda软件包?

谢谢!

2 个答案:

答案 0 :(得分:1)

再次尝试运行conda update conda。它现在应该工作。

答案 1 :(得分:1)

更新Anaconda,Conda和Anaconda Navigator使用:

println(&quot;Hello world&quot;)

这对我有用。