Reputation: 11
I wanted to start solving puzzles and stuff on cryptohack because one of my university classes requires it and i want to use the python library pycryptodome but even after installing it i get the error :Import "Crypto.Util.number" could not be resolved.
i've tried a few time to uninstall and reinstall the library but it doesn't seem to fix it and whenever i try to do 'pip3 install --upgrade pycrypto' i get these errors at the bottom
" note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pycrypto Running setup.py clean for pycrypto Failed to build pycrypto"
any recommendations for fixing it will be greatly appreciated
Upvotes: 0
Views: 2009
Reputation: 81454
Uninstall pycrypto
and pycryptodome
. Try to uninstall both so that these two conflicting packages are removed.
pip uninstall pycrypto
pip uninstall pycryptodome
Then install pycryptodome
.
pip install pycryptodome
Upvotes: 0
Reputation: 46
To create virtual environment
python -m venv venv
To activate virtual environment
python ./venv/bin/activate
pip install pycryptodome
to install the pycryptodome package. Now you can use the number module from utility package.Upvotes: 0