-
Notifications
You must be signed in to change notification settings - Fork 243
Setting up a Python development environment in Windows
atalyaalon edited this page Feb 19, 2018
·
10 revisions
- Install Python 2.7.11
- If Python is already installed and its version is lower than 2.7.11 update to a version >= 2.7.11 OR install setuptools & pip(package manager)
- Update the
PATH
to include a reference to thePython
andPython/scripts
directories (replaceC:\Python27
with your path to Python).- Command Line: Run this command with Administrator privileges:
SETX /M PATH "%PATH%";C:\Python27;C:\Python27\Scripts
. The new path will be available in the next opened terminal. - GUI:
Control Panel > System Properties > Advanced > Environment Variables > System Variables > Path > Edit >
Add;C:\Python27;C:\Python27\Scripts
to the end of the line.
- Command Line: Run this command with Administrator privileges:
- Install [PostgreSQL] (http://www.postgresql.org/download/windows/) ( x86 version! even if you have 64 bit os )
- Add its bin folder to your path:
C:\Program Files (x86)\PostgreSQL\<version>\bin\
, for example, for version 9.4 addC:\Program Files (x86)\PostgreSQL\9.4\bin\
- Add its bin folder to your path:
- Install GitHub for windows to get the code
-
cd
to the anyway directory - Download and install Microsoft Visual C++ Compiler for Python 2.7 (https://www.microsoft.com/en-us/download/details.aspx?id=44266)
pip install -r requirements.txt -r test_requirements.txt