当使用pip install或者pip install --upgrade报错

Can't roll back cryptography; was not uninstalled

可以进行以下的尝试:

sudo apt-get install libssl-dev libffi-dev

之后再继续pip install

相关文章: