cryptography 版本报错解决方案
ImportError: The version of cryptography does not match the loaded shared object
. This can happen if you have multiple copies of cryptography installed in your
Python path. Please try creating a new virtual environment to resolve this issue
. Loaded python version: 3.4.7, shared object version: b’2.9’
在python开发过程中,安装cryptography 版本与代码中引用的版本不适配,报这异常的时候,暂时没有什么好的解决方案,cryptography 官方文档中也提到了,会有这bug存在,偶然会发生,即使升降版本给以适配,也会因为某些不可知的配置导致失败。
最快捷但不一定是最好的方案是,隔离初始服务器,新建一个venv虚拟机,在虚拟机上运行应用,即使在后续调试中倒是环境异常,也可以及时修复