我正在尝试安装python的"simple-crypt“包。 我得到了这些错误: warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
building 'Crypto.Hash._MD2' extension
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/src
x86_64-linux-gnu-gcc -pthread -Wno-unus
我面临着来自pycrypto的Mac 3.8的语法错误,令人惊讶的是它在linux系统上的传播,我知道替代方案是为了删除pycrypto并安装pycryptodome,但我不明白为什么上面的方法在linux上工作,而不是在相同版本的mac上工作?
Python 3.8.5 (v3.8.5:580fbb018f, Jul 20 2020, 12:11:27)
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license"
我使用的是Ubuntu 16机器。我想用python 3,我已经安装好了。但是,我必须使用python3命令,否则它将运行python2.7。
我使用pip install pycrypto安装了pycrypto库,但当我尝试使用python3从pycrypto导入时,我收到以下错误:
>>> from Crypto.Cipher import AES
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No modu
我使用Python3.6运行Centos7。我正在尝试使用命令"pip3 install pycrypto“安装pycrypto。我还安装了dev工具,因此安装了gcc。我得到了以下输出。我错过了什么? warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
building 'Crypto.Hash._MD2' extension
creating build/temp.linux-x86_64-3.6
creating buil
我正在尝试使用pip在盐母版上安装一个库pycryptodome,但是安装后版本报告没有正确显示它。然而,我注意到的是,新安装的版本是针对pycrypto而不是pycryptodome更新的。
我需要重新装任何东西吗。或者有其他方法来安装它?
在版本报告下面。
ro@salt:~$ sudo salt --versions-report
Salt Version:
Salt: 3000.2
Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
我正在尝试升级我的python版本。
我能够下载并安装python3.5.1并将他的别名设置为python4
root@test:/# python4
Python 3.5.1 (default, Dec 18 2015, 16:31:51)
[GCC 4.9.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
现在我和Pip有问题了。读到另一个问题,他们说要安装这样的pip:
curl -O https://boot
发生的情况如下:
$ sudo easy_install pycrypto
Searching for pycrypto
Reading http://pypi.python.org/simple/pycrypto/
Reading http://pycrypto.sourceforge.net
Reading http://www.pycrypto.org/
Download error: [Errno 101] Network is unreachable -- Some packages may not be found!
Reading http://www.amk.ca/python
看过其他类似的线程后,我仍然不能让pycrypto运行。
我试图让它在我的Ubuntu笔记本电脑上运行--但我也无法在我的Windows PC上管理它。
我下载了pycrypto-2.6,将其解压缩,然后运行
python setup.py build
但是后来发生了这样的事情
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
building 'Crypto.Hash._MD2' extension
gcc -pthread -fno-strict-alia
我从中看到解决方案是运行:
sage --pip install pycrypto
然而,当我尝试这样做时,我会得到以下错误:
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'S
我尝试通过Buildout (通过easy_install)在Ubuntu实例上安装PyCrypto,但得到以下错误:
Getting distribution for 'pycrypto>=1.9'.
Running easy_install:
/usr/bin/python "-S" "-c" "import sys,os;p = sys.path[:];import site;sys.path[:] = p; [sys.modules.pop(k) for k, v in sys.modules.items() if h
我正在尝试使用的指南在Windows7上安装Python Fabric。
为了安装PyCrypto和Fabric,我按照指南中的建议使用了easy_install,但两者都失败了,返回一个chmod-error:
Using c:\python27\lib\site-packages\fabric-1.3.4-py2.7.egg
Processing dependencies for fabric
Searching for pycrypto>=2.1,!=2.4
Reading http://pypi.python.org/simple/pycrypto/
Readin
我有一个使用Crypto.Hash的脚本,但导入失败时出错:
ImportError: No module named Crypto.Hash
在我的sys.path中,如果我打印sys.path列表,就会有以下条目(除其他外):
/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/pycrypto-2.6
如果打开上面的路径,就没有pycrypto-2.6目录。
如何加载pycryp