Pip install error. Setuptools.command not found

后端 未结 4 805
野的像风
野的像风 2021-01-07 21:38

I\'m using a clean instance of Ubuntu server and would like to install some python packages in my virtualenv.

I receive the following output from the command \'pip i

相关标签:
4条回答
  • 2021-01-07 21:56

    Elaborating @elyase's Answer. First check for which python version you want to install setuptools. Normally both python versions comes default with debian or any linux distro. So, as per your requirement install setup tools using apt package manager

    For python 2.x

    sudo apt-get install python-setuptools
    

    For python 3.x

    sudo apt-get install python3-setuptools
    
    0 讨论(0)
  • 2021-01-07 21:57

    had the same problem, solved it with

    pip install -U setuptools
    
    0 讨论(0)
  • 2021-01-07 22:06

    Try installing:

    sudo apt-get install python-setuptools
    

    if this doesn't work try:

    curl -O https://bootstrap.pypa.io/get-pip.py
    python get-pip.py
    

    Edit: If you have several (possible conflicting) python installations or environments, the following commands can be useful to debug which executables are being used:

    which python
    which pip
    which easy_install
    

    They should "match". It can happen for example that you have pip installing packages for an EPD or global distribution while the current python that is being used corresponds to a local environment (or something different), in which case it might not be able to see the installed packages.

    0 讨论(0)
  • 2021-01-07 22:11

    These instructions solved the problem for me:

    first enter these commands

        pip install --upgrade pip
        pip install --upgrade wheel
        pip install setuptools
    

    and then try to install the package that requires setuptools.

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