I have been able to install pycrypto
as follows, followed the given answer.
But when I debug the project, then getting the following issue which seems to be related Crypto
.
ModuleNotFoundError: No module named 'winrandom'
aut\token.py
line 3 is
from jose.jwt import get_unverified_claims
UPDATE:1
Then, I have run pip install winrandom
and get the following error.
TypeError: '>=' not supported between instances of 'NoneType' and 'str'
UPDATE:2
When I rung the proposed command pip install --proxy http://XXXX:80 git+https://github.com/dlitz/pycrypto.git
with proxy(required) in the working environment, then I get a connection refused error as follows.
It seems this is a common issue with pycrypto. This is a bug, but the project doesn't seem to be updated in the last couple years.
Digging over the issue, (https://github.com/andrewcooke/simple-crypt/issues/17)
It seems the poblem is solved by doing an edit to the import statement in crypto\Random\OSRNG\nt.py
:
import winrandom
to
from . import winrandom
As Vinny mentioned, this issue is known and solved in Pycrypto, but PyPi still delivers an old release of Pycrytpto. You can instead install the latest release directly from the GitHub repository by using:
pip install git+https://github.com/dlitz/pycrypto.git
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With