Problem with importing 'colorgram' module
python - ModuleNotFoundError but module is installed - Stack Overflow
Non riesco ad installare il pacchetto colorgram.py in ...
Need some explanation on how I was able to extract data in a tuple from an object
So, basically it's more a PyCharm problem than a Python one. I want to use the module 'colorgram' as I mentioned in the title, so I installed it with the package installer of PyCharm. But when I tried to call it with:
"import colorgram"
The program stopped running because of 'ModuleNotFoundError'. I tries using the same method for other modules, but no problem at all. Anybody else got into similar problems?
I guess you've installed the module with a different python version than you have run it. To fix this you can run python -m pip install <the-name-of-the-module> and than run the script with python <path-to-your-script>. If you want to use python3 just replace all python with python3.
I ran into this same issue which brought me here.
I found a solution in my case. The package was installed, attempts to re-install said requirement already satisfied.
In my case the tool I was trying to use (pytest) was not installed in the venv but was installed in the path. Installing pytest into the same venv solved the issue.