Could not build wheels for cryptography which use PEP 517 and cannot be installed directly

今天在pip安装cryptography时候遇到下面这个错误:
Could not build wheels for cryptography which use PEP 517 and cannot be installed directly

是pip版本问题

参考了下大白的随笔博主的PEP517报错问题

找到了对于目录下的\venv\Lib\site-packages下的pip-{version}.dist-info文件夹,直接删除(注意不是删除pip文件夹

image.png

删除后,重新安装pip:

python -m pip install --upgrade pip
image.png

这个时候安装cryptography,就可以正常安装了。

你可能感兴趣的:(Could not build wheels for cryptography which use PEP 517 and cannot be installed directly)