0

I am trying to learn how to use f2py (Fortran to Python), but I am getting a permission denied error when I use f2py and I am the admin user. !f2py -c -m hellofortran hellofortran.f then I get the error:

/bin/sh: /Users/dorislee/.virtualenvs/py27dev/bin/f2py: Permission denied I tried doing sudo easy_install numpy but that it still says Permission denied

Thanks

ROBOTPWNS
  • 4,299
  • 6
  • 23
  • 36
  • 4
    You don't want to use "sudo" to install packages locally in your own home directory. This will make those directories owned by the root user. You might check if any directories in .virtualenvs are owned by root, and if so, change the ownership back to your own user. – cxrodgers Mar 22 '15 at 04:25
  • 1
    If you do `ls -l /Users/dorislee/.virtualenvs/py27dev/bin/f2py` what do you get? Is the execute bit set for you? Is it readable? –  Mar 22 '15 at 10:17
  • Same problem here – Raymond gsh Nov 14 '18 at 13:37

0 Answers0