![]() |
F2PY.......plz!!!! - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: F2PY.......plz!!!! (/thread-302.html) Pages:
1
2
|
F2PY.......plz!!!! - Yuji3131 - Oct-05-2016 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. RE: F2PY.......plz!!!! - snippsat - Oct-05-2016 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 RE: F2PY.......plz!!!! - Yuji3131 - Oct-05-2016 I did it but still there is same message... it said numpy (1.11.2+mkl) in my pip list RE: F2PY.......plz!!!! - nilamo - Oct-05-2016 What are you typing, exactly? If you're using pip, you shouldn't need the .bat to compile anything. RE: F2PY.......plz!!!! - Yuji3131 - Oct-05-2016 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... RE: F2PY.......plz!!!! - nilamo - Oct-05-2016 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 >>> RE: F2PY.......plz!!!! - Yuji3131 - Oct-06-2016 I put (from numpy import f2py), it says >>>. So I guess I installed correctly RE: F2PY.......plz!!!! - metulburr - Oct-06-2016 >>> from numpy import f2py >>>If this is what you get then yes. RE: F2PY.......plz!!!! - Yuji3131 - Oct-06-2016 so...I installed f2py correctly and install everything though, still there is the error. do you have any solution to solve it? RE: F2PY.......plz!!!! - metulburr - Oct-06-2016 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 |