0% found this document useful (0 votes)
15 views1 page

Anaconda Commands

The document provides instructions for creating and managing Python environments and packages in Anaconda including creating a new environment, activating an environment, checking package versions, listing installed packages, and deleting an environment.

Uploaded by

Rachit Saini
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views1 page

Anaconda Commands

The document provides instructions for creating and managing Python environments and packages in Anaconda including creating a new environment, activating an environment, checking package versions, listing installed packages, and deleting an environment.

Uploaded by

Rachit Saini
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Create new environment in Anaconda:

>>>conda create --name ______

Activate environment:
>>>activate _____

To check python version in terminal/prompt:


>>>py -0

conda-forge:
>>>conda install -c conda-forge <package-name>

>>>mamba install -c conda-forge <package-name>

check gdal version:


>>>gdalinfo --version

To check where gdal is installed:


>>>where gdalinfo.exe
>>>where gdal.dll

To list all the library packages installed in python:


>>>pip list #OR >>>conda list

To list all the python environments:


>>>conda env list #OR
>>>conda info --envs

To know the env in which jupyter notebook is open


>>>import sys
>>>print(sys.executable)

To delete an env
>>>conda deactivate
>>>conda remove --name ______ --all

To install jupyter notebook in the new environment


>>>conda install jupyter notebook

To remove a package from python env


>>>pip uninstall __________

You might also like