By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,946 Members | 1,600 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,946 IT Pros & Developers. It's quick & easy.

Troubleshooting installing new package

P: n/a
Hi,

I have Python 2.5 installed on WinXP and I am trying to install a new
package. I ran the setup.py build and I get the following message:

C:\packages\reedsolomon-0.1>setup.py build
running build
running build_ext
error: Python was built with Visual Studio 2003;
extensions must be built with a compiler than can generate compatible binaries.
Visual Studio 2003 was not found on this system. If you have Cygwin installed,
you can try compiling with MingW32, by passing "-c mingw32" to setup.py.

I have Visual Studio 2005 Express (the free one) installed. Is there a
way to specify an option to compile using that version of the
compiler?

Sorry for the silly question and thanks in advance for any helpful suggestions!
--
Gheorghe Postelnicu, PhD
MGH, Harvard Medical School
Sep 13 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Sep 13, 8:10 pm, "Gheorghe Postelnicu"
<gheorghe.posteln...@gmail.comwrote:
Hi,

I have Python 2.5 installed on WinXP and I am trying to install a new
package. I ran thesetup.pybuild and I get the following message:

C:\packages\reedsolomon-0.1>setup.pybuild
running build
running build_ext
error: Python was built with Visual Studio 2003;
extensions must be built with a compiler than can generate compatible binaries.
Visual Studio 2003 was not found on this system. If you have Cygwin installed,
you can try compiling with MingW32, by passing "-c mingw32" tosetup.py.

I have Visual Studio 2005 Express (the free one) installed. Is there a
way to specify an option to compile using that version of the
compiler?

Sorry for the silly question and thanks in advance for any helpful suggestions!
--
Gheorghe Postelnicu, PhD
MGH, Harvard Medical School
Hello, newbee here. I was looking for other solutions to other
problems. However, in my research for building wxPython I read from
the docs/build.html concerning the WIN crowd ...
--
[quote] If you woudl rather use a different version of VisualStudio
keep in mind that you'll also have to build Python and any other
extension modules that you use with that compiler because a different
version of the C runtime library is used. The stock Python 2.4 and 2.5
executables are built with MSVC 7.1, and the same rules apply to it.[/
quote]

So... did you build your Python2.5?? or did you install the binaries??
It makes a big difference.

Sep 19 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.