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

Core Python Programming (Beginner) - Course

This document provides instructions for managing Conda virtual environments, including creating, activating, and deactivating environments, as well as installing and updating packages. It also covers how to list environments, clean up unused packages, and remove environments. The document serves as a beginner's guide to using Conda for Python programming.

Uploaded by

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

Core Python Programming (Beginner) - Course

This document provides instructions for managing Conda virtual environments, including creating, activating, and deactivating environments, as well as installing and updating packages. It also covers how to list environments, clean up unused packages, and remove environments. The document serves as a beginner's guide to using Conda for Python programming.

Uploaded by

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

1/5/26, 6:51 PM Core Python Programming (Beginner) - Course

Refer here: Conda create environment and everything you need to know to manage conda virtual environment

# Create Conda Environment named py3k


!conda create --name py3k

# Create Python 3 environment with specific Python version and packages.


!conda create -n py3k python=3.11 pandas scikit-learn

# Activate environment
!conda activate py3k

# Deactivate environment
!conda deactivate

# See Anaconda installed packages in current environment


!conda list

# List environments
!conda info --envs

!conda env list

# Update Anaconda
!conda update conda

# Update a package with Anaconda


!conda update ipython

# Update a package
!conda update scipy

# Update all packages


!conda update all

# Install specific version of a package


!conda install scipy=0.12.0

conda install pkg_name1==1.x.y pkg_name2==1.x.y

pip install pkg_name2==1.x.y pkg_name2==1.x.y

# Cleanup: Conda can accumulate a lot of disk space


# because it doesn’t remove old unused packages
!conda clean -p

# Cleanup tarballs which are kept for caching purposes


!conda clean -t

# Remove an environment

!conda env remove -n env_name

[Link] 1/1

You might also like