Boost Your Python Workflow: Pip and Anaconda Tips

Python Cheatsheet

PIP (Python Package Installer)

Update a pip package

pip install --upgrade package-name

Clean pip cache

pip cache purge

Anaconda / miniconda Command-Line Tips

Managing Environments

Create new conda environment
conda create --name environment_name python=3.11 

You can replace the 3.11 with any the python version as required

Remove conda environment
conda env remove --name environment_name

Make sure to deactivate the environment if you are trying to remove the active environment using conda deactivate

Reclaim Storage

Clean cache, reclaim storage, and remove unused or temporary packages:
conda clean --all

That’s it for now, adding more soon

Boost your Python development efficiency with these quick commands! Whether you use pip or Anaconda, keeping your environment clean and up-to-date is essential for smooth workflows. Save this cheatsheet for your next Python project.

Looking for more Python tips? Stay tuned for regular updates on mastering Python!

Leave a Reply

Your email address will not be published. Required fields are marked *