Could not install packages due to a “Environment error :[error 13]: permission denied : 'usr/local/bin/f2py'”

前端 未结 10 2055
故里飘歌
故里飘歌 2020-11-29 00:49

I am trying to install numpy on macOS X but after executing the command pip install numpy I am getting the error:

Environment error :[err

相关标签:
10条回答
  • 2020-11-29 01:13

    As a windows user, run an Admin powershell and launch :

    python -m pip install --upgrade pip
    
    0 讨论(0)
  • 2020-11-29 01:14

    Well, in my case the problem had a different cause, the Windows path Length Check this.

    I was installing a library on a virtualenv which made the path get longer. As the library was installed, it created some files under site-packages. This made the path exceed Windows limit throwing this error.

    Hope it helps someone =)

    0 讨论(0)
  • 2020-11-29 01:15

    I just ran the command with sudo:

    sudo pip install numpy
    

    Bear in mind that you will be asked for the user's password. This was tested on macOS High Sierra (10.13)

    0 讨论(0)
  • 2020-11-29 01:23

    On Windows this has worked for me. From the command line, specify the path to the exe for Python: & "C:/Program Files (x86)/Python37-32/python.exe" -m pip install --upgrade pip --user

    0 讨论(0)
提交回复
热议问题