pycrypto 安装 Crypto 报错 error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual...

本文详细介绍了如何解决Microsoft Visual C++ 14.0依赖缺失的问题,包括错误信息提示、下载Visual C++ Build Tools的链接、移除旧的pycrypto模块并重新安装的步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

 

 

下载地址

https://dl-download.youkuaiyun.com/down11/20181120/4f5229c3a501649fb11e276d87180eeb.rar?response-content-disposition=attachment%3Bfilename%3D%22%E6%96%B0%E5%BB%BA%E6%96%87%E4%BB%B6%E5%A4%B9.rar%22&OSSAccessKeyId=9q6nvzoJGowBj4q1&Expires=1542685931&Signature=bRuvqElENjTcvH%2BuOt%2BSNdF3lTg%3D&user=whlgjjgyy&sourceid=10795542&sourcescore=1&isvip=0/WHJMrwNw1k%252FHHxegBmggGbUB5bvwjc8GN6fwZYJ3UeScEK8KYgrYEAk7d4rUrnrIU6ewgQA%252FKd5ncF9eRX6VcT3ueEcTYxw4wNv2h6qHuX4uFL3jMg4LrPg%252FGllaqVP3BHwZkHxLxTt70CCPUsqW5R47Kzw5k9jzDZIaDIifNYWOsfrjb3PD4GjaPi8BZFYGINmwgTPXDoBVot%252FZsOGGNkw6HW%252Bcx%252F0%252FJitpPi5%252B1ONF0JbW2V3IPOSy%252BI0d%252B1L2ikFbY1mRhwFJNDMFkC520HA%253D%253D1487582755342

 

先 移除

pip uninstall crypto

pip uninstall pycrypto

 

在安装

pip install pycrypto

from Crypto.Cipher import AES

 

转载于:https://www.cnblogs.com/yanxiatingyu/p/9988283.html

C:\Users\Administrator\PyCharmMiscProject\.venv\Scripts\python.exe C:/Program Files/JetBrains/PyCharm 2025.2.0.1/plugins/python-ce/helpers/packaging_tool.py install machine Collecting machine Using cached machine-0.0.1-py2.py3-none-any.whl.metadata (2.0 kB) Collecting pycrypto (from machine) Using cached pycrypto-2.6.1.tar.gz (446 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Using cached machine-0.0.1-py2.py3-none-any.whl (4.2 kB) Building wheels for collected packages: pycrypto Building wheel for pycrypto (pyproject.toml): started Building wheel for pycrypto (pyproject.toml): finished with status 'error' Failed to build pycrypto error: subprocess-exited-with-error Building wheel for pycrypto (pyproject.toml) did not run successfully. exit code: 1 [15 lines of output] C:\Users\Administrator\AppData\Local\Temp\pip-build-env-cap8bpjl\overlay\Lib\site-packages\setuptools\dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: Public Domain See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath. error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pycrypto [notice] A new release of pip is available: 25.1.1 -> 25.2 [notice] To update, run: python.exe -m pip install --upgrade pip ERROR: Failed to build installable wheels for some pyproject.toml based projects (pycrypto) 分析一下上面的异常
最新发布
08-16
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值