-
Notifications
You must be signed in to change notification settings - Fork 642
Error while attempting to install PyCrypto on Python 3.6 x64 #218
Comments
Same issue as #216 and I can confirm too. |
Same here |
FYI this project is officially dead. You should switch to pycryptodome. |
+1 |
Related stackoverflow post: https://stackoverflow.com/questions/41843266/microsoft-windows-python-3-6-pycrypto-installation-error |
I have the same error got any ideas to fix? |
@Mrrobot003 I needed to do this (after installing MS VS Community Edition):
|
For me, the set of commands was:
|
for Python 3.6 32 bit following set of commands worked:
|
Looks like Visual Studio Build Tools have been updated to 14.14.26428. The following worked for me:
|
None of these proposed fixes works, I still get the same error |
I'm also get the same error. An error occurred because of a different version from the script. So, i've created a script that is less sensitive to build tool version. It works well. Thanks! cd "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build"
vcvarsall.bat x86_amd64
cd %VCINSTALLDIR%
for /R %f in (*stdint.h) do set CL=-FI"%f"
pip install pycrypto |
ATTENTION!!! As pycrypto is not maintained anymore, please switch to pycryptodome. That's how I did it. Extract from my README.md: Installing on Windows
The Visual C++ Build Tools may be deinstalled now, but it's recommended to keep them installed to be able to upgrade pycrypto when necessary. To install other modules just a normal but elevated(!!!) Command Prompt is needed (Run As Admin via Right Click). |
Switched to https://www.pycryptodome.org/ with only minor changes. |
set CL=-FI"%VCINSTALLDIR%\include\stdint.h" pip3 install pycrypto. I had Visual Studio 14, so I just found my vcvarsall.bat and used my path to stdint.h |
This worked for me as well. |
As pycrypto is not maintained anymore since 2014, it is recommended to switch to https://www.pycryptodome.org/ |
it work for Microsoft Visual Studio 14.0
|
As pycrypto is not maintained anymore since 2014, it is recommended to switch to https://www.pycryptodome.org/ or similar like https://cryptography.io/en/latest/ |
people are commenting here how to install pycrypto. I did but still getting "PyCrypto not installed" when I run jrnl |
@arisAlexis PyCrypto is no more maintained, please switch to another module like https://www.pycryptodome.org/ or similar like https://cryptography.io/en/latest/ |
Worked for me. You are a life saver. Thank you |
Is there any way I can do this on Mac? |
I am not really familiar with mac environment but i would recommend to shift to PyCryptodome if that is possible for you as support for pyCrypto has ended. |
hello i had the same problem:
go to this directory :
|
@Isaac-Frost thank you so much this is what worked for me everyone said to install pycrypto but the correct way for the problem #218 is your answer that is to change the lower case letter to upper case letter. [C:\Users\s****\AppData\Local\Programs\Python\Python37-32\Lib\site-packages\crypto] here try to change the file name crypto to Crypto with upper case C because they import it as Crypto in every package. |
This worked for me, but I needed to replace the XXXX with my current version of VS, which was 14.16.27023
|
pycryto is dead. you can shift to pycryptodome pip install pycryptodome or cryptography |
So, what do you do if another module that you are trying to install need pycrypto? In my case I'm trying to install splunklib. |
Rename Folder
|
first of all, you're a wizard. So jot that down. I've been fighting this problem for three days. I know what it is now, when you click "install for all users" there's an aditional dep that's added along with it (you check one box, so python installs the other. I think it's pre-compile some setup.py thing) anyways. You're the real MVP. If you have problems with your wife/husband, boss, anyone, just let em know you're legit a god. reference me if necessary. Thanks man. You've helped my project out in a huge way. |
Worked like a charm! Amazing! In Visual Studio 14 2019: Follow install instructions here: Activate your venv (venv\scripts\activate) "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" x64 set CL=-FI"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.24.28314\include\stdint.h" pip install pycrypto |
this worked thanks 👍 |
This method works! only need to change 14.13.26128 to your version mentioned in the error log. |
I am trying to install PyCrypto on Python 36 x64 on windows 10. After issuing the command pip install pycrypto, I receive the following: the error is here. I have Visual Studio 2015 with Update 3 installed.
The text was updated successfully, but these errors were encountered: