You can install packages into your virtual environment with /anaconda/envs/venv_name/bin/pip install package_name. Make comparing version strings super simple. To do this you need to find the directory of your virtual environment, which will be somewhere like /anaconda/envs/virtual_env_name/. You need to use the version of pip inside your virtual environment. If you try to run pip install 'package_name' you’ll use the global version, which will install the package outside your virtual environment. Installation results in a folder named 'miniconda3' added to your Home directory. Complete these steps by copying and pasting the following lines into the appropriate command line interface for your system.
Make sure to change the name correspondingly based on your virtual environment creation. Download the 64-bit Python 3 Miniconda installer to your Home directory.
Not all packages are available with conda install, through, and if you want one that isn’t available then you’ll have to use the alternate package manager pip. It is not at all obvious how conda and pip interact with each other, particularly in the context of virtual environments. You can use the conda install command to install many packages quickly and easily. Installing Python packages into the virtual environment is often straightforward. These virtual environments are created without any Python packages preloaded into them.
Anaconda also comes with a package manager called conda.īesides its utility for installing and managing packages, conda also possesses the ability to create virtual environments which make sharing and reproducing analyses much easier.
Seemingly ubiquitous in the Python world, the distribution Anaconda comes with over 200 Python packages installed.