摘要:所以要我先升級下這次沒毛病了吧裝我的又是這樣真的很迷。。既然說版本不符合,那就重裝下吧然后就繼續安裝咯,日志真的太多了瞬間懵逼最大遞歸錯誤都出現了。。
因為項目的需求,要 lz4.0.10.1 的,因為本機已經有一個 1.1.0 版本的,所以必須先卸掉,然后我差點沒瘋了(手動微笑)
sudo pip uninstall lz4 Uninstalling lz4-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 Successfully uninstalled lz4-1.1.0
準備愉快地裝上 0.10.1
sudo pip install lz4==0.10.1
Collecting lz4==0.10.1 Downloading https://files.pythonhosted.org/packages/f5/c6/ef2890b5e287735576e15c1389aa0b9032c9d78ed72385fbd1149af593cd/lz4-0.10.1.tar.gz (92kB) 100% |████████████████████████████████| 92kB 1.8MB/s Complete output from command python setup.py egg_info: Couldn"t find index page for "setuptools_scm" (maybe misspelled?) No local packages or download links found for setuptools-scm Traceback (most recent call last): File "", line 1, in File "/private/tmp/pip-build-0IKxUP/lz4/setup.py", line 180, in "Programming Language :: Python :: 3.6", File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 111, in setup _setup_distribution = dist = klass(attrs) File "/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/setuptools/dist.py", line 221, 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", line 245, in fetch_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", line 580, in resolve 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", line 825, in best_match return self.obtain(req, installer) # try and download/install File "/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/pkg_resources.py", line 837, in obtain return installer(requirement) File "/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/setuptools/dist.py", line 294, in fetch_build_egg return cmd.easy_install(req) File "/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/setuptools/command/easy_install.py", line 592, in easy_install raise DistutilsError(msg) distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse("setuptools-scm")
咦,需要裝這個包setuptools-scm,直接無腦裝
sudo pip install setuptools-scm
Collecting setuptools-scm Downloading https://files.pythonhosted.org/packages/4d/a0/371355cbd608ef1d865738b94f7681e2fe56ef951070a66a892f30042a86/setuptools_scm-2.1.0-py2.py3-none-any.whl Installing collected packages: setuptools-scm Successfully installed setuptools-scm-2.1.0
繼續裝我的 lz4
sudo pip install lz4==0.10.1
Collecting lz4==0.10.1 Downloading https://files.pythonhosted.org/packages/f5/c6/ef2890b5e287735576e15c1389aa0b9032c9d78ed72385fbd1149af593cd/lz4-0.10.1.tar.gz (92kB) 100% |████████████████████████████████| 92kB 2.0MB/s Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in File "/private/tmp/pip-build-Cc2Av_/lz4/setup.py", line 180, in "Programming Language :: Python :: 3.6", File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 111, in setup _setup_distribution = dist = klass(attrs) File "/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/setuptools/dist.py", line 225, in __init__ _Distribution.__init__(self,attrs) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 287, in __init__ self.finalize_options() File "/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/setuptools/dist.py", line 258, in finalize_options ep.load()(self, ep.name, value) File "/Library/Python/2.7/site-packages/setuptools_scm/integration.py", line 10, in version_keyword _warn_if_setuptools_outdated() File "/Library/Python/2.7/site-packages/setuptools_scm/version.py", line 44, in _warn_if_setuptools_outdated warnings.warn("your setuptools is too old (<12)", SetuptoolsOutdatedWarning) setuptools_scm.version.SetuptoolsOutdatedWarning: your setuptools is too old (<12) ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-Cc2Av_/lz4/
我天。。隱約察覺到有點不對勁,這什么鬼。。 too old ?? 所以要我先升級下?
sudo pip install --upgrade setuptools
Collecting setuptools Downloading https://files.pythonhosted.org/packages/8c/10/79282747f9169f21c053c562a0baa21815a8c7879be97abd930dbcf862e8/setuptools-39.1.0-py2.py3-none-any.whl (566kB) 100% |████████████████████████████████| 573kB 1.6MB/s Installing collected packages: setuptools Found existing installation: setuptools 18.5 Uninstalling setuptools-18.5: Successfully uninstalled setuptools-18.5 Successfully installed setuptools-39.1.0
這次沒毛病了吧? 裝我的 lz4
sudo pip install lz4==0.10.1
Collecting lz4==0.10.1 Downloading https://files.pythonhosted.org/packages/f5/c6/ef2890b5e287735576e15c1389aa0b9032c9d78ed72385fbd1149af593cd/lz4-0.10.1.tar.gz (92kB) 100% |████████████████████████████████| 92kB 1.1MB/s Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in File "/private/tmp/pip-build-ML2zwz/lz4/setup.py", line 180, in "Programming Language :: Python :: 3.6", File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 111, in setup _setup_distribution = dist = klass(attrs) File "/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/setuptools/dist.py", line 225, in __init__ _Distribution.__init__(self,attrs) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 287, in __init__ self.finalize_options() File "/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/setuptools/dist.py", line 258, in finalize_options ep.load()(self, ep.name, value) File "/Library/Python/2.7/site-packages/setuptools_scm/integration.py", line 10, in version_keyword _warn_if_setuptools_outdated() File "/Library/Python/2.7/site-packages/setuptools_scm/version.py", line 44, in _warn_if_setuptools_outdated warnings.warn("your setuptools is too old (<12)", SetuptoolsOutdatedWarning) setuptools_scm.version.SetuptoolsOutdatedWarning: your setuptools is too old (<12) ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-ML2zwz/lz4/
又是 too old ??這樣真的很迷。。趕緊谷歌了下,嘗試了好幾次,還是這個坑爹結果。
突然發現一個博文提到一個很神奇的語句, 不管了先試下:
sudo pip install -U pip setuptools wheel
Collecting pip Downloading https://files.pythonhosted.org/packages/0f/74/ecd13431bcc456ed390b44c8a6e917c1820365cbebcb6a8974d1cd045ab4/pip-10.0.1-py2.py3-none-any.whl (1.3MB) 100% |████████████████████████████████| 1.3MB 804kB/s Requirement already up-to-date: setuptools in /Library/Python/2.7/site-packages Collecting wheel Downloading https://files.pythonhosted.org/packages/81/30/e935244ca6165187ae8be876b6316ae201b71485538ffac1d718843025a9/wheel-0.31.1-py2.py3-none-any.whl (41kB) 100% |████████████████████████████████| 51kB 5.0MB/s Installing collected packages: pip, wheel Found existing installation: pip 9.0.1 Uninstalling pip-9.0.1: Successfully uninstalled pip-9.0.1 Successfully installed pip-10.0.1 wheel-0.31.1
抱著一些幻想,再裝下我的 lz4,結果很明顯,幻想就是幻想,還是報的神奇的too old...
我天。。要死了。。
對比了線上的機器,發現人家根本就沒裝那個 setuptools_scm, 要不試下卸載了?
說干就干:
sudo pip uninstall setuptools_scm
Uninstalling setuptools-scm-2.1.0: Would remove: /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 Successfully uninstalled setuptools-scm-2.1.0
sudo pip install lz4==0.10.1
Traceback (most recent call last): File "setup.py", line 180, in"Programming Language :: Python :: 3.6", File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 111, in setup _setup_distribution = dist = klass(attrs) File "/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/setuptools/dist.py", line 221, 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", line 245, in fetch_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", line 580, in resolve 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", line 825, in best_match return self.obtain(req, installer) # try and download/install File "/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/pkg_resources.py", line 837, in obtain return installer(requirement) File "/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/setuptools/dist.py", line 272, in fetch_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", line 225, in __init__ _Distribution.__init__(self,attrs) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 287, in __init__ self.finalize_options() File "/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/setuptools/dist.py", line 257, in finalize_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", line 2029, in require 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", line 592, in resolve raise VersionConflict(dist,req) # XXX put more info here pkg_resources.VersionConflict: (certifi 2017.4.17 (/Library/Python/2.7/site-packages), Requirement.parse("certifi==2016.9.26"))
咦,報錯終于不是 too old 了,看來還真是那坑爹貨的問題。既然說certifi版本不符合,那就重裝下吧
sudo pip install certifi==2016.9.26
Collecting certifi==2016.9.26 Downloading https://files.pythonhosted.org/packages/a2/35/b7b457c95fdd661d4c179201e9e58a2181934695943b08ccfcba09284b4e/certifi-2016.9.26-py2.py3-none-any.whl (377kB) 100% |████████████████████████████████| 378kB 4.4MB/s requests 2.18.1 has requirement certifi>=2017.4.17, but you"ll have certifi 2016.9.26 which is incompatible. Installing collected packages: certifi Found existing installation: certifi 2017.4.17 Uninstalling certifi-2017.4.17: Successfully uninstalled certifi-2017.4.17 Successfully installed certifi-2016.9.26
然后就繼續安裝咯,
sudo pip install lz4==0.10.1
Traceback (most recent call last): File "setup.py", line 180, in"Programming Language :: Python :: 3.6", File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 111, in setup _setup_distribution = dist = klass(attrs) File "/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/setuptools/dist.py", line 221, 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", line 245, in fetch_build_eggs ..... .... (日志真的太多了) File "/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/pkg_resources.py", line 2130, in __init__ self._version = safe_version(version) File "/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/pkg_resources.py", line 1149, in safe_version return re.sub("[^A-Za-z0-9.]+", "-", version) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/re.py", line 155, in sub return _compile(pattern, flags).sub(repl, string, count) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/re.py", line 237, in _compile p, loc = _cache[cachekey] RuntimeError: maximum recursion depth exceeded in cmp
瞬間懵逼.. maximum recursion 最大遞歸錯誤都出現了。。直接谷歌,有人安裝下get-pip-py`, 并沒用
折騰好幾次,還是這個問題, 仔細想了想這個是在安裝了那個 certifi-2016.9.26之后出現的,會不會就是這個庫本身的缺陷?
還是先更新到 certifi==2017.4.17 再看看,毫無疑問,肯定就是又會出現那個錯誤:
pkg_resources.VersionConflict: (certifi 2017.4.17 (/Library/Python/2.7/site-packages), Requirement.parse("certifi==2016.9.26"))
然后針對這個問題谷歌,查了好久,看到一個博主說,之前遇到相似的問題,原因就是他的distribute版本太老,嘗試升級下這個庫版本。
因為本身有安裝,所以我們需要指定最新版本或者升級,直接去Pypi看看最新版本是什么?
Pypi地址:https://pypi.org/project/distribute/
看到最新版本是:distribute 0.7.3,所以直接安裝
sudo pip install distribute==0.7.3
Collecting distribute==0.7.3 Downloading https://files.pythonhosted.org/packages/5f/ad/1fde06877a8d7d5c9b60eff7de2d452f639916ae1d48f0b8f97bf97e570a/distribute-0.7.3.zip (145kB) 100% |████████████████████████████████| 153kB 4.5MB/s Installing collected packages: distribute Found existing installation: distribute 0.6.28 Uninstalling distribute-0.6.28: Successfully uninstalled distribute-0.6.28 Running setup.py install for distribute ... done Successfully installed distribute-0.7.3
最后再安裝下:
sudo pip install lz4==0.10.1
running install running bdist_egg running egg_info writing lz4.egg-info/PKG-INFO writing top-level names to lz4.egg-info/top_level.txt writing dependency_links to lz4.egg-info/dependency_links.txt reading manifest file "lz4.egg-info/SOURCES.txt" reading manifest template "MANIFEST.in" warning: no files found matching "src/*.h" warning: no previously-included files found matching "tests/*.pyc" writing manifest file "lz4.egg-info/SOURCES.txt" installing library code to build/bdist.macosx-10.13-intel/egg running install_lib running build_py creating build creating build/lib.macosx-10.13-intel-2.7 creating build/lib.macosx-10.13-intel-2.7/lz4 copying lz4/version.py -> build/lib.macosx-10.13-intel-2.7/lz4 copying lz4/deprecated.py -> build/lib.macosx-10.13-intel-2.7/lz4 copying lz4/__init__.py -> build/lib.macosx-10.13-intel-2.7/lz4 copying lz4/lz4version.py -> build/lib.macosx-10.13-intel-2.7/lz4 creating build/lib.macosx-10.13-intel-2.7/lz4/frame copying lz4/frame/__init__.py -> build/lib.macosx-10.13-intel-2.7/lz4/frame creating build/lib.macosx-10.13-intel-2.7/lz4/block copying lz4/block/__init__.py -> build/lib.macosx-10.13-intel-2.7/lz4/block running build_ext building "lz4._version" extension creating build/temp.macosx-10.13-intel-2.7 creating build/temp.macosx-10.13-intel-2.7/lz4 creating build/temp.macosx-10.13-intel-2.7/lz4libs cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -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 -arch i386 -arch x86_64 -pipe -Ilz4libs -Ipy3c -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c lz4/_version.c -o build/temp.macosx-10.13-intel-2.7/lz4/_version.o -O3 -Wall -Wundef In file included from lz4/_version.c:38: In file included from py3c/py3c.h:31: py3c/py3c/compat.h:76:18: warning: unused function "PyStr_Concat" [-Wunused-function] static PyObject *PyStr_Concat(PyObject *left, PyObject *right) { ^ 1 warning generated. In file included from lz4/_version.c:38: In file included from py3c/py3c.h:31: py3c/py3c/compat.h:76:18: warning: unused function "PyStr_Concat" [-Wunused-function] static PyObject *PyStr_Concat(PyObject *left, PyObject *right) { ^ 1 warning generated. cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -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 -arch i386 -arch x86_64 -pipe -Ilz4libs -Ipy3c -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c lz4libs/lz4.c -o build/temp.macosx-10.13-intel-2.7/lz4libs/lz4.o -O3 -Wall -Wundef cc -bundle -undefined dynamic_lookup -arch x86_64 -arch i386 -Wl,-F. build/temp.macosx-10.13-intel-2.7/lz4/_version.o build/temp.macosx-10.13-intel-2.7/lz4libs/lz4.o -o build/lib.macosx-10.13-intel-2.7/lz4/_version.so building "lz4.block._block" extension creating build/temp.macosx-10.13-intel-2.7/lz4/block cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -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 -arch i386 -arch x86_64 -pipe -Ilz4libs -Ipy3c -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c lz4/block/_block.c -o build/temp.macosx-10.13-intel-2.7/lz4/block/_block.o -O3 -Wall -Wundef lz4/block/_block.c:354:17: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] if (dest_size < 0 || dest_size > PY_SSIZE_T_MAX) ~~~~~~~~~ ^ ~ lz4/block/_block.c:396:59: warning: implicit conversion loses integer precision: "size_t" (aka "unsigned long") to "int" [-Wshorten-64-to-32] LZ4_decompress_safe (source_start, dest, source_size, dest_size); ~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~ In file included from lz4/block/_block.c:38: In file included from py3c/py3c.h:31: py3c/py3c/compat.h:76:18: warning: unused function "PyStr_Concat" [-Wunused-function] static PyObject *PyStr_Concat(PyObject *left, PyObject *right) { ^ 3 warnings generated. lz4/block/_block.c:354:17: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] if (dest_size < 0 || dest_size > PY_SSIZE_T_MAX) ~~~~~~~~~ ^ ~ In file included from lz4/block/_block.c:38: In file included from py3c/py3c.h:31: py3c/py3c/compat.h:76:18: warning: unused function "PyStr_Concat" [-Wunused-function] static PyObject *PyStr_Concat(PyObject *left, PyObject *right) { ^ 2 warnings generated. cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -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 -arch i386 -arch x86_64 -pipe -Ilz4libs -Ipy3c -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c lz4libs/lz4.c -o build/temp.macosx-10.13-intel-2.7/lz4libs/lz4.o -O3 -Wall -Wundef cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -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 -arch i386 -arch x86_64 -pipe -Ilz4libs -Ipy3c -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c lz4libs/lz4hc.c -o build/temp.macosx-10.13-intel-2.7/lz4libs/lz4hc.o -O3 -Wall -Wundef cc -bundle -undefined dynamic_lookup -arch x86_64 -arch i386 -Wl,-F. build/temp.macosx-10.13-intel-2.7/lz4/block/_block.o build/temp.macosx-10.13-intel-2.7/lz4libs/lz4.o build/temp.macosx-10.13-intel-2.7/lz4libs/lz4hc.o -o build/lib.macosx-10.13-intel-2.7/lz4/block/_block.so building "lz4.frame._frame" extension creating build/temp.macosx-10.13-intel-2.7/lz4/frame cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -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 -arch i386 -arch x86_64 -pipe -Ilz4libs -Ipy3c -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c lz4/frame/_frame.c -o build/temp.macosx-10.13-intel-2.7/lz4/frame/_frame.o -O3 -Wall -Wundef In file included from lz4/frame/_frame.c:38: In file included from py3c/py3c.h:31: py3c/py3c/compat.h:76:18: warning: unused function "PyStr_Concat" [-Wunused-function] static PyObject *PyStr_Concat(PyObject *left, PyObject *right) { ^ 1 warning generated. lz4/frame/_frame.c:836:55: warning: format specifies type "ssize_t" (aka "long") but the argument has type "int" [-Wformat] "Extra data: %zd trailing bytes", source_end - source_cursor); ~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~ %d lz4/frame/_frame.c:720:37: warning: implicit conversion loses integer precision: "unsigned long long" to "size_t" (aka "unsigned long") [-Wshorten-64-to-32] destination_size = frame_info.contentSize; ~ ~~~~~~~~~~~^~~~~~~~~~~ In file included from lz4/frame/_frame.c:38: In file included from py3c/py3c.h:31: py3c/py3c/compat.h:76:18: warning: unused function "PyStr_Concat" [-Wunused-function] static PyObject *PyStr_Concat(PyObject *left, PyObject *right) { ^ 3 warnings generated. cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -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 -arch i386 -arch x86_64 -pipe -Ilz4libs -Ipy3c -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c lz4libs/lz4.c -o build/temp.macosx-10.13-intel-2.7/lz4libs/lz4.o -O3 -Wall -Wundef cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -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 -arch i386 -arch x86_64 -pipe -Ilz4libs -Ipy3c -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c lz4libs/lz4hc.c -o build/temp.macosx-10.13-intel-2.7/lz4libs/lz4hc.o -O3 -Wall -Wundef cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -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 -arch i386 -arch x86_64 -pipe -Ilz4libs -Ipy3c -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c lz4libs/lz4frame.c -o build/temp.macosx-10.13-intel-2.7/lz4libs/lz4frame.o -O3 -Wall -Wundef cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -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 -arch i386 -arch x86_64 -pipe -Ilz4libs -Ipy3c -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c lz4libs/xxhash.c -o build/temp.macosx-10.13-intel-2.7/lz4libs/xxhash.o -O3 -Wall -Wundef cc -bundle -undefined dynamic_lookup -arch x86_64 -arch i386 -Wl,-F. build/temp.macosx-10.13-intel-2.7/lz4/frame/_frame.o build/temp.macosx-10.13-intel-2.7/lz4libs/lz4.o build/temp.macosx-10.13-intel-2.7/lz4libs/lz4hc.o build/temp.macosx-10.13-intel-2.7/lz4libs/lz4frame.o build/temp.macosx-10.13-intel-2.7/lz4libs/xxhash.o -o build/lib.macosx-10.13-intel-2.7/lz4/frame/_frame.so copying build/lib.macosx-10.13-intel-2.7/lz4/_version.so -> lz4 copying build/lib.macosx-10.13-intel-2.7/lz4/block/_block.so -> lz4/block copying build/lib.macosx-10.13-intel-2.7/lz4/frame/_frame.so -> lz4/frame creating build/bdist.macosx-10.13-intel creating build/bdist.macosx-10.13-intel/egg creating build/bdist.macosx-10.13-intel/egg/lz4 copying build/lib.macosx-10.13-intel-2.7/lz4/version.py -> build/bdist.macosx-10.13-intel/egg/lz4 copying build/lib.macosx-10.13-intel-2.7/lz4/deprecated.py -> build/bdist.macosx-10.13-intel/egg/lz4 copying build/lib.macosx-10.13-intel-2.7/lz4/__init__.py -> build/bdist.macosx-10.13-intel/egg/lz4 creating build/bdist.macosx-10.13-intel/egg/lz4/frame copying build/lib.macosx-10.13-intel-2.7/lz4/frame/_frame.so -> build/bdist.macosx-10.13-intel/egg/lz4/frame copying build/lib.macosx-10.13-intel-2.7/lz4/frame/__init__.py -> build/bdist.macosx-10.13-intel/egg/lz4/frame copying build/lib.macosx-10.13-intel-2.7/lz4/_version.so -> build/bdist.macosx-10.13-intel/egg/lz4 copying build/lib.macosx-10.13-intel-2.7/lz4/lz4version.py -> build/bdist.macosx-10.13-intel/egg/lz4 creating build/bdist.macosx-10.13-intel/egg/lz4/block copying build/lib.macosx-10.13-intel-2.7/lz4/block/_block.so -> build/bdist.macosx-10.13-intel/egg/lz4/block copying build/lib.macosx-10.13-intel-2.7/lz4/block/__init__.py -> build/bdist.macosx-10.13-intel/egg/lz4/block byte-compiling build/bdist.macosx-10.13-intel/egg/lz4/version.py to version.pyc byte-compiling build/bdist.macosx-10.13-intel/egg/lz4/deprecated.py to deprecated.pyc byte-compiling build/bdist.macosx-10.13-intel/egg/lz4/__init__.py to __init__.pyc byte-compiling build/bdist.macosx-10.13-intel/egg/lz4/frame/__init__.py to __init__.pyc byte-compiling build/bdist.macosx-10.13-intel/egg/lz4/lz4version.py to lz4version.pyc byte-compiling build/bdist.macosx-10.13-intel/egg/lz4/block/__init__.py to __init__.pyc creating stub loader for lz4/_version.so creating stub loader for lz4/block/_block.so creating stub loader for lz4/frame/_frame.so byte-compiling build/bdist.macosx-10.13-intel/egg/lz4/_version.py to _version.pyc byte-compiling build/bdist.macosx-10.13-intel/egg/lz4/block/_block.py to _block.pyc byte-compiling build/bdist.macosx-10.13-intel/egg/lz4/frame/_frame.py to _frame.pyc creating build/bdist.macosx-10.13-intel/egg/EGG-INFO copying lz4.egg-info/PKG-INFO -> build/bdist.macosx-10.13-intel/egg/EGG-INFO copying lz4.egg-info/SOURCES.txt -> build/bdist.macosx-10.13-intel/egg/EGG-INFO copying lz4.egg-info/dependency_links.txt -> build/bdist.macosx-10.13-intel/egg/EGG-INFO copying lz4.egg-info/top_level.txt -> build/bdist.macosx-10.13-intel/egg/EGG-INFO writing build/bdist.macosx-10.13-intel/egg/EGG-INFO/native_libs.txt zip_safe flag not set; analyzing archive contents... creating dist creating "dist/lz4-0.10.1-py2.7-macosx-10.13-intel.egg" and adding "build/bdist.macosx-10.13-intel/egg" to it removing "build/bdist.macosx-10.13-intel/egg" (and everything under it) Processing lz4-0.10.1-py2.7-macosx-10.13-intel.egg Copying lz4-0.10.1-py2.7-macosx-10.13-intel.egg to /Library/Python/2.7/site-packages Adding lz4 0.10.1 to easy-install.pth file Installed /Library/Python/2.7/site-packages/lz4-0.10.1-py2.7-macosx-10.13-intel.egg Processing dependencies for lz4==0.10.1 Finished processing dependencies for lz4==0.10.1
終于成功了。。不容易啊不容易。。。希望別的童鞋別再因為這問題被坑。
歡迎各位大神指點交流, QQ討論群: 258498217
轉載請注明來源: https://segmentfault.com/a/11...
文章版權歸作者所有,未經允許請勿轉載,若此文章存在違規行為,您可以聯系管理員刪除。
轉載請注明本文地址:http://specialneedsforspecialkids.com/yun/41744.html
摘要:操作過程嘗試一由于該企業防護措施嚴格,區域和公網區域在防火墻上做了隔離,實施開始前將軟件需要使用到的端口已向網絡組申請從防火墻上申請開通,并檢查系統防火墻相應端口已開放。轉換現有虛擬機注意上述端口均屬于默認端口。 背景介紹某企業拓撲如下圖所示,172.18.2.0/24網段可以訪問外網,使用3臺Esx4.1組成虛擬化資源池,vCenter5.5位于DMZ區的192.168.255.0/24網...
摘要:原生環境的安裝原生環境的安裝應該是每個學過都熟悉的,在官網的頁面下載自己想要的版本,然后雙擊打開,一路就好了,推薦使用,具體原因可以上網查一下和版本的對比,我最直觀的感受就是在使用的過程中,因為編碼問題導致的問題明顯減少。 前言 寫這篇文章的起因是因為自學python,最近在面試一個python職位的時候面試官讓我聊一聊我自學python的經歷,然后就像及流水賬似的將自己自學pytho...
摘要:操作過程嘗試一由于該企業防護措施嚴格,區域和公網區域在防火墻上做了隔離,實施開始前將軟件需要使用到的端口已向網絡組申請從防火墻上申請開通,并檢查系統防火墻相應端口已開放。轉換現有虛擬機注意上述端口均屬于默認端口。 背景介紹某企業拓撲如下圖所示,172.18.2.0/24網段可以訪問外網,使用3臺Esx4.1組...
摘要:目前的培訓費用都是,這還只是培訓費而已,加上一些其他的東西,四個月時間要小三萬吧所以建議選擇線上培訓,成本低,可以反復學。 因為目前python非常火,應用非常的廣泛,是目前最火的行業之一,競爭很大,工資很高,未來發展也極好。我個人建議:如條件還可以,負擔不是那么大,可以選擇培訓,培訓一定會比你自學的好,如果培訓都學好,自學肯定更難。目前python的培訓費用都是2W+,這還只是培訓費...
摘要:從個體小處如何減少機械性,重復性的工作,是切切實實提高個人幸福感的一件事。由于工作上的原因,經常需要給外包服務商開通訪問內部系統的白名單。 電商系統大考雙十一過去了,可以找點時間寫點東西了。 這次說說提升工作效率。講工程效率提升的文章有很多,我們先不看團隊的。從個體小處如何減少機械性,重復性的工作,是切切實實提高個人幸福感的一件事。 由于工作上的原因,經常需要給外包服務商開通訪問內部系...
閱讀 3515·2021-11-15 11:38
閱讀 830·2021-11-08 13:27
閱讀 2243·2021-07-29 14:50
閱讀 2975·2019-08-29 13:06
閱讀 841·2019-08-29 11:22
閱讀 2414·2019-08-29 11:04
閱讀 3505·2019-08-28 18:23
閱讀 894·2019-08-26 13:46