Python安装lz4-0.10.1遇到的坑
因为项目的需求,要lz4.0.10.1的,因为本机已经有一个1.1.0版本的,所以必须先卸掉,然后我差点没疯了(手动微笑)
sudopipuninstalllz4 Uninstallinglz4-1.1.0: /Library/Python/2.7/site-packages/lz4-1.1.0-py2.7.egg-info /Library/Python/2.7/site-packages/lz4/__init__.py /Library/Python/2.7/site-packages/lz4/__init__.pyc /Library/Python/2.7/site-packages/lz4/block/__init__.py /Library/Python/2.7/site-packages/lz4/block/__init__.pyc /Library/Python/2.7/site-packages/lz4/frame/__init__.py /Library/Python/2.7/site-packages/lz4/frame/__init__.pyc /Library/Python/2.7/site-packages/lz4/frame/_compression.py /Library/Python/2.7/site-packages/lz4/frame/_compression.pyc /Library/Python/2.7/site-packages/lz4/version.py /Library/Python/2.7/site-packages/lz4/version.pyc Proceed(y/n)?y Successfullyuninstalledlz4-1.1.0
准备愉快地装上0.10.1
sudopipinstalllz4==0.10.1
Collectinglz4==0.10.1 Downloadinghttps://files.pythonhosted.org/packages/f5/c6/ef2890b5e287735576e15c1389aa0b9032c9d78ed72385fbd1149af593cd/lz4-0.10.1.tar.gz(92kB) 100%|████████████████████████████████|92kB1.8MB/s Completeoutputfromcommandpythonsetup.pyegg_info: Couldn'tfindindexpagefor'setuptools_scm'(maybemisspelled?) Nolocalpackagesordownloadlinksfoundforsetuptools-scm Traceback(mostrecentcalllast): File"",line1,in File"/private/tmp/pip-build-0IKxUP/lz4/setup.py",line180,in 'ProgrammingLanguage::Python::3.6', File"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py",line111,insetup _setup_distribution=dist=klass(attrs) File"/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/setuptools/dist.py",line221,in__init__ self.fetch_build_eggs(attrs.pop('setup_requires')) File"/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/setuptools/dist.py",line245,infetch_build_eggs parse_requirements(requires),installer=self.fetch_build_egg File"/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/pkg_resources.py",line580,inresolve dist=best[req.key]=env.best_match(req,self,installer) File"/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/pkg_resources.py",line825,inbest_match returnself.obtain(req,installer)#tryanddownload/install File"/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/pkg_resources.py",line837,inobtain returninstaller(requirement) File"/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/setuptools/dist.py",line294,infetch_build_egg returncmd.easy_install(req) File"/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/setuptools/command/easy_install.py",line592,ineasy_install raiseDistutilsError(msg) distutils.errors.DistutilsError:CouldnotfindsuitabledistributionforRequirement.parse('setuptools-scm')
咦,需要装这个包setuptools-scm,直接无脑装
sudopipinstallsetuptools-scm
Collectingsetuptools-scm Downloadinghttps://files.pythonhosted.org/packages/4d/a0/371355cbd608ef1d865738b94f7681e2fe56ef951070a66a892f30042a86/setuptools_scm-2.1.0-py2.py3-none-any.whl Installingcollectedpackages:setuptools-scm Successfullyinstalledsetuptools-scm-2.1.0
继续装我的lz4
sudopipinstalllz4==0.10.1
Collectinglz4==0.10.1 Downloadinghttps://files.pythonhosted.org/packages/f5/c6/ef2890b5e287735576e15c1389aa0b9032c9d78ed72385fbd1149af593cd/lz4-0.10.1.tar.gz(92kB) 100%|████████████████████████████████|92kB2.0MB/s Completeoutputfromcommandpythonsetup.pyegg_info: Traceback(mostrecentcalllast): File"",line1,in File"/private/tmp/pip-build-Cc2Av_/lz4/setup.py",line180,in 'ProgrammingLanguage::Python::3.6', File"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py",line111,insetup _setup_distribution=dist=klass(attrs) File"/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/setuptools/dist.py",line225,in__init__ _Distribution.__init__(self,attrs) File"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py",line287,in__init__ self.finalize_options() File"/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/setuptools/dist.py",line258,infinalize_options ep.load()(self,ep.name,value) File"/Library/Python/2.7/site-packages/setuptools_scm/integration.py",line10,inversion_keyword _warn_if_setuptools_outdated() File"/Library/Python/2.7/site-packages/setuptools_scm/version.py",line44,in_warn_if_setuptools_outdated warnings.warn("yoursetuptoolsistooold(<12)",SetuptoolsOutdatedWarning) setuptools_scm.version.SetuptoolsOutdatedWarning:yoursetuptoolsistooold(<12) ---------------------------------------- Command"pythonsetup.pyegg_info"failedwitherrorcode1in/private/tmp/pip-build-Cc2Av_/lz4/
我天。。隐约察觉到有点不对劲,这什么鬼。。tooold??所以要我先升级下?
sudopipinstall--upgradesetuptools
Collectingsetuptools Downloadinghttps://files.pythonhosted.org/packages/8c/10/79282747f9169f21c053c562a0baa21815a8c7879be97abd930dbcf862e8/setuptools-39.1.0-py2.py3-none-any.whl(566kB) 100%|████████████████████████████████|573kB1.6MB/s Installingcollectedpackages:setuptools Foundexistinginstallation:setuptools18.5 Uninstallingsetuptools-18.5: Successfullyuninstalledsetuptools-18.5 Successfullyinstalledsetuptools-39.1.0
这次没毛病了吧?装我的lz4
sudopipinstalllz4==0.10.1
Collectinglz4==0.10.1 Downloadinghttps://files.pythonhosted.org/packages/f5/c6/ef2890b5e287735576e15c1389aa0b9032c9d78ed72385fbd1149af593cd/lz4-0.10.1.tar.gz(92kB) 100%|████████████████████████████████|92kB1.1MB/s Completeoutputfromcommandpythonsetup.pyegg_info: Traceback(mostrecentcalllast): File"",line1,in File"/private/tmp/pip-build-ML2zwz/lz4/setup.py",line180,in 'ProgrammingLanguage::Python::3.6', File"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py",line111,insetup _setup_distribution=dist=klass(attrs) File"/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/setuptools/dist.py",line225,in__init__ _Distribution.__init__(self,attrs) File"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py",line287,in__init__ self.finalize_options() File"/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/setuptools/dist.py",line258,infinalize_options ep.load()(self,ep.name,value) File"/Library/Python/2.7/site-packages/setuptools_scm/integration.py",line10,inversion_keyword _warn_if_setuptools_outdated() File"/Library/Python/2.7/site-packages/setuptools_scm/version.py",line44,in_warn_if_setuptools_outdated warnings.warn("yoursetuptoolsistooold(<12)",SetuptoolsOutdatedWarning) setuptools_scm.version.SetuptoolsOutdatedWarning:yoursetuptoolsistooold(<12) ---------------------------------------- Command"pythonsetup.pyegg_info"failedwitherrorcode1in/private/tmp/pip-build-ML2zwz/lz4/
又是tooold??这样真的很迷。。赶紧谷歌了下,尝试了好几次,还是这个坑爹结果。
突然发现一个博文提到一个很神奇的语句,不管了先试下:
sudopipinstall-Upipsetuptoolswheel
Collectingpip Downloadinghttps://files.pythonhosted.org/packages/0f/74/ecd13431bcc456ed390b44c8a6e917c1820365cbebcb6a8974d1cd045ab4/pip-10.0.1-py2.py3-none-any.whl(1.3MB) 100%|████████████████████████████████|1.3MB804kB/s Requirementalreadyup-to-date:setuptoolsin/Library/Python/2.7/site-packages Collectingwheel Downloadinghttps://files.pythonhosted.org/packages/81/30/e935244ca6165187ae8be876b6316ae201b71485538ffac1d718843025a9/wheel-0.31.1-py2.py3-none-any.whl(41kB) 100%|████████████████████████████████|51kB5.0MB/s Installingcollectedpackages:pip,wheel Foundexistinginstallation:pip9.0.1 Uninstallingpip-9.0.1: Successfullyuninstalledpip-9.0.1 Successfullyinstalledpip-10.0.1wheel-0.31.1
抱着一些幻想,再装下我的lz4,结果很明显,幻想就是幻想,还是报的神奇的tooold...
我天。。要死了。。
对比了线上的机器,发现人家根本就没装那个setuptools_scm,要不试下卸载了?
说干就干:
sudopipuninstallsetuptools_scm
Uninstallingsetuptools-scm-2.1.0: Wouldremove: /Library/Python/2.7/site-packages/setuptools_scm-2.1.0.dist-info/* /Library/Python/2.7/site-packages/setuptools_scm/* Proceed(y/n)?y Successfullyuninstalledsetuptools-scm-2.1.0
sudopipinstalllz4==0.10.1
Traceback(mostrecentcalllast): File"setup.py",line180,in'ProgrammingLanguage::Python::3.6', File"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py",line111,insetup _setup_distribution=dist=klass(attrs) File"/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/setuptools/dist.py",line221,in__init__ self.fetch_build_eggs(attrs.pop('setup_requires')) File"/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/setuptools/dist.py",line245,infetch_build_eggs parse_requirements(requires),installer=self.fetch_build_egg File"/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/pkg_resources.py",line580,inresolve dist=best[req.key]=env.best_match(req,self,installer) File"/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/pkg_resources.py",line825,inbest_match returnself.obtain(req,installer)#tryanddownload/install File"/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/pkg_resources.py",line837,inobtain returninstaller(requirement) File"/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/setuptools/dist.py",line272,infetch_build_egg dist=self.__class__({'script_args':['easy_install']}) File"/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/setuptools/dist.py",line225,in__init__ _Distribution.__init__(self,attrs) File"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py",line287,in__init__ self.finalize_options() File"/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/setuptools/dist.py",line257,infinalize_options ep.require(installer=self.fetch_build_egg) File"/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/pkg_resources.py",line2029,inrequire working_set.resolve(self.dist.requires(self.extras),env,installer)) File"/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/pkg_resources.py",line592,inresolve raiseVersionConflict(dist,req)#XXXputmoreinfohere pkg_resources.VersionConflict:(certifi2017.4.17(/Library/Python/2.7/site-packages),Requirement.parse('certifi==2016.9.26'))
咦,报错终于不是tooold了,看来还真是那坑爹货的问题。既然说certifi版本不符合,那就重装下吧
sudopipinstallcertifi==2016.9.26
Collectingcertifi==2016.9.26 Downloadinghttps://files.pythonhosted.org/packages/a2/35/b7b457c95fdd661d4c179201e9e58a2181934695943b08ccfcba09284b4e/certifi-2016.9.26-py2.py3-none-any.whl(377kB) 100%|████████████████████████████████|378kB4.4MB/s requests2.18.1hasrequirementcertifi>=2017.4.17,butyou'llhavecertifi2016.9.26whichisincompatible. Installingcollectedpackages:certifi Foundexistinginstallation:certifi2017.4.17 Uninstallingcertifi-2017.4.17: Successfullyuninstalledcertifi-2017.4.17 Successfullyinstalledcertifi-2016.9.26
然后就继续安装咯,
sudopipinstalllz4==0.10.1
Traceback(mostrecentcalllast): File"setup.py",line180,in'ProgrammingLanguage::Python::3.6', File"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py",line111,insetup _setup_distribution=dist=klass(attrs) File"/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/setuptools/dist.py",line221,in__init__ self.fetch_build_eggs(attrs.pop('setup_requires')) File"/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/setuptools/dist.py",line245,infetch_build_eggs ..... ....(日志真的太多了) File"/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/pkg_resources.py",line2130,in__init__ self._version=safe_version(version) File"/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/pkg_resources.py",line1149,insafe_version returnre.sub('[^A-Za-z0-9.]+','-',version) File"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/re.py",line155,insub return_compile(pattern,flags).sub(repl,string,count) File"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/re.py",line237,in_compile p,loc=_cache[cachekey] RuntimeError:maximumrecursiondepthexceededincmp
瞬间懵逼..maximumrecursion最大递归错误都出现了。。直接谷歌,有人安装下get-pip-py`,并没用
折腾好几次,还是这个问题,仔细想了想这个是在安装了那个certifi-2016.9.26之后出现的,会不会就是这个库本身的缺陷?
还是先更新到certifi==2017.4.17再看看,毫无疑问,肯定就是又会出现那个错误:
pkg_resources.VersionConflict:(certifi2017.4.17(/Library/Python/2.7/site-packages),Requirement.parse('certifi==2016.9.26'))
然后针对这个问题谷歌,查了好久,看到一个博主说,之前遇到相似的问题,原因就是他的distribute版本太老,尝试升级下这个库版本。
因为本身有安装,所以我们需要指定最新版本或者升级,直接去Pypi看看最新版本是什么?
Pypi地址:https://pypi.org/project/distribute/
看到最新版本是:distribute0.7.3,所以直接安装
sudopipinstalldistribute==0.7.3
Collectingdistribute==0.7.3 Downloadinghttps://files.pythonhosted.org/packages/5f/ad/1fde06877a8d7d5c9b60eff7de2d452f639916ae1d48f0b8f97bf97e570a/distribute-0.7.3.zip(145kB) 100%|████████████████████████████████|153kB4.5MB/s Installingcollectedpackages:distribute Foundexistinginstallation:distribute0.6.28 Uninstallingdistribute-0.6.28: Successfullyuninstalleddistribute-0.6.28 Runningsetup.pyinstallfordistribute...done Successfullyinstalleddistribute-0.7.3
最后再安装下:
sudopipinstalllz4==0.10.1
runninginstall runningbdist_egg runningegg_info writinglz4.egg-info/PKG-INFO writingtop-levelnamestolz4.egg-info/top_level.txt writingdependency_linkstolz4.egg-info/dependency_links.txt readingmanifestfile'lz4.egg-info/SOURCES.txt' readingmanifesttemplate'MANIFEST.in' warning:nofilesfoundmatching'src/*.h' warning:nopreviously-includedfilesfoundmatching'tests/*.pyc' writingmanifestfile'lz4.egg-info/SOURCES.txt' installinglibrarycodetobuild/bdist.macosx-10.13-intel/egg runninginstall_lib runningbuild_py creatingbuild creatingbuild/lib.macosx-10.13-intel-2.7 creatingbuild/lib.macosx-10.13-intel-2.7/lz4 copyinglz4/version.py->build/lib.macosx-10.13-intel-2.7/lz4 copyinglz4/deprecated.py->build/lib.macosx-10.13-intel-2.7/lz4 copyinglz4/__init__.py->build/lib.macosx-10.13-intel-2.7/lz4 copyinglz4/lz4version.py->build/lib.macosx-10.13-intel-2.7/lz4 creatingbuild/lib.macosx-10.13-intel-2.7/lz4/frame copyinglz4/frame/__init__.py->build/lib.macosx-10.13-intel-2.7/lz4/frame creatingbuild/lib.macosx-10.13-intel-2.7/lz4/block copyinglz4/block/__init__.py->build/lib.macosx-10.13-intel-2.7/lz4/block runningbuild_ext building'lz4._version'extension creatingbuild/temp.macosx-10.13-intel-2.7 creatingbuild/temp.macosx-10.13-intel-2.7/lz4 creatingbuild/temp.macosx-10.13-intel-2.7/lz4libs cc-fno-strict-aliasing-fno-common-dynamic-archx86_64-archi386-g-Os-pipe-fno-common-fno-strict-aliasing-fwrapv-DENABLE_DTRACE-DMACOSX-DNDEBUG-Wall-Wstrict-prototypes-Wshorten-64-to-32-DNDEBUG-g-fwrapv-Os-Wall-Wstrict-prototypes-DENABLE_DTRACE-archi386-archx86_64-pipe-Ilz4libs-Ipy3c-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7-clz4/_version.c-obuild/temp.macosx-10.13-intel-2.7/lz4/_version.o-O3-Wall-Wundef Infileincludedfromlz4/_version.c:38: Infileincludedfrompy3c/py3c.h:31: py3c/py3c/compat.h:76:18:warning:unusedfunction'PyStr_Concat'[-Wunused-function] staticPyObject*PyStr_Concat(PyObject*left,PyObject*right){ ^ 1warninggenerated. Infileincludedfromlz4/_version.c:38: Infileincludedfrompy3c/py3c.h:31: py3c/py3c/compat.h:76:18:warning:unusedfunction'PyStr_Concat'[-Wunused-function] staticPyObject*PyStr_Concat(PyObject*left,PyObject*right){ ^ 1warninggenerated. cc-fno-strict-aliasing-fno-common-dynamic-archx86_64-archi386-g-Os-pipe-fno-common-fno-strict-aliasing-fwrapv-DENABLE_DTRACE-DMACOSX-DNDEBUG-Wall-Wstrict-prototypes-Wshorten-64-to-32-DNDEBUG-g-fwrapv-Os-Wall-Wstrict-prototypes-DENABLE_DTRACE-archi386-archx86_64-pipe-Ilz4libs-Ipy3c-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7-clz4libs/lz4.c-obuild/temp.macosx-10.13-intel-2.7/lz4libs/lz4.o-O3-Wall-Wundef cc-bundle-undefineddynamic_lookup-archx86_64-archi386-Wl,-F.build/temp.macosx-10.13-intel-2.7/lz4/_version.obuild/temp.macosx-10.13-intel-2.7/lz4libs/lz4.o-obuild/lib.macosx-10.13-intel-2.7/lz4/_version.so building'lz4.block._block'extension creatingbuild/temp.macosx-10.13-intel-2.7/lz4/block cc-fno-strict-aliasing-fno-common-dynamic-archx86_64-archi386-g-Os-pipe-fno-common-fno-strict-aliasing-fwrapv-DENABLE_DTRACE-DMACOSX-DNDEBUG-Wall-Wstrict-prototypes-Wshorten-64-to-32-DNDEBUG-g-fwrapv-Os-Wall-Wstrict-prototypes-DENABLE_DTRACE-archi386-archx86_64-pipe-Ilz4libs-Ipy3c-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7-clz4/block/_block.c-obuild/temp.macosx-10.13-intel-2.7/lz4/block/_block.o-O3-Wall-Wundef lz4/block/_block.c:354:17:warning:comparisonofunsignedexpression<0isalwaysfalse[-Wtautological-compare] if(dest_size<0||dest_size>PY_SSIZE_T_MAX) ~~~~~~~~~^~ lz4/block/_block.c:396:59:warning:implicitconversionlosesintegerprecision:'size_t'(aka'unsignedlong')to'int' [-Wshorten-64-to-32] LZ4_decompress_safe(source_start,dest,source_size,dest_size); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~ Infileincludedfromlz4/block/_block.c:38: Infileincludedfrompy3c/py3c.h:31: py3c/py3c/compat.h:76:18:warning:unusedfunction'PyStr_Concat'[-Wunused-function] staticPyObject*PyStr_Concat(PyObject*left,PyObject*right){ ^ 3warningsgenerated. lz4/block/_block.c:354:17:warning:comparisonofunsignedexpression<0isalwaysfalse[-Wtautological-compare] if(dest_size<0||dest_size>PY_SSIZE_T_MAX) ~~~~~~~~~^~ Infileincludedfromlz4/block/_block.c:38: Infileincludedfrompy3c/py3c.h:31: py3c/py3c/compat.h:76:18:warning:unusedfunction'PyStr_Concat'[-Wunused-function] staticPyObject*PyStr_Concat(PyObject*left,PyObject*right){ ^ 2warningsgenerated. cc-fno-strict-aliasing-fno-common-dynamic-archx86_64-archi386-g-Os-pipe-fno-common-fno-strict-aliasing-fwrapv-DENABLE_DTRACE-DMACOSX-DNDEBUG-Wall-Wstrict-prototypes-Wshorten-64-to-32-DNDEBUG-g-fwrapv-Os-Wall-Wstrict-prototypes-DENABLE_DTRACE-archi386-archx86_64-pipe-Ilz4libs-Ipy3c-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7-clz4libs/lz4.c-obuild/temp.macosx-10.13-intel-2.7/lz4libs/lz4.o-O3-Wall-Wundef cc-fno-strict-aliasing-fno-common-dynamic-archx86_64-archi386-g-Os-pipe-fno-common-fno-strict-aliasing-fwrapv-DENABLE_DTRACE-DMACOSX-DNDEBUG-Wall-Wstrict-prototypes-Wshorten-64-to-32-DNDEBUG-g-fwrapv-Os-Wall-Wstrict-prototypes-DENABLE_DTRACE-archi386-archx86_64-pipe-Ilz4libs-Ipy3c-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7-clz4libs/lz4hc.c-obuild/temp.macosx-10.13-intel-2.7/lz4libs/lz4hc.o-O3-Wall-Wundef cc-bundle-undefineddynamic_lookup-archx86_64-archi386-Wl,-F.build/temp.macosx-10.13-intel-2.7/lz4/block/_block.obuild/temp.macosx-10.13-intel-2.7/lz4libs/lz4.obuild/temp.macosx-10.13-intel-2.7/lz4libs/lz4hc.o-obuild/lib.macosx-10.13-intel-2.7/lz4/block/_block.so building'lz4.frame._frame'extension creatingbuild/temp.macosx-10.13-intel-2.7/lz4/frame cc-fno-strict-aliasing-fno-common-dynamic-archx86_64-archi386-g-Os-pipe-fno-common-fno-strict-aliasing-fwrapv-DENABLE_DTRACE-DMACOSX-DNDEBUG-Wall-Wstrict-prototypes-Wshorten-64-to-32-DNDEBUG-g-fwrapv-Os-Wall-Wstrict-prototypes-DENABLE_DTRACE-archi386-archx86_64-pipe-Ilz4libs-Ipy3c-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7-clz4/frame/_frame.c-obuild/temp.macosx-10.13-intel-2.7/lz4/frame/_frame.o-O3-Wall-Wundef Infileincludedfromlz4/frame/_frame.c:38: Infileincludedfrompy3c/py3c.h:31: py3c/py3c/compat.h:76:18:warning:unusedfunction'PyStr_Concat'[-Wunused-function] staticPyObject*PyStr_Concat(PyObject*left,PyObject*right){ ^ 1warninggenerated. lz4/frame/_frame.c:836:55:warning:formatspecifiestype'ssize_t'(aka'long')buttheargumenthastype'int'[-Wformat] "Extradata:%zdtrailingbytes",source_end-source_cursor); ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ %d lz4/frame/_frame.c:720:37:warning:implicitconversionlosesintegerprecision:'unsignedlonglong'to'size_t' (aka'unsignedlong')[-Wshorten-64-to-32] destination_size=frame_info.contentSize; ~~~~~~~~~~~~^~~~~~~~~~~ Infileincludedfromlz4/frame/_frame.c:38: Infileincludedfrompy3c/py3c.h:31: py3c/py3c/compat.h:76:18:warning:unusedfunction'PyStr_Concat'[-Wunused-function] staticPyObject*PyStr_Concat(PyObject*left,PyObject*right){ ^ 3warningsgenerated. cc-fno-strict-aliasing-fno-common-dynamic-archx86_64-archi386-g-Os-pipe-fno-common-fno-strict-aliasing-fwrapv-DENABLE_DTRACE-DMACOSX-DNDEBUG-Wall-Wstrict-prototypes-Wshorten-64-to-32-DNDEBUG-g-fwrapv-Os-Wall-Wstrict-prototypes-DENABLE_DTRACE-archi386-archx86_64-pipe-Ilz4libs-Ipy3c-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7-clz4libs/lz4.c-obuild/temp.macosx-10.13-intel-2.7/lz4libs/lz4.o-O3-Wall-Wundef cc-fno-strict-aliasing-fno-common-dynamic-archx86_64-archi386-g-Os-pipe-fno-common-fno-strict-aliasing-fwrapv-DENABLE_DTRACE-DMACOSX-DNDEBUG-Wall-Wstrict-prototypes-Wshorten-64-to-32-DNDEBUG-g-fwrapv-Os-Wall-Wstrict-prototypes-DENABLE_DTRACE-archi386-archx86_64-pipe-Ilz4libs-Ipy3c-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7-clz4libs/lz4hc.c-obuild/temp.macosx-10.13-intel-2.7/lz4libs/lz4hc.o-O3-Wall-Wundef cc-fno-strict-aliasing-fno-common-dynamic-archx86_64-archi386-g-Os-pipe-fno-common-fno-strict-aliasing-fwrapv-DENABLE_DTRACE-DMACOSX-DNDEBUG-Wall-Wstrict-prototypes-Wshorten-64-to-32-DNDEBUG-g-fwrapv-Os-Wall-Wstrict-prototypes-DENABLE_DTRACE-archi386-archx86_64-pipe-Ilz4libs-Ipy3c-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7-clz4libs/lz4frame.c-obuild/temp.macosx-10.13-intel-2.7/lz4libs/lz4frame.o-O3-Wall-Wundef cc-fno-strict-aliasing-fno-common-dynamic-archx86_64-archi386-g-Os-pipe-fno-common-fno-strict-aliasing-fwrapv-DENABLE_DTRACE-DMACOSX-DNDEBUG-Wall-Wstrict-prototypes-Wshorten-64-to-32-DNDEBUG-g-fwrapv-Os-Wall-Wstrict-prototypes-DENABLE_DTRACE-archi386-archx86_64-pipe-Ilz4libs-Ipy3c-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7-clz4libs/xxhash.c-obuild/temp.macosx-10.13-intel-2.7/lz4libs/xxhash.o-O3-Wall-Wundef cc-bundle-undefineddynamic_lookup-archx86_64-archi386-Wl,-F.build/temp.macosx-10.13-intel-2.7/lz4/frame/_frame.obuild/temp.macosx-10.13-intel-2.7/lz4libs/lz4.obuild/temp.macosx-10.13-intel-2.7/lz4libs/lz4hc.obuild/temp.macosx-10.13-intel-2.7/lz4libs/lz4frame.obuild/temp.macosx-10.13-intel-2.7/lz4libs/xxhash.o-obuild/lib.macosx-10.13-intel-2.7/lz4/frame/_frame.so copyingbuild/lib.macosx-10.13-intel-2.7/lz4/_version.so->lz4 copyingbuild/lib.macosx-10.13-intel-2.7/lz4/block/_block.so->lz4/block copyingbuild/lib.macosx-10.13-intel-2.7/lz4/frame/_frame.so->lz4/frame creatingbuild/bdist.macosx-10.13-intel creatingbuild/bdist.macosx-10.13-intel/egg creatingbuild/bdist.macosx-10.13-intel/egg/lz4 copyingbuild/lib.macosx-10.13-intel-2.7/lz4/version.py->build/bdist.macosx-10.13-intel/egg/lz4 copyingbuild/lib.macosx-10.13-intel-2.7/lz4/deprecated.py->build/bdist.macosx-10.13-intel/egg/lz4 copyingbuild/lib.macosx-10.13-intel-2.7/lz4/__init__.py->build/bdist.macosx-10.13-intel/egg/lz4 creatingbuild/bdist.macosx-10.13-intel/egg/lz4/frame copyingbuild/lib.macosx-10.13-intel-2.7/lz4/frame/_frame.so->build/bdist.macosx-10.13-intel/egg/lz4/frame copyingbuild/lib.macosx-10.13-intel-2.7/lz4/frame/__init__.py->build/bdist.macosx-10.13-intel/egg/lz4/frame copyingbuild/lib.macosx-10.13-intel-2.7/lz4/_version.so->build/bdist.macosx-10.13-intel/egg/lz4 copyingbuild/lib.macosx-10.13-intel-2.7/lz4/lz4version.py->build/bdist.macosx-10.13-intel/egg/lz4 creatingbuild/bdist.macosx-10.13-intel/egg/lz4/block copyingbuild/lib.macosx-10.13-intel-2.7/lz4/block/_block.so->build/bdist.macosx-10.13-intel/egg/lz4/block copyingbuild/lib.macosx-10.13-intel-2.7/lz4/block/__init__.py->build/bdist.macosx-10.13-intel/egg/lz4/block byte-compilingbuild/bdist.macosx-10.13-intel/egg/lz4/version.pytoversion.pyc byte-compilingbuild/bdist.macosx-10.13-intel/egg/lz4/deprecated.pytodeprecated.pyc byte-compilingbuild/bdist.macosx-10.13-intel/egg/lz4/__init__.pyto__init__.pyc byte-compilingbuild/bdist.macosx-10.13-intel/egg/lz4/frame/__init__.pyto__init__.pyc byte-compilingbuild/bdist.macosx-10.13-intel/egg/lz4/lz4version.pytolz4version.pyc byte-compilingbuild/bdist.macosx-10.13-intel/egg/lz4/block/__init__.pyto__init__.pyc creatingstubloaderforlz4/_version.so creatingstubloaderforlz4/block/_block.so creatingstubloaderforlz4/frame/_frame.so byte-compilingbuild/bdist.macosx-10.13-intel/egg/lz4/_version.pyto_version.pyc byte-compilingbuild/bdist.macosx-10.13-intel/egg/lz4/block/_block.pyto_block.pyc byte-compilingbuild/bdist.macosx-10.13-intel/egg/lz4/frame/_frame.pyto_frame.pyc creatingbuild/bdist.macosx-10.13-intel/egg/EGG-INFO copyinglz4.egg-info/PKG-INFO->build/bdist.macosx-10.13-intel/egg/EGG-INFO copyinglz4.egg-info/SOURCES.txt->build/bdist.macosx-10.13-intel/egg/EGG-INFO copyinglz4.egg-info/dependency_links.txt->build/bdist.macosx-10.13-intel/egg/EGG-INFO copyinglz4.egg-info/top_level.txt->build/bdist.macosx-10.13-intel/egg/EGG-INFO writingbuild/bdist.macosx-10.13-intel/egg/EGG-INFO/native_libs.txt zip_safeflagnotset;analyzingarchivecontents... creatingdist creating'dist/lz4-0.10.1-py2.7-macosx-10.13-intel.egg'andadding'build/bdist.macosx-10.13-intel/egg'toit removing'build/bdist.macosx-10.13-intel/egg'(andeverythingunderit) Processinglz4-0.10.1-py2.7-macosx-10.13-intel.egg Copyinglz4-0.10.1-py2.7-macosx-10.13-intel.eggto/Library/Python/2.7/site-packages Addinglz40.10.1toeasy-install.pthfile Installed/Library/Python/2.7/site-packages/lz4-0.10.1-py2.7-macosx-10.13-intel.egg Processingdependenciesforlz4==0.10.1 Finishedprocessingdependenciesforlz4==0.10.1
终于成功了。。不容易啊不容易。。。希望别的童鞋别再因为这问题被坑。