question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

f2py executable not getting installed on windows

See original GitHub issue

According to the docs for f2py, which is installed with numpy, it should be sufficient to execute this command at the shell to call f2py:

f2py

But this fails because on windows, the only file installed is f2py.py, which is not accessible as f2py at the shell.

At one point, I don’t remember when, a script/executable was packaged along with the script that did this properly…

See also: https://github.com/ContinuumIO/anaconda-issues/issues/259#issuecomment-207591726

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:19 (11 by maintainers)

github_iconTop GitHub Comments

6reactions
awbirdsallcommented, Nov 18, 2016

Stumbled across this discussion when trying to fix the same issue as @ianhbell. I found an existing commit that addresses this by making python -m numpy.f2py executable from the command line: https://github.com/numpy/numpy/pull/5565.

This works on my Windows machine. It’s still a discrepancy with the docs, but it definitely beats typing in the full path, and it seems to play nice with my different conda environments.

1reaction
charriscommented, Aug 22, 2018

Leaving this open for a bit.

Read more comments on GitHub >

github_iconTop Results From Across the Web

f2py.exe is somewhere, but the directory isn't on path
On Windows 10: Click start, search for "environment variables". or. use windows + R key to run command, run the following "sysdm.cpl" then ......
Read more >
F2PY and Windows — NumPy v1.25.dev0 Manual
Get -Command python.exe resolving to C:\Users\$USERNAME\AppData\Local\Microsoft\WindowsApps\python.exe. The Microsoft Visual C++ (MSVC) toolset. With this ...
Read more >
[Example code]-f2py installation not working under Windows
Coding example for the question f2py installation not working under Windows. ... In 2016, you should be able to run f2py as an...
Read more >
f2py.exe File Download & Fix For All Windows OS - Pconlife.com
Tip: If you cannot find the software installation path, you can follow the path suggested above, find one by one, and put the...
Read more >
[f2py] Specific problems in using f2py on Windows for newbie
To get C and Fortran compilers, I also installed MinGW using the prepackaged executable version 0.3-alpha-2.1. It includes MSYS, although I did not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found