python_resources - learningLogisticsLab/binPicking GitHub Wiki

Before you use python, understand how to install packages using Virualenvs or Conda. As well as the use of Pip:


VirtualEnvs, Pip, and (mini)Conda

VirtualEnv's

Pip

Conda

Warnings:

  • I recommend working directly with virtualenv + pip
  • Do not mix conda and pip as indicated here.
  • Use pip only inside created virtualenv env. Check which python and pip versions you are using with the command:
which python
which pip

from the command line. Avoid the use of the system's python/pip (although this is inevitable when using ROS).

More on using python ROS and virtualenv's later.


Python, Numpy, SciPy, Matplotlib

The jupyter notebook below will give you a gentle introduction into core concepts in python, numpy, scipy, and matplotlib.


import statements

import statements are very important and you will use them throughout python. It is good to learn to use them well early.