python3.8安装pycrypto× Encountered error while trying to install package.╰─> pycrypto

python版本

3.8

× Encountered error while trying to install package.
╰─> pycrypto
 
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

想着跑一个密码学脚本,安装pycrypto库(用于AES、RAS等多种加密)出现问题,是因为python版本较高,pycrypto在新版本中可能已经失效,所以无法安装,使用pycryptodome替代就可以解决这个问题

解决:

如果已经安装了,需要先卸载(两个包会发生冲突):

pip uninstall pycrypto


安装:

pip install pycryptodome


安装完毕,问题解决

python3.8安装pycrypto× Encountered error while trying to install package.╰─> pycrypto_第1张图片

 

你可能感兴趣的:(python,python,开发语言,pip)