Can't find Crypto library from MS Visual Code's pylint but can from command line

Viewed 857

I'm running an env a Python-based project.

I've installed pycryptodome and can see env\lib\site-packages\Crypto

From the cmd line I can run Python 3.7 and successfully enter:

from Crypto.Cipher import AES

But when I launch MS Visual Studio Code and enter the same line in a .py file the pylint extension complains to the effect: ModuleNotFoundError: No module named 'Crypto'. If I run the code I get the same error.

I've launched code.exe from within my env cmd line but I'm guessing it's not using that env.

How do I fix this?

0 Answers
Related