Virtualenv OSError - setuptools pip wheel failed with error code 1

后端 未结 14 1033
醉酒成梦
醉酒成梦 2020-12-06 05:33

I get the following error message when trying to set up a virtual environment with virtualenv 15.0.2 but receive OSError setuptools pip wheel failed with error code 1.

相关标签:
14条回答
  • 2020-12-06 06:08

    Running

    conda install -c anaconda virtualenv=15.1.0 
    

    worked for me.

    This is because virtualenv doesnt work with pip while conda exists on your system.

    0 讨论(0)
  • 2020-12-06 06:08

    You can save yourself from all this hustle by just downloading latest version of python, install it before you begin openstack or devstack installation. Go to https://www.python.org/downloads/. Installing latest version of python will replace the older version and install all the libraries you need. This saved me four days of trying to install devstack

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

    For 3.7.3, i did a pip install --upgrade pip (from 18.1 to 19.1)

    Then i did the required installation and it worked (for pyinstaller)

    0 讨论(0)
  • 2020-12-06 06:16

    I got this error while having several python versions installed on my mac. Specifying which python version to be used for your new virtual environment solves the issue.

    By specifying the absolute python path:

    virtualenv -p /usr/bin/python2.7 venv
    

    or use your default python link:

    virtualenv -p python3 venv
    
    0 讨论(0)
  • 2020-12-06 06:16

    Anaconda does seem to sometimes mess up with virtualenv.

    Specifying the python system version /usr/bin/python3.5 instead of the conda one solved the issue.

    0 讨论(0)
  • 2020-12-06 06:19

    Simply you can do this:

    Python 2: virtualenv env

    Python 3 : python3 -m venv env

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