Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't update to numpy 1.13 with anaconda?

PyPI has numpy 1.13.3 packages for a month now https://pypi.python.org/pypi/numpy

Anaconda cloud claims to have 1.13 https://anaconda.org/anaconda/numpy

But I just get 1.11.3-py35_0 when I use conda update numpy

enter image description here

My environment: Windows 7 64 bit python 3.5

like image 758
f5r5e5d Avatar asked Aug 09 '17 21:08

f5r5e5d


People also ask

How do I check NumPy version in Anaconda?

Make sure you are using the Anaconda prompt, as the conda command only works in an Anaconda environment, and type conda list numpy . The result will show the version of numpy and associated packages.

Is NumPy automatically installed with Anaconda?

If you installed the Anaconda distribution of Python, NumPy comes pre-installed and no further installation steps are necessary. If you use a version of Python from python.org or a version of Python that came with your operating system, the Anaconda Prompt and conda or pip can be used to install NumPy.


2 Answers

You could try to install a specific NumPy version. In your case you could use:

$ 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.

like image 157
MSeifert Avatar answered Sep 16 '22 11:09

MSeifert


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.

like image 30
emir Avatar answered Sep 16 '22 11:09

emir