Anaconda is a fantastic tool for all deep learning, machine learning, and computer vision researcher. It reduces tons of extra work for setting up environments and tools. Personally, I love it so much. Anaconda Navigator is a great UI for setting up environments and everything. However, it is easy to work with the anaconda command prompt. Here are some commonly used anaconda commands that you need in your everyday life. For easy installing Keras or Pytorch, it is strongly recommended to visit this article.

Creating an environment in an anaconda

To create an environment named “test” for python version-

conda create -n test python

It will create an environment named test with Python’s latest version. To install a specific version, mention that version in the command as like –

conda create -n test python=3.6

View and activate an environment in an anaconda

To check the list of anaconda environments-

conda env list

To activate the specific anaconda environment-

conda activate test

It will activate the test environment.

Install a specific package in an anaconda

To install a specific package in an anaconda environment write like – conda install package_name. For example, I want to install Keras. So the command will be-

conda install keras

Install packages using pip in an anaconda environment

From my previous experience, all packages are not available in conda. In such a situation we can install packages using the pip command. The common format is like –

pip install package_name

View all packages in the anaconda environment

The following commands will show all the packages installed in the active environment.

conda list

Delete an environment in anaconda

The following command will remove the anaconda environment.

conda remove environment_name
0 0 votes
Article Rating
0
Would love your thoughts, please comment.x
()
x