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.
3 Answers
Answers 1
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
Answers 2
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
Answers 3
Please install the latest version of PyCrypto
pip install git+https://github.com/dlitz/pycrypto.git
0 comments:
Post a Comment