Prerequisites: Python 3.
X (Anaconda)
Python distribution and libraries
We will use the Anaconda Python distribution. Contains more than 300 of the
most popular Python packages for science, math, engineering, and data
analysis.
o Download and install the Anaconda Python 3.X installer for your OS and
architecture:
https://www.anaconda.com/download/
o Verify the Anaconda installation. From the command prompt (Win) or
terminal (Mac, Linux) type
conda --version
python --version
Prerequisites: Environment management
Environments are managed with the Anaconda manager conda:
o Computing environments
conda create --name tensorflow-3.10 python==3.10
conda remove --name tensorflow-3.10 –all
conda env list
o Activate environment
conda activate tensorflow-3.10
conda deactivate
o Additional channels
conda config --add channels conda-forge
conda config --show channels
Prerequisites: Package management
Individual packages added/removed/updated either:
o Anaconda package manager
conda install/uninstall <package>
conda list
o Python package manager
pip install/uninstall <package>
pip freeze (list packages)
Prerequisites: Scientific and Machine Learning packages
o Numerical and scientific
pip install numpy, scipy
o Data engineering
pip install pandas
o Visualization
pip matplotlib, seaborn
o Machine learning
pip install scikit-learn
o Machine learning: Tensorflow/Keras
conda install -c conda-forge tensorflow
Prerequisites: Workspace
Integrated Developer Environments (IDEs):
o Collection of editor, compiler/interpreter, debugger, and documentation
o More recently, version control (GIT), auto completion (generative AI), big
data tools, etc.
Common IDEs:
o Jupyter Notebooks (Python, free)
Mathematica style notebooks for scripting, data science, and ML. Mix code,
output, and notes.
o Pycharm / Datalore(JetBrains, free for academia)
Full-fledged, professional code development – editor, compiler/interpreter,
debugger, documentation, versioning, etc.
o VS Code (Microsoft, free)
Similarly full-fledged IDE.
o Spyder (Anaconda, free)
Light-weight IDE from Anaconda.