Installing Python
from http://www.python.org
To automatically be able to access python through the command prompt, Make sure to install Add python.exe to path during installation in the Customize Python stage
Installing Packages via pip
Installing the Mistune package
pip install mistune
or in case you’re only authorized to install it on your user account (Not for Windows):
pip install --user mistune
Using Packages
[convert.py] import mistune text_block = "This is markdown! It has *italics* and **bold**!" print(mistune.markdown(text_block))
It works:
>>> python convert.py <p>This is markdown! It has <em>italics</em> and <strong>bold</strong>!</p>
Uninstalling Packages
pip uninstall mistune
More Python Packages?
The Cheeseshop aka the Python Package Index https://pypi.python.org/pypi/
Virtual Env
Virtual environments help protect each of your projects from package conflicts.
pip install virtualenv
Activating a virtualenv on Windows
path\to\venv\Scripts\activate