是否有一个 Alpine 软件包允许我为 Python 3 安装 PyCrypto?
在遇到. pip3 install pycrypto_ _ apk add py-numpy@testingPyCrypto 也可以使用apk add py-crypto. 但是,我似乎无法弄清楚如何为 Python3 调用 pycrypto,或者即使这个包存在。
作为替代解决方案,我尝试使用安装 C 编译器 gccapk add gcc以便pip3 install pycrypto可以编译安装工具。但是,当我已经使用 gcc 运行该命令时,它会引发致命错误:
...
running build_ext
running build_configure
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/tmp/pip-build-2TivSm/pycrypto':
configure: error: C compiler cannot create executables
...
有没有办法在 Alpine 中编译 Python3 模块?