472,330 Members | 1,223 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

python-dev and setting up setting up f2py on Windows XP

Hi,

I've been trying to get f2py working on Windows XP, I am using Python
2.3. I'm new to python so I'm not too sure what I'm doing yet. I need
the python-dev package to run f2py. I have been told this is just the
header files and .dll and I need to put them somewhere my C compiler
can find them. I've searched the web and none of the python-dev
packages I've found are for windows. I was wondering is this
automatically part of the windows version and if so how I set it up so
my C compiler can find them. If it is not part of the standard package
does anyone know where I can find it???

Any help at all would be much appreciated.
Thanks,
Sile

Aug 16 '06 #1
5 3875
I'm really not familiar with the package you are trying to use, nor
that familiar with what you get on windows. I would guess you did a
binary installation download, and you may need to get the python source
tarball instead - in order to get the files you need.

Barring that, I'm certain the headers are available through
sourceforge, they provide svn access for building python itself: more
info @:

http://www.python.org/dev/faq/

Hope this helps.

Anand

Sile wrote:
Hi,

I've been trying to get f2py working on Windows XP, I am using Python
2.3. I'm new to python so I'm not too sure what I'm doing yet. I need
the python-dev package to run f2py. I have been told this is just the
header files and .dll and I need to put them somewhere my C compiler
can find them. I've searched the web and none of the python-dev
packages I've found are for windows. I was wondering is this
automatically part of the windows version and if so how I set it up so
my C compiler can find them. If it is not part of the standard package
does anyone know where I can find it???

Any help at all would be much appreciated.
Thanks,
Sile
Aug 16 '06 #2
Sile wrote:
Hi,

I've been trying to get f2py working on Windows XP, I am using Python
2.3. I'm new to python so I'm not too sure what I'm doing yet. I need
the python-dev package to run f2py. I have been told this is just the
header files and .dll and I need to put them somewhere my C compiler
can find them. I've searched the web and none of the python-dev
packages I've found are for windows. I was wondering is this
automatically part of the windows version and if so how I set it up so
my C compiler can find them. If it is not part of the standard package
does anyone know where I can find it???

Any help at all would be much appreciated.
The concept of "python-dev package" is a Debian concept which doesn't
apply to Windows. The standard installation on Windows provides the
header and library files that you need for interfacing with C.

Don't put things where your C compiler can find them; do a standard
no-frills install of Python2.4 using the .msi installer and tell your C
compiler where the goodies are.

E.g. using the MinGW32 gcc, you'd need things like:

gcc -I\python24\include -lpython24 -L\python24\libs
[first is "i".upper(), second is "L".lower()]

Which C compiler are you using?

You will need to add "C:\Python24" to the path so that you can invoke
python easily; that will also enable anything else finding python24.dll
if you do a "me only" install of Python.

So give that a whirl and if you have any dramas, come back with
questions ...

HTH,
John

Aug 16 '06 #3
Hi John,

Thank you very much for your help and resolving my issue with
"python-dev". I'll hopefully get my problem sorted today, if not I'm
sure I'll be back with more questions! The C compiler I'm using is
Microsoft Visual Studio 8. I have been told there are potential
compatibility issues between this, my version of python and my fortran
compiler. I have to use python 2.3 as it is compatible with a CFD
package I'm using. I've resinstalled python properley so I'll
persevere with my exsisting C compiler this morning and try MINGW32 if
I have no joy.

Thanks again,

Sile

John Machin wrote:
Sile wrote:
Hi,

I've been trying to get f2py working on Windows XP, I am using Python
2.3. I'm new to python so I'm not too sure what I'm doing yet. I need
the python-dev package to run f2py. I have been told this is just the
header files and .dll and I need to put them somewhere my C compiler
can find them. I've searched the web and none of the python-dev
packages I've found are for windows. I was wondering is this
automatically part of the windows version and if so how I set it up so
my C compiler can find them. If it is not part of the standard package
does anyone know where I can find it???

Any help at all would be much appreciated.

The concept of "python-dev package" is a Debian concept which doesn't
apply to Windows. The standard installation on Windows provides the
header and library files that you need for interfacing with C.

Don't put things where your C compiler can find them; do a standard
no-frills install of Python2.4 using the .msi installer and tell your C
compiler where the goodies are.

E.g. using the MinGW32 gcc, you'd need things like:

gcc -I\python24\include -lpython24 -L\python24\libs
[first is "i".upper(), second is "L".lower()]

Which C compiler are you using?

You will need to add "C:\Python24" to the path so that you can invoke
python easily; that will also enable anything else finding python24.dll
if you do a "me only" install of Python.

So give that a whirl and if you have any dramas, come back with
questions ...

HTH,
John
Aug 18 '06 #4
Hi John,

Thank you very much for your help and resolving my issue with
"python-dev". I'll hopefully get my problem sorted today, if not I'm
sure I'll be back with more questions! The C compiler I'm using is
Microsoft Visual Studio 8. I have been told there are potential
compatibility issues between this, my version of python and my fortran
compiler. I have to use python 2.3 as it is compatible with a CFD
package I'm using. I've resinstalled python properley so I'll
persevere with my exsisting C compiler this morning and try MINGW32 if
I have no joy.

Thanks again,

Sile

John Machin wrote:
Sile wrote:
Hi,

I've been trying to get f2py working on Windows XP, I am using Python
2.3. I'm new to python so I'm not too sure what I'm doing yet. I need
the python-dev package to run f2py. I have been told this is just the
header files and .dll and I need to put them somewhere my C compiler
can find them. I've searched the web and none of the python-dev
packages I've found are for windows. I was wondering is this
automatically part of the windows version and if so how I set it up so
my C compiler can find them. If it is not part of the standard package
does anyone know where I can find it???

Any help at all would be much appreciated.

The concept of "python-dev package" is a Debian concept which doesn't
apply to Windows. The standard installation on Windows provides the
header and library files that you need for interfacing with C.

Don't put things where your C compiler can find them; do a standard
no-frills install of Python2.4 using the .msi installer and tell your C
compiler where the goodies are.

E.g. using the MinGW32 gcc, you'd need things like:

gcc -I\python24\include -lpython24 -L\python24\libs
[first is "i".upper(), second is "L".lower()]

Which C compiler are you using?

You will need to add "C:\Python24" to the path so that you can invoke
python easily; that will also enable anything else finding python24.dll
if you do a "me only" install of Python.

So give that a whirl and if you have any dramas, come back with
questions ...

HTH,
John
Aug 18 '06 #5
Thanks Anand !

Aug 18 '06 #6

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

Similar topics

4
by: Logan | last post by:
Several people asked me for the following HOWTO, so I decided to post it here (though it is still very 'alpha' and might contain many (?) mistakes;...
10
by: Berthold Hoellmann | last post by:
Hello, When I use ./configure --with-thread --with-fpectl --with-signal-module \ --with-pymalloc --enable-shared --with-cxx=g++ make test...
2
by: Olaf Meyer | last post by:
I'm having some problems compiling Python 2.3.3 on HP-UX (B.11.00). I've tried sevral different options for the configure script (e.g....
0
by: python-help-bounces | last post by:
Your message for python-help@python.org, the Python programming language assistance line, has been received and is being delivered. This automated...
0
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 259 open ( -5) / 2573 closed (+17) / 2832 total (+12) Bugs : 745 open ( +0) / 4405...
1
by: Jerald | last post by:
Running python 2.3.4 on valgrind (a tool like purify which checks the use of uninitialized memory, etc), gives a lot of errors. See below. ...
29
by: Stephen Ferg | last post by:
I am a very satisfied user of Python and have been for number of years. I would never willing use another language. I wish all good things for...
0
by: Li Daobing | last post by:
I can't use .def(str(self)) I write a simple example, without `str', I can build it well, but with this one, I can't build //Rational.cpp...
0
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 413 open ( +1) / 3407 closed (+10) / 3820 total (+11) Bugs : 897 open ( -3) / 6167...
11
by: Osiris | last post by:
I have these pieces of C-code (NOT C++ !!) I want to call from Python. I found Boost. I have MS Visual Studio 2005 with C++. is this the idea:...
0
by: tammygombez | last post by:
Hey fellow JavaFX developers, I'm currently working on a project that involves using a ComboBox in JavaFX, and I've run into a bit of an issue....
0
by: tammygombez | last post by:
Hey everyone! I've been researching gaming laptops lately, and I must say, they can get pretty expensive. However, I've come across some great...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...

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.