- Install Python latest 2.7 from msi http://www.python.org/download/
- Install Setuptools from msi http://pypi.python.org/pypi/setuptools#windows
- Add C:\Python27\Scripts to %PATH% environment variable.
- cmd, run 'easy_install pip'
- cmd, run 'pip install virtualenv'
- cmd. run 'pip install virtualenvwrapper-win'
The Windows virtualenv wrapper notes are here: https://github.com/davidmarble/virtualenvwrapper-win
At this point ready to use VirtualEnv, along with requirements files etc. I suppose the process might look something like this:
At this point ready to use VirtualEnv, along with requirements files etc. I suppose the process might look something like this:
- make project folder new_proj
- cd into new_proj
- make requirements.txt
- edit requirements.txt add say "flask"
- mkvirtualenv new_proj_env
- pip install -r requirements.txt
Additionally the postgres database driver might be required. This is in combination with a local installation of Postgres.
- This can be downloaded from : http://www.stickpeople.com/projects/python/win-psycopg/
- I like installing it as a global package.
- This does involve enabling pass through to global packages per: http://stackoverflow.com/questions/3371136/revert-the-no-site-packages-option-with-virtualenv
No comments:
Post a Comment