轻松解决“cannot import name 'Feature' from 'setuptools'”

参考:https://blog.csdn.net/pengshengege/article/details/105113561

在vs code安装python-dateutil依赖时报错(单独pip安装不报错,但/requests.txt包安装时就会在此处断掉,报错)
报错内容:

from setuptools import setup, Extension, Feature
    ImportError: cannot import name 'Feature' from 'setuptools' (C:\Users\wanxia\my_clone\flasky\venv\lib\site-packages\setuptools\__init__.py)
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

博友的办法;
轻松解决“cannot import name 'Feature' from 'setuptools'”_第1张图片
更新setuptools版本pip install --upgrade pip setuptools==45.2.0
**结果:**问题解决!

你可能感兴趣的:(解决报错,vs,code)