python安装模块时报错 Could not build wheels for cryptography which use PEP 517。。。 报错信息 报错内容:Could not build wheels for cryptography which use PEP 517 and cannot be installed directly 度的结果是pip版本问题,需要删除pip-{version}.dist-info文件夹后重新升级pip 操作步骤如下 找到python进程下\venv\Lib\site-packages删除pip-{version}.dist-info文件夹,这里注意不要删错了pip文件夹 重新安装pip python -m pip install --upgrade pip 然后就可以愉快地安装模块啦