-
Notifications
You must be signed in to change notification settings - Fork 0
Set up a Windows environment
Vianney le Clément de Saint-Marcq edited this page Feb 25, 2014
·
3 revisions
We recommend using WinPython to easily set up a compatible Python environment on Windows. Here is a quick install guide.
- Download and install WinPython 3.3. Choose 64bit if you have a recent PC with at least 4GB of RAM, or 32bit otherwise. By default, the install is portable, i.e., it will only extract itself into a folder and leave your system otherwise untouched.
- Download the following modules pre-compiled or from PyPI:
- rdflib 4.1.0
- isodate 0.4.9
- BeautifulSoup 4.3.2
-
lxml (choose
lxml-3.3.0.win-amd64-py3.3.exe
orlxml-3.3.0.win32-py3.3.exe
if you are on 32-bits) - html5lib
- goslate
- Launch the WinPython Control Panel, located in the folder where you just installed WinPython.
- Drag-and-drop the files downloaded at step 2 into the Install/upgrade packages area and click on Install packages.
- Done. You can launch Python using the WinPython Interpreter or the Spyder development environment.
If you need a proxy to connect to the internet, follow these steps.
- Go to Control Panel › System › Advanced system settings (the last link in the sidebar on the left).
- In the Advanced tab, click on Environment Variables….
- In the User variables part (the upper part), click on New….
- As Variable name, enter
http_proxy
. As Variable value, enter your proxy server in the formhttp://PROXYSERVER:8080/
wherePROXYSERVER
is the name or IP address of your proxy, and8080
is its port number. - If you also need a proxy for HTTPS (secure) connections, repeat steps 3 and 4 for Variable name
https_proxy
and Variable valuehttps://PROXYSERVER:8080/
(notice thehttps
in both name and value). - Close all windows by clicking on OK.
If you want to use the python
command from any command window, follow these steps.
- Go to Control Panel › System › Advanced system settings (the last link in the sidebar on the left).
- In the Advanced tab, click on Environment Variables….
- In the User variables part (the upper part), look for a variable named
Path
(orPATH
, the case does not matter).- If you found it:
- Select the line of the
Path
variable and click on Edit…. - Append
;C:\WinPython-64bit-3.3.3.2\python-3.3.3.amd64
at the end of the value, whereC:\WinPython-64bit-3.3.3.2
is the path where you installed WinPython.
- Select the line of the
- If there is no
Path
variable:- Click on New….
- As Variable name, enter
Path
. As Variable value, enterC:\WinPython-64bit-3.3.3.2\python-3.3.3.amd64
, whereC:\WinPython-64bit-3.3.3.2
is the path where you installed WinPython.
- If you found it:
- Close all windows by clicking on OK.