ModuleNotFoundError: No module named 'setuptools'
Posted wenshuifan
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ModuleNotFoundError: No module named 'setuptools'相关的知识,希望对你有一定的参考价值。
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.0setuptools-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.0setuptools-45.1.0setuptools\__init__.py", in <module> import setuptools.version File "D:setuptools-45.1.0setuptools-45.1.0setuptoolsversion.py", n <module> import pkg_resources File "D:setuptools-45.1.0setuptools-45.1.0pkg_resources\__init__.p 35, in <module> import plistlib File "D:Program FilesPython38libplistlib.py", line 65, in <module from xml.parsers.expat import ParserCreate File "D:Program FilesPython38libxmlparsersexpat.py", line 4, in from pyexpat import * ImportError: DLL load failed while importing pyexpat: 找不到指定的模块。
解决办法:
更换python版本