码迷,mamicode.com
首页 > 其他好文 > 详细

ModuleNotFoundError: No module named 'setuptools'

时间:2020-02-08 11:32:59      阅读:409      评论:0      收藏:0      [点我收藏+]

标签:ini   erro   red   copy   resources   pytho   plist   port   copyright   

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'

标签:ini   erro   red   copy   resources   pytho   plist   port   copyright   

原文地址:https://www.cnblogs.com/wenshuifan/p/12275709.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!