Let’s see some methods that can be used to install packages to Anaconda environment.
There are many ways one can add pre-built packages to anaconda environment. So, let’s see how to direct the path in anaconda and install them.
Using pip command :
- Open Anaconda Command prompt as administrator
- Use
cd\
to come out of set directory or path. - Run
pip install
command.
pip install numpy pip install sckit-learn
Using git :
- Download git files
- Clone or download git hub files in some directory.
- Open Anaconda Command prompt as administrator.
- Use
cd C:\Users\...
to locate downloaded site. - Then run pip install setup.py.
Using wheel :
- Download wheel package.
- Download binary files or
.whl
file from authentic website. - Open Anaconda Command prompt as administrator.
- Use
cd C:\Users\...
to locate downloaded site. - Then run
pip install ___.whl
Using Conda forge Command :
This type of installation will guarantee that package will be downloaded to the system. Because this type of installation resolves environments, package-package conflicts, etc.
- Self Upgrade related packages to the downloading package.
- Open Anaconda Command prompt as administrator.
- Then run
conda install -c conda-forge ____
conda install -c conda-forge opencv
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.