Python virtualenv setuptools 包问题
Python virtualenv setuptools package issue
使用带 -p 的 virtualenv python2
安装 pip install gluoncv
时出现以下错误
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'
感谢https://github.com/pypa/virtualenv/issues/1493
特别是这条评论:https://github.com/pypa/virtualenv/issues/1493#issuecomment-576250710
pip install --upgrade 'setuptools<45.0.0'
它需要较低版本的 setuptools,因此 pip install --upgrade 到较低版本 [即降级]
使用带 -p 的 virtualenv python2
安装 pip install gluoncv
时出现以下错误
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'
感谢https://github.com/pypa/virtualenv/issues/1493
特别是这条评论:https://github.com/pypa/virtualenv/issues/1493#issuecomment-576250710
pip install --upgrade 'setuptools<45.0.0'
它需要较低版本的 setuptools,因此 pip install --upgrade 到较低版本 [即降级]