Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Anaconda Environment Installing Packages Numpy-Base

After having installed a few packages and the TensorFlow package updates with conda install, when running the command conda list I see that have two numpy packages:

  1. numpy-base

  2. numpy

    numpy 1.14.3 py35h9bb19eb_2
    numpy-base 1.14.3 py35h7ef55bc_1

Questions:

  1. Why do I have two numpy versions?
  2. which one is being used and why got numpy-base package even installed?
like image 789
SolingerMuc Avatar asked Jun 05 '18 11:06

SolingerMuc


People also ask

How to add packages to Anaconda environment in Python?

Add packages to Anaconda environment in Python. 1 Open Anaconda Command prompt as administrator. 2 Use cd\ to come out of set directory or path. 3 Run pip install command.

What is NumPy in Anaconda?

linux-32 v1.15.4 win-64 v1.21.5 NumPy is the fundamental package needed for scientific computing with Python. © 2022 Anaconda, Inc. All Rights Reserved. (v2.35.6 fab5c9df) Legal | Privacy Policy

How to install or uninstall a Python package in conda?

Run the command conda install package-name to install the python package like below. After you successfully install the python package, you can run the command conda list package-name to verify that it has been installed. To uninstall a python package, you can run the command conda uninstall package-name.

How to install any particular package through Pip in Conda environment?

We can install pip in our existing conda environment by simply giving the command − Now if you want to install any particular package, through pip in conda environment, we can do it like − Above we have installed opencv package through pip in conda environment. We can use the anaconda prompt, to list all of the packages in the active environment −


1 Answers

numpy, here, is an example of a metapackage, while numpy-base is the original numpy library package.

When a conda package is used for metadata alone and does not contain any files, it is referred to as a metapackage. The metapackage may contain dependencies to several core, low-level libraries and can contain links to software files that are automatically downloaded when executed. Metapackages are used to capture metadata and make complicated package specifications simpler.

The structure of a conda package is as follows, a metapackage only contains the info folder.

.
├── bin
│   └── f2py
├── info
│   ├── LICENSE.txt
│   ├── files
│   ├── index.json
│   ├── paths.json
│   └── recipe
└── lib
    └── python3.x

If you look at meta.yaml file of numpy, it, in fact, has a comment saying

numpy is a metapackage that may include mkl_fft and mkl_random both of which require numpy-base to build.

Read more about conda packages.

like image 73
kHarshit Avatar answered Oct 04 '22 14:10

kHarshit