Windows will report an error when installing pycrypto.
Here are some errors
Collecting pycrypto
Downloading http://mirrors.aliyun.com/pypi/packages/60/db/645aa9af249f059cc3a368b118de33889219e0362141e75d4eaf6f80f163/pycrypto-2.6.1.tar.gz (446 kB)
|████████████████████████████████| 446 kB 344 kB/s
Building wheels for collected packages: pycrypto
Building wheel for pycrypto (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'd:\ProgramData\Anaconda3\envs\d2t\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\zm\\AppData\\Local\\Temp\\pip-install-trmr6taw\\pycrypto_e1aaae9b5afb410691bac391ddb2c59f\\setup.py'"'"'; __file__='"'"'C:\\Users\\zm\\AppData\\Local\\Temp\\pip-install-trmr6taw\\pycrypto_e1aaae9b5afb410691bac391ddb2c59f\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\zm\AppData\Local\Temp\pip-wheel-egkss95d'
cwd: C:\Users\zm\AppData\Local\Temp\pip-install-trmr6taw\pycrypto_e1aaae9b5afb410691bac391ddb2c59f\
Complete output (183 lines):
The solution is:
1. Enter VC directory: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC
2. Execute vcvarsall.bat
3. Execute set CL=-FI”%VCINSTALLDIR%\INCLUDE\stdint.h”
Install it (I install it in the env of anaconda, so I enter env first)
https://blog.csdn.net/zm274310577/article/details/124927922
Read More:
- About the solution of ERROR: Failed building wheel for dlib
- [Solved] Win10 Install pyav Error: ERROR: Failed building wheel for avFailed to build av. ERROR: Could not build wheel
- PIP Install Mysqlclient error C1083: Cannot open include file: ‘mysql.h‘: No such file or directory
- [Solved] Demjson error: ERROR: Command errored out with exit status 1
- Python installs virtualenv through PIP and always reports an error: response.py“, line 438, in _error_catcher yield
- [Solved] ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly
- [Mac Pro M1] Python3.9 import cv2 Error: Reason: image not found
- Python Use PIP to install pyinstaller Error [Solved]
- [Solved] mmdet install error: ERROR: Could not build wheels for pycocotools
- Command “/usr/bin/python -u -c “import setuptools, tokenize;__file__=‘/tmp/pip-cus9V0-build/setup.py
- [Solved] Conda Upgrade Error: PackageNotInstalledError: Package is not installed in prefix.
- error: Unable to find vcvarsall.bat
- How to Solve Python3.9 Install pycrypto Error
- [Solved] error in REfO setup command: use_2to3 is invalid.
- The anaconda-navigator interface cannot be started, loading application, report ERROR download_api._get_url error
- [Solved] Pdfplumber Read PDF Sheet Error: AttributeError: function/symbol ‘ARC4_stream_init‘ not found in library
- Python Use sqlalchemy Error: pymssql.ProgrammingError: (102, b“Incorrect syntax near ‘(‘.DB-Lib error
- [Python] error in installing jupyter: defaulting to user installation because normal Requirement already satisfied
- An error is reported in the requirements code of the generated project
- [Solved] This error might have occurred since this system does not have Windows Long Path support enabled.