我從這裏跑過這個例子; http://conda.pydata.org/docs/index.htmlConda示例不起作用,它顯示不是較舊的numpy更新?
我在Mac上,10.8.5。我可能肯定會壓扁一些東西,因爲我最初在Anaconda遇到麻煩,但我認爲它現在正在工作。爲了理智檢查,我運行了上面幫助中顯示的示例。它僅創建一個具有較舊numpy版本的新conda環境,然後顯示source activate [env]如何獲得首選項目。
在我的情況下,一切似乎運行良好,但numpy的版本保持不變。有什麼想法嗎?提前感謝你!
$ ~/anaconda/bin/python2.7 Python 2.7.6 |Anaconda 1.9.2 (x86_64)| (default, Jan 10 2014, 11:23:15) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import numpy nu>>> numpy.__version__ '1.8.1' >>> quit() $ conda create -p ~/anaconda/envs/trynum16 numpy=1.6 anaconda $ source activate ~/anaconda/envs/trynum16 discarding ~/anaconda/bin from PATH prepending ~/anaconda/envs/trynum16/bin to PATH (~/anaconda/envs/trynum16):~ $ echo $PATH ~/anaconda/envs/trynum16/bin:/usr/local/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/git/bin:/bin (~/anaconda/envs/trynum16):~ $ python Python 2.7.5 |Anaconda 1.8.0 (x86_64)| (default, Oct 24 2013, 07:02:20) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import numpy >>> numpy.__version__ '1.8.1' >>> quit() (~/anaconda/envs/trynum16):~ $ echo $PATH ~/anaconda/envs/trynum16/bin:/usr/local/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/git/bin:/bin (~/anaconda/envs/trynum16):~ $ source deactivate discarding ~/anaconda/envs/trynum16/bin from PATH $ echo $PATH ~/anaconda/bin:/usr/local/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/git/bin:/bin
添加水蟒,其中包括numpy的,可能會替代的numpy的1.6的選擇。在環境中嘗試witouth蟒蛇。或者在命令後的anaconda之後設置numpy。 – M4rtini
我發現了一張可能相關的票。 https://github.com/conda/conda-build/issues/76 conda骷髏pypi numpy不起作用#76 – AnneTheAgile
顛倒秩序沒有幫助,也沒有去除Anaconda。謝謝你的回覆@ M4rtini! – AnneTheAgile