473,387 Members | 1,515 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Visual Studio not installed

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?
Jul 18 '05 #1
4 3104
[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>.
Jul 18 '05 #2
[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

Jul 18 '05 #3
"Nick Smallbone" <ni**@nick8325.freeserve.co.uk> wrote in message news:<40**********************@news.zen.co.uk>...
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?
Jul 18 '05 #4
mi*****@foord.net (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
Jul 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Novice | last post by:
Hi all, I'm afraid this is the second posting of this information as I didn't get a response on the previous post. I will try to shorten my message (i.e. be more concise) in the hopes that it will...
1
by: Craig Skrabacz | last post by:
I originally had VB.Net standard installed on my computer. I have subsequently installed Visual Studio .Net 2002 on my computer. I have not uninstalled VB.Net. When I look in my Add/Remove...
3
by: Greg B | last post by:
Created a simple Win32 application (using Visual Studio wizard)... Am using Visual Studio (Enterprise Edition) 6.0, as well as Service Pack 5. At the start of 'WinMain' function, added the...
2
by: M Skabialka | last post by:
I installed Visual Studio Beta 2005 but setting up the SQL server was so complex I uninstalled it and put Visual Studio 2003 Academic on. I am totally new to Visual Studio and trying to teach...
18
by: surfrat_ | last post by:
Hi, I am having the following problems in getting Microsoft Visual Studio 2005 Professional to link to an Access .mdb database. Please help me to sort this out. Problem 1: The Microsoft...
3
by: Edwin Smith | last post by:
I have a 2 form project in VS2005 that now hangs whenever I try to do anything with the second form. This seems to have started when I added some SQL tables from a Pervasive v.9 database using the...
3
by: Rachel Garrett | last post by:
This is driving me mad. I have Visual Studio.NET PRO 2005 installed on my machine at work. I want to write a web service. I find lots of tutorials on how to do this with Visual Studio.NET; some are...
2
by: Cramer | last post by:
So, what is the relationship between Visual Studio and Visual Web Developer. I find a lot of documentation on MSDN that presents Visual Web Developer as it's own stand-alone product (which I'd...
13
by: miztaken | last post by:
Hi, My C# application have a following code to create an instance of Visual Studio. System.Type type = System.Type.GetTypeFromProgID("VisualStudio.DTE. 8.0"); Object obj =...
3
by: Johnson | last post by:
I'm not sure if this is an IIS 5.1 issue or ASP.NET issue, or Visual Studio 2008 issue -- thus posting to 3 groups. Please don't be offended. The problem I'm encountering is that Visual Studio...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.