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

后端 未结 16 675
花落未央
花落未央 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 09:56

    I had the same problem while installing numpy with pip install numpy.

    Then I tried

    sudo -H pip3 install --upgrade pip

    sudo -H pip3 install numpy

    It worked well for me.

    Explanation : The -H (HOME) option with sudo sets the HOME environment variable to the home directory of the target user (root by default). By default, sudo does not modify HOME.

提交回复
热议问题