Python | Add packages to Anaconda environment

File handling | NumPy | Python Methods and Functions

There are many ways to add prebuilt packages to the anaconda environment. So let`s see how to route the path to Anaconda and install them.

Using the pip command:

  1. Open Anaconda Command Prompt as Administrator
  2. Use cd/ to exit the given directory or path.
  3. Run the command pip install .
 pip install numpy pip install sckit-learn 

With:

  1. Download files
  2. Clone or download git hub files to some directory.
  3. Open Anaconda command prompt as administrator.
  4. Use cd C: / Users / ... to find the downloaded site.
  5. Then run pip install setup.py .

With:

  1. Download Wheels package.
  2. Download binaries or .whl file from genuine website.
  3. Open Anaconda Command Prompt as Administrator.
  4. Use cd C: / Users / ... to find the loaded site.
  5. Then run pip install ___. whl

Using the command:
This type of installation ensures that the package is loaded onto the system. Because this type of installation resolves environments, package conflicts, etc.

  1. Self-upgrade related packages to a download package.
  2. Open an Anaconda command prompt as administrator.
  3. Then run conda install -c conda-forge ____
 conda install -c conda-forge opencv 




Get Solution for free from DataCamp guru