Search code examples
pythonpython-3.xpycrypto

Visual studio required for pycrypto?


I am a newbie to Python. So, please be gentle

I tried to install pycrypto to use encryption and deceryption. I used the Python command pip install pycrypto. On running the command received the following error:

error: [WinError 3] The system cannot find the path specified: 'C:\\Program Files\\Microsoft Visual Studio 14.0\\VC\\PlatformSDK\\lib'

1) Since the error refers Microsoft visual studio, does Visual studio have to be installed to install pycrypto? I've verified the path in the system (already have visual studio for C# projects). I've the path - c:\Program Files\Microsoft Visual Studio 14.0\vc\, but PlatformSDK folder does not exist

2) c:\Program Files\Microsoft Visual Studio 14.0\vc\ - May I know why it refers VC?

3) If visual studio not required, what do I've to do fix the error?

Additional info - I've Python 3.7 installed in the machine.

UPDATED: As per Moses answer, Pycryptodome does not require Microsoft Visual C++ and I could install without any issue. But yet to test code against library


Solution

  • I think Dave's answer answer may help you get past the installation problem you are facing. As for alternatives to pycrypto on Python 3.7, you could try PyCryptodome