我是靠谱客的博主 欣喜砖头,最近开发中收集的这篇文章主要介绍python 导入模块失败_导入模块失败,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

ravjqpejcnngpig.eqo/re/fgh/ocrTraceback(most recent call last):File"./tsTclntTW.py",line5,infromtwisted.internetimportprotocol,reactorFile"/usr/local/lib/python2.7/dist-packages/twisted/__init__.py",line18,infromzope.interfaceimportInterfaceFile"/usr/local/lib/python2.7/dist-packages/zope.interface-4.0.1-py2.7-linux-x86_64.egg/zope/__init__.py",line3,inimportpkg_resourcesFile"/usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py",line698,inself.callbacks.append(callback)File"/usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py",line701,inEnvironmentFile"/usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py",line96,inget_supported_platform

distutils.util.get_platform()normally reports the minimum versionFile"/usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py",line222,inget_build_platform# fallback for MacPortsFile"/usr/lib/python2.7/distutils/util.py",line65,inget_platform

osname=string.lower(osname)AttributeError:'module'object has no attribute'lower'Errorinsys.excepthook:Traceback(most recent call last):File"/usr/lib/python2.7/dist-packages/apport_python_hook.py",line64,inapport_excepthookfromapport.fileutilsimportlikely_packaged,get_recent_crashesFile"/usr/lib/python2.7/dist-packages/apport/__init__.py",line1,infromapport.reportimportReportFile"/usr/lib/python2.7/dist-packages/apport/report.py",line18,inimportproblem_reportFile"/usr/lib/python2.7/dist-packages/problem_report.py",line16,infromemail.mime.multipartimportMIMEMultipartFile"/usr/lib/python2.7/email/mime/multipart.py",line9,infromemail.mime.baseimportMIMEBaseFile"/usr/lib/python2.7/email/mime/base.py",line9,infromemailimportmessageFile"/usr/lib/python2.7/email/message.py",line16,inimportemail.charsetFile"/usr/lib/python2.7/email/charset.py",line14,inimportemail.quoprimimeFile"/usr/lib/python2.7/email/quoprimime.py",line48,infromstringimporthexdigitsImportError:cannotimportname hexdigitsOriginalexception was:Traceback(most recent call last):File"./tsTclntTW.py",line5,infromtwisted.internetimportprotocol,reactorFile"/usr/local/lib/python2.7/dist-packages/twisted/__init__.py",line18,infromzope.interfaceimportInterfaceFile"/usr/local/lib/python2.7/dist-packages/zope.interface-4.0.1-py2.7-linux-x86_64.egg/zope/__init__.py",line3,inimportpkg_resourcesFile"/usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py",line698,inself.callbacks.append(callback)File"/usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py",line701,inEnvironmentFile"/usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py",line96,inget_supported_platform

distutils.util.get_platform()normally reports the minimum versionFile"/usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py",line222,inget_build_platform# fallback for MacPortsFile"/usr/lib/python2.7/distutils/util.py",line65,inget_platform

osname=string.lower(osname)AttributeError:'module'object has no attribute'lower'

最后

以上就是欣喜砖头为你收集整理的python 导入模块失败_导入模块失败的全部内容,希望文章能够帮你解决python 导入模块失败_导入模块失败所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(45)

评论列表共有 0 条评论

立即
投稿
返回
顶部