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

后端 未结 16 639
花落未央
花落未央 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:05

    This also happens to me when I try to install the opencv-python package:

    I can fix it with command line

    python3 -m pip install {name of package} --user
    

    When I try to install the said package, the command becomes:

    python3 -m pip install opencv-python --user
    

    Resulting in this:

    0 讨论(0)
  • 2020-12-02 10:11

    I already tried all suggestion posted in here, yet I'm still getting the errno 13,

    I'm using Windows and my python version is 3.7.3

    After 5 hours of trying to solve it, this step worked for me:

    I try to open the command prompt by run as administrator

    0 讨论(0)
  • 2020-12-02 10:11

    try this command line below for MacOS to check user's permission.

    $ sudo python -m pip install --user --upgrade pip
    
    0 讨论(0)
  • 2020-12-02 10:12

    This worked for me:

     python3 -m venv env
     source ./env/bin/activate
     python -m pip install package
    

    (From Github: https://github.com/googlesamples/assistant-sdk-python/issues/236 )

    0 讨论(0)
  • 2020-12-02 10:12

    just sudo pip install packagename

    0 讨论(0)
  • 2020-12-02 10:13

    I also had the same problem, I tried many different command lines, this one worked for me:

    Try:

        conda install py-xgboost
    

    That's what I got:

    Collecting package metadata: done
    Solving environment: done
    
    ## Package Plan ##
    
      environment location: /home/simplonco/anaconda3
    
      added / updated specs:
        - py-xgboost
    
    
    The following packages will be downloaded:
    
        package                    |            build
        ---------------------------|-----------------
        _py-xgboost-mutex-2.0      |            cpu_0           9 KB
        ca-certificates-2019.1.23  |                0         126 KB
        certifi-2018.11.29         |           py37_0         146 KB
        conda-4.6.2                |           py37_0         1.7 MB
        libxgboost-0.80            |       he6710b0_0         3.7 MB
        mkl-2019.1                 |              144       204.6 MB
        mkl_fft-1.0.10             |   py37ha843d7b_0         169 KB
        mkl_random-1.0.2           |   py37hd81dba3_0         405 KB
        numpy-1.15.4               |   py37h7e9f1db_0          47 KB
        numpy-base-1.15.4          |   py37hde5b4d6_0         4.2 MB
        py-xgboost-0.80            |   py37he6710b0_0         1.7 MB
        scikit-learn-0.20.2        |   py37hd81dba3_0         5.7 MB
        scipy-1.2.0                |   py37h7c811a0_0        17.7 MB
        ------------------------------------------------------------
                                               Total:       240.0 MB
    
    The following NEW packages will be INSTALLED:
    
      _py-xgboost-mutex  pkgs/main/linux-64::_py-xgboost-mutex-2.0-cpu_0
      libxgboost         pkgs/main/linux-64::libxgboost-0.80-he6710b0_0
      py-xgboost         pkgs/main/linux-64::py-xgboost-0.80-py37he6710b0_0
    
    The following packages will be UPDATED:
    
      ca-certificates     anaconda::ca-certificates-2018.12.5-0 --> pkgs/main::ca-certificates-2019.1.23-0
      mkl                                            2019.0-118 --> 2019.1-144
      mkl_fft                              1.0.4-py37h4414c95_1 --> 1.0.10-py37ha843d7b_0
      mkl_random                           1.0.1-py37h4414c95_1 --> 1.0.2-py37hd81dba3_0
      numpy                               1.15.1-py37h1d66e8a_0 --> 1.15.4-py37h7e9f1db_0
      numpy-base                          1.15.1-py37h81de0dd_0 --> 1.15.4-py37hde5b4d6_0
      scikit-learn                        0.19.2-py37h4989274_0 --> 0.20.2-py37hd81dba3_0
      scipy                                1.1.0-py37hfa4b5c9_1 --> 1.2.0-py37h7c811a0_0
    
    The following packages will be SUPERSEDED by a higher-priority channel:
    
      certifi                                          anaconda --> pkgs/main
      conda                                            anaconda --> pkgs/main
      openssl                anaconda::openssl-1.1.1-h7b6447c_0 --> pkgs/main::openssl-1.1.1a-h7b6447c_0
    
    
    Proceed ([y]/n)? y
    
    
    Downloading and Extracting Packages
    libxgboost-0.80      | 3.7 MB    | ##################################### | 100% 
    mkl_random-1.0.2     | 405 KB    | ##################################### | 100% 
    certifi-2018.11.29   | 146 KB    | ##################################### | 100% 
    ca-certificates-2019 | 126 KB    | ##################################### | 100% 
    conda-4.6.2          | 1.7 MB    | ##################################### | 100% 
    mkl-2019.1           | 204.6 MB  | ##################################### | 100% 
    mkl_fft-1.0.10       | 169 KB    | ##################################### | 100% 
    numpy-1.15.4         | 47 KB     | ##################################### | 100% 
    scipy-1.2.0          | 17.7 MB   | ##################################### | 100% 
    scikit-learn-0.20.2  | 5.7 MB    | ##################################### | 100% 
    py-xgboost-0.80      | 1.7 MB    | ##################################### | 100% 
    _py-xgboost-mutex-2. | 9 KB      | ##################################### | 100% 
    numpy-base-1.15.4    | 4.2 MB    | ##################################### | 100% 
    Preparing transaction: done
    Verifying transaction: done
    Executing transaction: done
    
    0 讨论(0)
提交回复
热议问题