Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
F2PY.......plz!!!!
#1
I tried to use f2py but this error message came out[compiling C sources error: Unable to find vcvarsall.bat].
however i already installed VC++ for python2.7. 
there is no explanation further installing VC++ so plz tell me how to deal with it...

Seemingly it is finally just only one error to use f2py.
Reply
#2
Link
Quote:IMPORTANT: F2PY is now part of NumPy project. Installing numpy will be sufficient.
So you need to install Numpy,using wheel(no need to compile) is the easiest way.
Download(if 32-bit Python else choose 64-bit) numpy-1.11.2+mkl-cp27-cp27m-win32.whl
Place it in C:\Python27\Scripts folder,
navigate in cmd to Scripts folder then do:
pip install numpy-1.11.2+mkl-cp27-cp27m-win32.whl
Reply
#3
I did it but still there is same message...

it said numpy (1.11.2+mkl) in my pip list
Reply
#4
What are you typing, exactly? If you're using pip, you shouldn't need the .bat to compile anything.
Reply
#5
I put (Python -m numpy.f2py -c -fcompiler=gnu95 -m prime primepy.f90) into cmd then it appear.

The .bat is something like a process to use f2py. And actually I don't know about it...
Reply
#6
If you open a python console, what happens if you type "from numpy import f2py"?  For example, this is what I see (just trying to make sure it's actually installed on your system correctly):
C:\Users\nilamo>python
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:01:18) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from numpy import f2py
>>>
Reply
#7
I put (from numpy import f2py), it says >>>. So I guess I installed correctly
Reply
#8
>>> from numpy import f2py
>>>
If this is what you get then yes.
Recommended Tutorials:
Reply
#9
so...I installed f2py correctly and install everything though, still there is the error.
do you have any solution to solve it?
Reply
#10
You need to be more specific, we cant tell from 
Quote:I installed f2py correctly and install everything though, still there is the error.

Read this
http://python-forum.io/misc.php?action=help&hid=19
Recommended Tutorials:
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  f2py: no Fortran compiler found FMJS 2 5,400 May-25-2020, 02:51 PM
Last Post: FMJS
  f2py recovering variables from Fortran module marius 0 3,448 Dec-02-2016, 03:52 PM
Last Post: marius
  Question about F2py...Help me plz!!! Yuji3131 3 9,084 Oct-05-2016, 09:59 AM
Last Post: Yuji3131

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020