etingof / pysnmp

Python SNMP library
http://snmplabs.com/pysnmp/
BSD 2-Clause "Simplified" License
582 stars 200 forks source link

Cannot install pysnmp on centos 6.9 #120

Closed hungtran84 closed 6 years ago

hungtran84 commented 6 years ago

Encounter following error: Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-7dAqqZ/pycryptodomex/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-iwW9QE-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-7dAqqZ/pycryptodomex/

Please help me to deal with it,

Thanks

etingof commented 6 years ago

This problem is related to the pycryptodome package, not pysnmp. But it is also quite possible that your build environment is incomplete (e.g. some devel .rpms are missing).

Alternatively, you may want to install pycryptodomex in its wheel form which should contain pre-compiled binaries.