Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Visual Studio not installed

Reply
Thread Tools

Visual Studio not installed

 
 
Darren Dale
Guest
Posts: n/a
 
      07-13-2004
Hello,

I have not been able to run "python setup.py install" on several
packages, receiving the following error:

Python was built with version 6 of Visual Studio, and extensions need to
be built with the same version of the compiler, but it isnt installed.

Could someone explain what this means? I am working on windows XP at the
moment, but when I move to Linux, does this mean I will not be able to
install from source?
 
Reply With Quote
 
 
 
 
Tim Peters
Guest
Posts: n/a
 
      07-13-2004
[Darren Dale]
> I have not been able to run "python setup.py install" on several
> packages, receiving the following error:
>
> Python was built with version 6 of Visual Studio, and extensions need to
> be built with the same version of the compiler, but it isnt installed.
>
> Could someone explain what this means?


It means you're on a Windows system, you haven't installed Microsoft's
C compiler ("version 6 of Visual Studio"), and you're trying to
install a package that requires compiling C code. It doesn't work
because it needs a C compiler. Sometimes you can get a different
download of the package for Windows containing precompiled C code,
though (it depends on the specific package).

> I am working on windows XP at the moment, but when I move to Linux, does
> this mean I will not be able to install from source?


Linux systems all come with C compilers. Windows systems don't. Of
course on a Linux system, the Python you use will not have been
compiled with Visual Studio, so disutils won't claim that it was (it's
telling you the truth on WIndows, though). I hope that answers your
question, because I'm not sure what it was <wink>.
 
Reply With Quote
 
 
 
 
Darren Dale
Guest
Posts: n/a
 
      07-13-2004
> Linux systems all come with C compilers. Windows systems don't. Of
> course on a Linux system, the Python you use will not have been
> compiled with Visual Studio, so disutils won't claim that it was (it's
> telling you the truth on WIndows, though). I hope that answers your
> question, because I'm not sure what it was <wink>.


Your right, I'm not sure what I was asking either. I forgot that linux
versions would not be compiled by Visual Studio. (I've been sick and not
sleeping). I wonder if the windows version could be compiled with a free
C-compiler?
 
Reply With Quote
 
Nick Smallbone
Guest
Posts: n/a
 
      07-13-2004
"Darren Dale" <> wrote in message
news:cd1hci$r9o$...
> > Linux systems all come with C compilers. Windows systems don't. Of
> > course on a Linux system, the Python you use will not have been
> > compiled with Visual Studio, so disutils won't claim that it was (it's
> > telling you the truth on WIndows, though). I hope that answers your
> > question, because I'm not sure what it was <wink>.

>
> Your right, I'm not sure what I was asking either. I forgot that linux
> versions would not be compiled by Visual Studio. (I've been sick and not
> sleeping). I wonder if the windows version could be compiled with a free
> C-compiler?


Should be - MinGW or Cygwin should work. I've compiled it with Watcom before
(http://www.openwatcom.org). And you can get the compiler of Visual C++
without the IDE - http://msdn.microsoft.com/visualc/vctoolkit2003/.


 
Reply With Quote
 
Jeff Shannon
Guest
Posts: n/a
 
      07-13-2004
Nick Smallbone wrote:

>"Darren Dale" <> wrote...
>
>
>>I wonder if the windows version could be compiled with a free
>>C-compiler?
>>
>>

>
>Should be - MinGW or Cygwin should work. I've compiled it with Watcom before
>(http://www.openwatcom.org). And you can get the compiler of Visual C++
>without the IDE - http://msdn.microsoft.com/visualc/vctoolkit2003/.
>
>


But keep in mind that both the interpreter and all C extensions need to
be compiled with the same compiler. Most people who write extensions
plan for them to be used with Visual Studio 6, since that's what the
python.org distribution uses. If you use some other compiler, then
you'll have to recompile every extension you install, and you may need
to tweak things to get it to work. It's probably easier, in the long
run, to download and figure out MS's free command-line version of VC++
(or to talk someone who already has it into compiling the extension in
question for you)...

Jeff Shannon
Technician/Programmer
Credit International

 
Reply With Quote
 
Fuzzyman
Guest
Posts: n/a
 
      07-14-2004
[snip..]
> But keep in mind that both the interpreter and all C extensions need to
> be compiled with the same compiler. Most people who write extensions
> plan for them to be used with Visual Studio 6, since that's what the
> python.org distribution uses. If you use some other compiler, then
> you'll have to recompile every extension you install, and you may need


AFAIK this statement is just wrong. I've compiled extensions with gcc
(from minGW) on windows and had them work fine alongside other
precompiled extensions.

Have a look at :

http://sebsauvage.net/python/mingw.html

Regards,

Fuzzy

http://www.voidspace.org.uk/atlantib...thonutils.html

> to tweak things to get it to work. It's probably easier, in the long
> run, to download and figure out MS's free command-line version of VC++
> (or to talk someone who already has it into compiling the extension in
> question for you)...
>
> Jeff Shannon
> Technician/Programmer
> Credit International

 
Reply With Quote
 
beliavsky@aol.com
Guest
Posts: n/a
 
      07-14-2004
"Nick Smallbone" <> wrote in message news:<40f44f8a$0$7799$>...

> > Your right, I'm not sure what I was asking either. I forgot that linux
> > versions would not be compiled by Visual Studio. (I've been sick and not
> > sleeping). I wonder if the windows version could be compiled with a free
> > C-compiler?

>
> Should be - MinGW or Cygwin should work. I've compiled it with Watcom before
> (http://www.openwatcom.org). And you can get the compiler of Visual C++
> without the IDE - http://msdn.microsoft.com/visualc/vctoolkit2003/.


I have read that the Intel C compiler (ICC) produces fast executables
(see http://gcc.gnu.org/ml/gcc/2004-05/msg00021.html for example). It
is available for both Linux and Windows -- see
http://www.intel.com/software/products/compilers/. Has anyone tried to
compile CPython using ICC and compared the performance with the
current CPython binaries?
 
Reply With Quote
 
Paul Moore
Guest
Posts: n/a
 
      07-14-2004
(Fuzzyman) writes:

> [snip..]
>> But keep in mind that both the interpreter and all C extensions need to
>> be compiled with the same compiler. Most people who write extensions
>> plan for them to be used with Visual Studio 6, since that's what the
>> python.org distribution uses. If you use some other compiler, then
>> you'll have to recompile every extension you install, and you may need

>
> AFAIK this statement is just wrong. I've compiled extensions with gcc
> (from minGW) on windows and had them work fine alongside other
> precompiled extensions.


It's note exactly wrong, just oversimplified. The interpreter and all
extensions need to *use the same version of the C runtime*. Mingw gcc
compiles code to use the MS C runtime DLL, and so can build extensions
which will work with python.org's distribution of the interpreter. But
you still have to take care, as the CRT DLL needed changes depending
on which version of MSVC is used to build the interpreter. For python
2.3, the interpreter uses MSVCRT.DLL, which is what mingw uses by
default. For python 2.4, the interpreter uses MSVCR71.DLL, and mingw
needs to have a -lmsvcr71 flag specified to use the right DLL.

For 2.3, this is all relatively easy - you can use MSVC 6 or mingw to
build extensions which work with the python.org build of the
interpreter.

For 2.4, the picture is still changing. You can use MS Visual Studio
..NET 2003 without problems, and mingw support is nearly there. The
free MS compilers offer other possibilities, but (AFAIK) no-one has
got the details resolved with these, yet.

Hope this helps,
Paul.
--
This signature intentionally left blank
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is Visual Studio 2005 complict with Visual Studio 2003 rockdale ASP .Net 1 08-23-2006 07:20 PM
Should I write Visual studio 2005 or Visual studio 2003 MCSD =?Utf-8?B?VmlqYXk=?= Microsoft Certification 14 06-30-2006 09:05 AM
Should I write Visual studio 2005 or Visual studio 2003 MCSD =?Utf-8?B?VmlqYXk=?= Microsoft Certification 0 06-29-2006 07:05 PM
Is Visual Studio Team System and Visual Studio Foundation Server are same?. Thirumalai ASP .Net 0 05-22-2006 08:48 AM
visual studio .net 2003 verses visual studio .net 2002 wh ASP .Net 2 01-16-2004 04:54 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57