gpt4 book ai didi

paramiko - 安装 paramiko > pycrypto 出现编译错误

转载 作者:行者123 更新时间:2023-12-02 22:08:08 37 4
gpt4 key购买 nike

我不是 C 程序员。有什么想法吗?

这是我尝试过的安装命令:

pip install paramiko
sudo pip install paramiko

输出:

src/_fastmath.c:1545:20: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]

else if (result < 0)

~~~~~~ ^ ~

src/_fastmath.c:1621:20: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]

else if (result < 0)

~~~~~~ ^ ~

2 warnings generated.

clang -bundle -undefined dynamic_lookup build/temp.macosx-10.8-x86_64-2.7/src/_fastmath.o -lgmp -o build/lib.macosx-10.8-x86_64-2.7/Crypto/PublicKey/_fastmath.so

ld: illegal text-relocation to ___gmp_binvert_limb_table in /usr/local/lib/libgmp.a(mp_minv_tab.o) from ___gmpn_divexact_1 in /usr/local/lib/libgmp.a(dive_1.o) for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

error: command 'clang' failed with exit status 1

----------------------------------------

Command /Users/Ceti/.pythonbrew/pythons/Python-2.7.3/bin/python -c "import setuptools;__file__='/private/tmp/pip-build-root/pycrypto/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-Rrbho6-record/install-record.txt --single-version-externally-managed failed with error code 1 in /private/tmp/pip-build-root/pycrypto

Exception information:
Traceback (most recent call last):
File "/Users/Ceti/.pythonbrew/pythons/Python-2.7.3/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/basecommand.py", line 139, in main
status = self.run(options, args)
File "/Users/Ceti/.pythonbrew/pythons/Python-2.7.3/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/commands/install.py", line 271, in run
requirement_set.install(install_options, global_options, root=options.root_path)
File "/Users/Ceti/.pythonbrew/pythons/Python-2.7.3/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/req.py", line 1185, in install
requirement.install(install_options, global_options, *args, **kwargs)
File "/Users/Ceti/.pythonbrew/pythons/Python-2.7.3/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/req.py", line 592, in install
cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
File "/Users/Ceti/.pythonbrew/pythons/Python-2.7.3/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/util.py", line 662, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command /Users/Ceti/.pythonbrew/pythons/Python-2.7.3/bin/python -c "import setuptools;__file__='/private/tmp/pip-build-root/pycrypto/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-Rrbho6-record/install-record.txt --single-version-externally-managed failed with error code 1 in /private/tmp/pip-build-root/pycrypto

最佳答案

在 CentOS/RHEL 6 中,“yum install python-devel”将解决此问题。 (您需要 Python header 才能安装 pycrypto。)

关于paramiko - 安装 paramiko > pycrypto 出现编译错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17639889/

37 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com