Nemo
Nemo

Reputation: 1227

Conda installs a package that already exists

Although I already have numpy installed in my anaconda environment as per conda list

numpy                     1.15.4                   pypi_0    pypi
numpy-base                1.16.2           py36hc3f5095_0
numpydoc                  0.8.0                    py36_0

However, when I did conda install theano, it tries to install another numpy package with the same version as shown below

  added / updated specs:
- theano

The following NEW packages will be INSTALLED:

  mkl_fft            pkgs/main/win-64::mkl_fft-1.0.10-py36h14836fe_0
  numpy              pkgs/main/win-64::numpy-1.16.2-py36h19fb1c0_0
  pygpu              pkgs/main/win-64::pygpu-0.7.6-py36h452e1ab_0
  scipy              pkgs/main/win-64::scipy-1.2.1-py36h29ff71c_0
  theano             pkgs/main/win-64::theano-1.0.3-py36_0

My questions are:

  1. why do I have different versions of numpy (numpy 1.15.4 and numpy-base 1.16.2)?

  2. why does anaconda want to install a second numpy package of the same version in its environment?

Thanks.

Upvotes: 2

Views: 1476

Answers (1)

Hemerson Tacon
Hemerson Tacon

Reputation: 2522

why do I have different versions of numpy (numpy 1.15.4 and numpy-base 1.16.2)?

If you open Conda terminal and from numpy import __version__ you will probably see that the version is equal to 1.16.2. But if you open python externally to the Conda, and do the same thing you will probably see the version 1.15.4. Conda by default maintains the base environment and, as each environment can have its own version of each module, the difference is because of that.

why does anaconda want to install a second numpy package of the same version in its environment?

This can be explained if you have another active environment (different from the base environment), and the first answer also answers this.

Upvotes: 1

Related Questions