无法部署到 docker - 加密失败并且找不到 Rust 编译器

J V*_*J V 4 deployment cryptography rust docker

我正在尝试在 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
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
Run Code Online (Sandbox Code Playgroud)

J V*_*J V 6

我通过在我的要求中使用加密==3.3.2 自己解决了这个问题