Getting "ModuleNotFoundError" even though it just got installed by pip

Hello @Kasper_Jordt

this is usually the sign of some misconfiguration of the python interpreter / virtual environments.
Can you describe, how you are trying to run the given script?

I’m asking, cause i cannot reproduce your issue unfortunately.

Running:
$ python -m pip install specklepy
installs the package successfully

$ python -m pip list
gets the installed packages, including specklepy
image

starting the python REPL and typing
import specklepy
works without raising an ModuleNotFoundError

image

Could you please follow my steps to try to reproduce your issue?
Also please note, that I’m using python -m pip ... to install packages, to avoid path configuration errors around the python and the pip executables.

1 Like