Python Forum

Full Version: F2PY.......plz!!!!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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.
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
I did it but still there is same message...

it said numpy (1.11.2+mkl) in my pip list
What are you typing, exactly? If you're using pip, you shouldn't need the .bat to compile anything.
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...
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
>>>
I put (from numpy import f2py), it says >>>. So I guess I installed correctly
>>> from numpy import f2py
>>>
If this is what you get then yes.
so...I installed f2py correctly and install everything though, still there is the error.
do you have any solution to solve it?
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
Pages: 1 2