User Tools

Site Tools


python:development_workflow

This is an old revision of the document!


Python Development Workflow

Node.js has npm and package.json files, PHP has composer and composer.json files, and Python has pip and virtual environments, which don't work quite like npm and composer.

Projects require virtual environments

The basic idea is that for each Python project, you define a virtual environment that harbors all the project's python dependencies. Here is the easiest way to go about things assuming you have pip, virtualenv and virtualenvwrapper installed on your system.

  1. Create a directory for your project:
    $ mkdir ~/Dev/MyProject
  2. Create a virtual environment for you project:
    $ TODO
  3. Enable the virtual environment:
    $ workon MyProject
  4. Install the packages you need:
    pip TODO
  5. When you are done, switch your shell back to “regular” mode:
    deactivate

Virtual environments and IDEs

What about if you want to use an IDE or other GUI tools? TODO

python/development_workflow.1468368929.txt.gz · Last modified: 2016/07/13 00:15 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki