我正在尝试在docker上部署一个新版本,但我有一个以前没有见过的错误。我按照步骤安装加密和升级pip,但这不起作用。如果有人对如何解决这个问题有想法,请让我知道。谢谢!
error: Can not find Rust compiler
----------------------------------------
Command "/usr/local/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-9vs5iiqi/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-q8luryeh/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-9vs5iiqi/cryptography/
error: Can not find Rust compiler
----------------------------------------
Failed building wheel for cryptography
Running setup.py clean for cryptography
Successfully built browser-cookie3 docopt pysftp pyhive pysocks pyyaml s3fs maxminddb pyaes pbkdf2 future sasl thrift thrift-sasl
Failed to build cryptography我尝试安装的要求是:
boto3==1.10.12
browser-cookie3==0.6.4
docopt==0.6.2
requests==2.18.4
pandas==0.23.4
pysftp==0.2.9
pyhive[presto,hive]==0.5.1
pysocks==1.6.8
python-dateutil==2.6.1
flask==0.12.2
awscli==1.15.12
pyyaml==3.12
dask[dataframe]==0.18.2
s3fs==0.1.6
numpy==1.14.3
beautifulsoup4==4.6.0
lxml==4.2.1
maxminddb==1.4.1
XlsxWriter==1.2.2
APScheduler==3.6.3发布于 2021-02-24 03:52:57
我自己通过在我的需求中使用cryptography==3.3.2解决了这个问题
https://stackoverflow.com/questions/66263496
复制相似问题