Python - goatandsheep/goatandsheep.github.com GitHub Wiki
To run anything on Python, you'll need to install Python. Install Python here.
nonlocal x
/ global x
Frameworks
- Django: lots of packages specifically for Django
- Flask: light (here's a full stack Python intro with Flask)
- Tornado: light, async, functional, uses lambdas
IDEs:
- PyCharm: an IDE with Linting and ensures your project follows appropriate Python coding standards
Package Management
- Install pip: necessary for Windows and some versions of python
- Test by running
pip install virtualenv
- Make a file that lists your pip packages
requirements.txt
- Create:
pip freeze > requirements.txt
- Install the packages:
pip install -r requirements.txt
- Create:
- Test by running
- PyPI: Python package manager that makes stuff easier, installed with
pip install package
- Note: for some versions above version 3, you need pip3
- virtualenv: creates a micro instance of python with its own pip packages, python version, etc. here's a great doc explaining setup
python -m venv myvenv
Packages
- PILlow: simple image processing library. It is the successor to Python Imaging Library (PIL), so DON'T USE PIL
- scikit-image: advanced image processing library
- OpenCV: great for making intense image processing easy, machine learning. Also works with Java, C++, C
- PyGame
- TensorFlow: Google's machine learning engine. It's in its infancy, but will probably become the new standard for machine learning. Also works with C++
- scikit-learn: machine learning algorithm