

For instance, we may want to install Pandas, matplotlib, seaborn,Īnd statsmodels. However, if we can also install multiple Python packages when creating theĮnvironment. We just type conda install -c anaconda pandas. Of course, installing Python packages, using conda, in an environment is not any different than using conda to install Python packages in the base environment. Now, we just type conda activate pandasenvto activate our Python environment. Next, we need to activate the environment. If we want our Python environment to have any other name we just change this to the name we want. Note, “pandasenv” is the name of the Python environment.

Note, if using conda package manager or Anaconda Navigator we need to have the Python distribution Anaconda installed.

As previously mentioned, in this post we will learn how to install Python packages using pip, conda package manager, and Anaconda Navigator. There are several methods that enable us to install Python packages. For example, pip install pandas will install the Python package Pandas and it’s dependencies. That is, we use pip to install Python packages. pip is an acronyn and stands for “ Pip Installs Packages”. A lot of the Python packages can be found in the default source for packages and their dependencies - Python Package Index (PyPI). Pip is a standard package-management system that we can use to install and manage software packages written in Python. Now, before we are going to learn how to install Python packages we are going to answer the question “what is a package in Python?”
