Anaconda Tutorial - Installation and Basic Commands
Anaconda is a free Python distribution specifically designed for scientific computing (data science, machine learning). Anaconda let's you easily manage multiple Python environments and simplifies package management.
Why multiple environments
- Always manage the correct versions and dependencies for your project
- Don't spoil your system with too many site packages
Go to https://www.anaconda.com/distribution and download the latest installer for your machine. Follow the setup instructions.
Check more information:
conda update conda
Create a virtual environment:
conda create -n myenv
Specify a specific Python version:
conda create -n myenv Python=3.7
Specify specific packages that are installed:
conda create -n myenv Python=3.7 numpy matplotlib
Activate it (Depending on your machine):
conda activat myenv
source activate myenv
Your terminal will feature the current activated environment.
Deactivate it (Depending on your machine):
List all environments:
conda env list
Remove a specific environment:
conda env remove -n myenv
Install specific packages:
conda install numpy
Install multiple packages with one command:
conda install seaborn matplotlib pandas
conda remove numpy
List all packages in an environment:
Update a package:
conda update numpy
Search for packages :
conda search numpy
Installing with pip is also possible:
pip install numpy
It is recommended to install pip in your environment and then use your local pip version. Otherwise it will try to fall back to other ones on the machine
conda install pip
pip install numpy
Conda and Visual Studio Code
Conda integrates nicely into VS Code. It can automatically detect your available conda environments and let's you specify which one you want to use.
Join My Newsletter! Get Python and ML tips emailed directly to your inbox. Each month you’ll get a summary of all the content I created, including the newest videos, articles, promotions, tips, and more.
Implement popular Machine Learning algorithms from scratch using only built-in Python modules and numpy.
Advanced Python Tutorials. It covers topics like collections, decorators, generators, multithreading, logging, and much more.
Learn all the necessary basics to get started with this deep learning framework.