我可以在台式机(Windows)上正常工作,但是拒绝在MacBook上安装。我是Python开发和安装新库的新手,所以也许我缺少一些东西。我的机器上装有Python 3.6和3.7(这可能是问题吗?)。 Lief似乎支持Python 3.6,但我似乎无法使用“ pip install lief”或“ pip3 install lief”来安装它。我已经更新了setuptools,但这似乎也没有任何作用。
端子:
[Bens-MacBook-Pro-2:Downloads bluchterhand$ pip3 install lief
Collecting lief
Using cached https://files.pythonhosted.org/packages/cd/0e/0d6f3357975dd1530aeb4b4a84a99d493775391758378fb5109f47b613f9/lief-0.9.0.zip
Building wheels for collected packages: lief
Building wheel for lief (setup.py) ... error
Complete output from command /Library/Frameworks/Python.framework/Versions/3.6/bin/python3 -u -c "import setuptools, tokenize;__file__='/private/var/folders/hp/ggfhzr7n133cr3csm59kdvs80000gn/T/pip-install-g3m0_dgi/lief/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /private/var/folders/hp/ggfhzr7n133cr3csm59kdvs80000gn/T/pip-wheel-mme5acjc --python-tag cp36:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.6-intel-3.6
creating build/lib.macosx-10.6-intel-3.6/lief
copying lief/__init__.py -> build/lib.macosx-10.6-intel-3.6/lief
running build_ext
Url: https://github.com/lief-project/LIEF/releases/download/0.9.0/lief-0.9.0-py3.6-osx.egg
<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:748)>
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/hp/ggfhzr7n133cr3csm59kdvs80000gn/T/pip-install-g3m0_dgi/lief/setup.py", line 285, in <module>
'sdist': lief_sdist
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/__init__.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/wheel/bdist_wheel.py", line 192, in run
self.run_command('build')
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 78, in run
_build_ext.run(self)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/build_ext.py", line 339, in run
self.build_extensions()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions
self._build_extensions_serial()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial
self.build_extension(ext)
File "/private/var/folders/hp/ggfhzr7n133cr3csm59kdvs80000gn/T/pip-install-g3m0_dgi/lief/setup.py", line 215, in build_extension
self._install_from_source_package()
File "/private/var/folders/hp/ggfhzr7n133cr3csm59kdvs80000gn/T/pip-install-g3m0_dgi/lief/setup.py", line 265, in _install_from_source_package
raise Exception("Unable to find {}".format(url))
Exception: Unable to find /Users/bluchterhand/lief-0.9.0-py3.6-osx.egg
----------------------------------------
Failed building wheel for lief
Running setup.py clean for lief
Failed to build lief
Installing collected packages: lief
Running setup.py install for lief ... error
Complete output from command /Library/Frameworks/Python.framework/Versions/3.6/bin/python3 -u -c "import setuptools, tokenize;__file__='/private/var/folders/hp/ggfhzr7n133cr3csm59kdvs80000gn/T/pip-install-g3m0_dgi/lief/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/hp/ggfhzr7n133cr3csm59kdvs80000gn/T/pip-record-g3smg09m/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.macosx-10.6-intel-3.6
creating build/lib.macosx-10.6-intel-3.6/lief
copying lief/__init__.py -> build/lib.macosx-10.6-intel-3.6/lief
running build_ext
Url: https://github.com/lief-project/LIEF/releases/download/0.9.0/lief-0.9.0-py3.6-osx.egg
<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:748)>
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/hp/ggfhzr7n133cr3csm59kdvs80000gn/T/pip-install-g3m0_dgi/lief/setup.py", line 285, in <module>
'sdist': lief_sdist
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/__init__.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/install.py", line 545, in run
self.run_command('build')
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 78, in run
_build_ext.run(self)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/build_ext.py", line 339, in run
self.build_extensions()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions
self._build_extensions_serial()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial
self.build_extension(ext)
File "/private/var/folders/hp/ggfhzr7n133cr3csm59kdvs80000gn/T/pip-install-g3m0_dgi/lief/setup.py", line 215, in build_extension
self._install_from_source_package()
File "/private/var/folders/hp/ggfhzr7n133cr3csm59kdvs80000gn/T/pip-install-g3m0_dgi/lief/setup.py", line 265, in _install_from_source_package
raise Exception("Unable to find {}".format(url))
Exception: Unable to find /Users/bluchterhand/lief-0.9.0-py3.6-osx.egg
----------------------------------------
Command "/Library/Frameworks/Python.framework/Versions/3.6/bin/python3 -u -c "import setuptools, tokenize;__file__='/private/var/folders/hp/ggfhzr7n133cr3csm59kdvs80000gn/T/pip-install-g3m0_dgi/lief/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/hp/ggfhzr7n133cr3csm59kdvs80000gn/T/pip-record-g3smg09m/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/hp/ggfhzr7n133cr3csm59kdvs80000gn/T/pip-install-g3m0_dgi/lief/
最值得注意的是;它无法建立轮子。我已经安装了很多次车轮,以为安装可能已被破坏,但我认为情况不再如此。有人有什么想法吗?
答案 0 :(得分:0)
与我发布到此站点的所有内容一样,发布后我就找到了解决问题的方法。我从github.com/lief-project/LIEF/releases下载了egg文件,并将其粘贴到/ Users / NAME目录中...一切都很好。会留给其他有类似问题的人...