Python 无法使用 anaconda 更新到 numpy 1.13?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/45600627/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Can't update to numpy 1.13 with anaconda?
提问by f5r5e5d
PyPI has numpy 1.13.3 packages for a month now https://pypi.python.org/pypi/numpy
PyPI 现在有一个月的 numpy 1.13.3 包https://pypi.python.org/pypi/numpy
Anaconda cloud claims to have 1.13 https://anaconda.org/anaconda/numpy
Anaconda cloud 声称拥有 1.13 https://anaconda.org/anaconda/numpy
But I just get 1.11.3-py35_0 when I use conda update numpy
但是当我使用时我只得到 1.11.3-py35_0 conda update numpy
My environment: Windows 7 64 bit python 3.5
我的环境:Windows 7 64 位 python 3.5
回答by MSeifert
You could try to install a specific NumPy version. In your case you could use:
您可以尝试安装特定的 NumPy 版本。在您的情况下,您可以使用:
$ conda install numpy=1.13
In case of conflicts it will show the conflicting packages.
如果发生冲突,它将显示冲突的包。
For example:
例如:
$ conda install numpy=1.14
Solving environment: failed
UnsatisfiableError: The following specifications were found to be in conflict:
- blaze -> numba -> numpy[version='>=1.13,<1.14.0a0']
- numpy=1.14
Use "conda info <package>" to see the dependencies for each package.
In this case blaze
and numba
prevent NumPy from upgrading.
在这种情况下blaze
并numba
阻止 NumPy 升级。
回答by emir
I had the same problem and none of them worked!
我遇到了同样的问题,但没有一个起作用!
So I solved it using command:
所以我使用命令解决了它:
pip install --upgrade numpy
Then, when I ls
to my site-packages dir, I see it's updated to 1.14.0.
然后,当我ls
进入我的站点包目录时,我看到它已更新为 1.14.0。