Python Windows Install
How to install Pyhton od Windows?
Python install
- Download MSI installer of the latest version of Python 2.x (widely supported) or 3.x (future of Python) for Windows x86 (32 bit version) or x86-64 (64 bit version) and run it (double click on the instaled file). Check "Add python.exe to Path" option to add
python.exefolder to the system PATH to be able run Python from any location. - After installation add "C:\Python27\Scripts\" (or Pyhton35 depending on your Python version) to your PATH (right click on Computer > Advanced system settings > Environment Variables > System Variables > Path > Edit... - append ";C:\Python27\Scripts\" to Path the variable)
Essential Python tools to install (optional)
- Pip is a Python package manager. Download get-pip.py file and run
python get-pip.pycommand. This will downloads and install setuptools and pip to your computer. See Pip documentation. - Virtualenv is a tool for creating isolated Python environments. Use
pip install virtualenvcommand for installing. See the Virtualenv documentation.
Python Web Development
- Install WampServer - it will install Apache, MySQL (and PHP + PHPMyAdmin) on your computer. First install Visual C++ Redistributable for Visual Studio 2012 required for WampServer run.
- mod_wsgi -
- download WSGI adapter module for the Apache HTTP Server mod_wsgi.so (change the extension of downloaded file to .zip a extract the
mod_wsgi.so file) and put it toC:\wamp\bin\apache\ApacheX.X.XX\modulesfolder - add this line to Apache httpd.conf file:
LoadModule wsgi_module modules/mod_wsgi.so - restart Apache
- See tutorial how to configure Apache to run WSGI applications.
- download WSGI adapter module for the Apache HTTP Server mod_wsgi.so (change the extension of downloaded file to .zip a extract the
Database access
- MySQL database adapter MySQLdb module for Python: here (Mysqlclient fro Python 3)
- Python driver for MongoDB PyMongo
Other useful packages
- Python Image Library PIL
- Numerical scientific computing - NumPy
- Mathematics, science, and engineering - SciPy
- 2D plotting library Matplotlib:
-
pip install python-dateutil -
pip install pyparsing -
pip install six -
pip install pytz - Matplotlib
-
Python IDE
- Python IDE of your choice, e.g. PyCharm, Aptana Studio, etc.