我正在尝试在 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
Run Code Online (Sandbox Code Playgroud)
我尝试安装的要求是:
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 …Run Code Online (Sandbox Code Playgroud)