Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python virtualenv setuptools package issue

Using virtualenv with -p python2 While installing pip install gluoncv it errors out with following error

Requirement already satisfied: setuptools in ./mxv16_p2/lib/python2.7/site-packages (45.0.0)
ERROR: Package 'setuptools' requires a different Python: 2.7.12 not in '>=3.5'
like image 431
Chaitanya Bapat Avatar asked Oct 24 '25 05:10

Chaitanya Bapat


1 Answers

Thanks to https://github.com/pypa/virtualenv/issues/1493

Specifically this comment : https://github.com/pypa/virtualenv/issues/1493#issuecomment-576250710

pip install --upgrade 'setuptools<45.0.0'

It expected a lower version of setuptools and hence pip install --upgrade to lower version [i.e. downgraded]

like image 193
Chaitanya Bapat Avatar answered Oct 26 '25 17:10

Chaitanya Bapat



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!