Error 1 while installing pip package (pycrypto)
Error 1 while installing pip package (pycrypto)
I've been trying to install pycrypto. After getting this error, I tried to uninstall python 3.7 and install 3.6 as specified by a thread somewhere. This didn't make it any better. Please let me know how to resolve this. I'm on Windows 7, 64 bit, Python 3.6.
----------------------------------------
Command "c:usersadminappdatalocalprogramspythonpython36python.exe -u -c
"import setuptools, tokenize;__file__='C:\Users\Admin\AppData\Local\Temp\p
ip-install-lm9pf3lz\pycrypto\setup.py';f=getattr(tokenize, 'open', open)(__fil
e__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__,
'exec'))" install --record C:UsersAdminAppDataLocalTemppip-record-0pd9vdl0
install-record.txt --single-version-externally-managed --compile" failed with e
rror code 1 in C:UsersAdminAppDataLocalTemppip-install-lm9pf3lzpycrypto
pip install pycrypto
If you are using
pip
to install and you got that error, look above it in the rest of the output. I get the same error output as you have above and the reason is most likely that above in the output it says that I need Visual Studio Build Tools installed– Austin Yates
Aug 23 at 15:11
pip
@AustinYates I am using
pip install crypto
– Sriram D
Aug 23 at 15:14
pip install crypto
That actually is right, thank you so much. @AustinYates
– Sriram D
Aug 23 at 15:15
No Problem - always look above where you see the error to make sure there wasn't an earlier reported problem and then handle the errors in order
– Austin Yates
Aug 23 at 15:17
1 Answer
1
You can also install via wheels, which usually include the binary so you don't have to compile.
https://github.com/sfbahr/PyCrypto-Wheels
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
any particular reason you are not just doing
pip install pycrypto
?– Austin Yates
Aug 23 at 15:07