Home > Uncategorized > Windows XP install of PythonTools for Visual Studio Shell

Windows XP install of PythonTools for Visual Studio Shell

Saw this via Hacker News while drinking my coffee.

Neat. But I have XP on a VM on my Macbook, so how do I install this on XP?

1) Download and install the Visual Studio 2010 Shell (Integrated).

2) Download and install the Python Tools for Visual Studio package.

3) Download and install Python (I prefer 2.7, not really sure why).

4) Download and install setuptools.

5) Download and install pip.

6) Upgrade distribute:

pip install --upgrade distribute

7) Grab some modules (compiled by Christoph Gohlke) [the following links are for python 2.7]: scipy, numpy, matplotlib, PyMC, MySQL-python, ipython, pyzmq, tornado, pyreadline, pygments, pyqt, pyside, lxml.

8) Run the IDE: C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe

9) Create a python project.

10) Check out the list of Python Interpreters and the status of the intellisense DB generation via analysis of the installed modules via: Tools> Python Tools> Python Interpreters.

11) Start an interactive Python shell with Tools> Python Tools> “[interpreter] Interactive”

12) Execute python app within the interactive shell with Tools> Python Tools> Execute Python in Python Interactive (or shift+ctrl+f5).

13) Continue.

1) There is a bug in the class analyzer for IntelliSense completion database generation where some classes’ pyd files will attempt to be parsed. This occurs with scipy (see Zooba’s response). If you do not wish to rename the exe `Microsoft.PythonTools.Analyzer.exe`, then you can build from source, as described in Zooba’s response on Monday July 22nd, 2013.

2) If you get an “SSL3_GET_SERVER_CERTIFICATE:certificate verify failed” error, then you will have to append the CA that is issuing you the certs to a file. You can use the above process and then copy the output of the pip section as:

move C:\Python27\Lib\site-packages\pip\cacert.pem C:\Python27\Lib\site-packages\pip\cacert.pem.bak
pscp root@BOX:/usr/local/lib/python2.7/site-packages/pip/cacert.pem C:\Python27\Lib\site-packages\pip
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: