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