-
Notifications
You must be signed in to change notification settings - Fork 0
python_resources
Dr. Juan Rojas edited this page May 17, 2021
·
11 revisions
Before you use python, understand how to install packages using Virualenvs or Conda. As well as the use of Pip:
- What is PIP: https://realpython.com/what-is-pip/
- Installing packages wit PIP: https://snarky.ca/why-you-should-use-python-m-pip/
- Cheatsheet: https://angelesbroullon.gitlab.io/code-notepad/2020/10/05/python-pip/
- pip install requirements -r: https://note.nkmk.me/en/python-pip-install-requirements/
- pip -e (editable mode): https://stackoverflow.com/questions/35064426/when-would-the-e-editable-option-be-useful-with-pip-install
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.
The jupyter notebook below will give you a gentle introduction into core concepts in python, numpy, scipy, and matplotlib.
import statements are very important and you will use them throughout python. It is good to learn to use them well early.