Could not install packages due to an EnvironmentError: [Errno 13]

后端 未结 16 680
花落未央
花落未央 2020-12-02 09:50

In my MacOS Mojave terminal I wanted to install a python package with pip. At the end it says:

You are using pip version 10.0.1, however version 18.1 is avai         


        
16条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-02 10:04

    On Mac, there is no 3.7 directory or the directory 3.7 is owned by root. So, I removed that directory, create a new directory by current user, and move it there. Then installation finishes without error.

    sudo rm -rf /Library/Python/3.7
    mkdir 3.7
    sudo mv 3.7 /Library/Python
    ll /Library/Python/
    pip3 install numpy
    

提交回复
热议问题