473,404 Members | 2,195 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,404 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 3923
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; didn't test what I wrote, but wrote it - more or...
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 on 2.3.3 I get
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. enabling/disabling gcc, aCC) but I always get the same problem...
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 response is sent to those of you new to...
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 closed (+21) / 5150 total (+21) RFE : 150 open...
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. jfj@cluster:~/> python -V Python 2.3.4...
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 Python, and that moves me to express some thoughts...
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 #include <boost/python.hpp> #include <iostream> ...
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 closed (+18) / 7064 total (+15) RFE : 234 open...
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: I write the following C source file:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.