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:
numpy-base
numpy
numpy 1.14.3 py35h9bb19eb_2
numpy-base 1.14.3 py35h7ef55bc_1
Questions:
numpy
versions?numpy-base
package even installed?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.
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
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.
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 −
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With