Pip install error. Setuptools.command not found

后端 未结 4 807
野的像风
野的像风 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 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.

提交回复
热议问题