当我尝试安装BeautifulSoup时,出现此错误。
> C:\Users\Dylan>python -m pip install beautifulsoup Collecting
> beautifulsoup Using cached
> https://files.pythonhosted.org/packages/1e/ee/295988deca1a5a7accd783d0dfe14524867e31abb05b6c0eeceee49c759d/BeautifulSoup-3.2.1.tar.gz
> Complete output from command python setup.py egg_info:
> Traceback (most recent call last):
> File "<string>", line 1, in <module>
> ModuleNotFoundError: No module named 'setuptools' C:\Users\Dylan>python -m pip install beautifulsoup Collecting
> beautifulsoup Using cached
> https://files.pythonhosted.org/packages/1e/ee/295988deca1a5a7accd783d0dfe14524867e31abb05b6c0eeceee49c759d/BeautifulSoup-3.2.1.tar.gz
> Complete output from command python setup.py egg_info:
> Traceback (most recent call last):
> File "<string>", line 1, in <module>
> ModuleNotFoundError: No module named 'setuptools'
>
> ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in
> C:\Users\Dylan\AppData\Local\Temp\pip-install-5eu92g3l\beautifulsoup\
我尝试卸载setuptools并重新安装。有什么想法吗?