D:\pip-20.0.2>python setup.py install Traceback (most recent call last): File "setup.py", line 8, in <module> from setuptools import find_packages, setup ModuleNotFoundError: No module named ‘setuptools‘
python版本
D:\pip-20.0.2>python Python 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 23:11:46) [MSC v.1916 64 bit (AM D64)] on win32 Type "help", "copyright", "credits" or "license" for more information.
解决办法:
安装setuptools
下载:
https://pypi.Python.org/pypi/setuptools
https://pypi.Python.org/pypi/pip
安装:
python setup.py install
D:\setuptools-45.1.0\setuptools-45.1.0>python setup.py install Traceback (most recent call last): File "setup.py", line 9, in <module> import setuptools File "D:\setuptools-45.1.0\setuptools-45.1.0\setuptools\__init__.py", in <module> import setuptools.version File "D:\setuptools-45.1.0\setuptools-45.1.0\setuptools\version.py", n <module> import pkg_resources File "D:\setuptools-45.1.0\setuptools-45.1.0\pkg_resources\__init__.p 35, in <module> import plistlib File "D:\Program Files\Python38\lib\plistlib.py", line 65, in <module from xml.parsers.expat import ParserCreate File "D:\Program Files\Python38\lib\xml\parsers\expat.py", line 4, in from pyexpat import * ImportError: DLL load failed while importing pyexpat: 找不到指定的模块。
解决办法:
更换python版本
ModuleNotFoundError: No module named 'setuptools'
原文地址:https://www.cnblogs.com/wenshuifan/p/12275709.html
时间: 2024-10-10 10:47:26