Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

problems with installation pycrypto in python 3.6

I've tried to install pysnmp (which uses pycrypto) on python 3.6.0 using pip, but I've got an error:

Command ""c:\program files (x86)\python36-32\python.exe" -u -c "import setuptools, tokenize;file='C: \Users\HOME-M~1\AppData\Local\Temp\pip-build-6l69kxa5\pycrypto\setup.py';f=getattr(tokenize, 'op en', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec')) " install --record C:\Users\HOME-M~1\AppData\Local\Temp\pip-qq93gmf_-record\install-record.txt --single- version-externally-managed --compile" failed with error code 1 in C:\Users\HOME-M~1\AppData\Local\Temp\p ip-build-6l69kxa5\pycrypto\

I'm not an advanced user, and I've not been able to come up with a solution for this problem. Please tell me if you know how to resolve it. Python 3.5.2 easily allowed installation.

like image 920
Евгений Артеменко Avatar asked Jan 23 '17 18:01

Евгений Артеменко


People also ask

What is the difference between PyCrypto and PyCryptodome?

It's the same code, just different names. pycryptodome has some association to pyCrypto and can be considered a drop in replacement when migrating from PyCrypto to PyCryptodome.


1 Answers

Try PyCryptodome which is a drop-in replacement for now-obsolete PyCrypto.

$ pip install pycryptodome

Alternatively, if you'd take the latest pysnmp, it explicitly depends on Pycryptodome.

$ pip install git+https://github.com/etingof/pysnmp.git

Or just download zipped package, unpack it into a local dir and run python setup.py install

like image 91
Ilya Etingof Avatar answered Nov 22 '22 20:11

Ilya Etingof