Reputation: 1376
When I double-click the script to run it raises ModuleNotFound error. However, when I execute python main.py
, the script works just fine. What can be causing it? I have a fresh 3.6.1 installation.
The telebot
module is successfully installed and working.
Here's to clarify:
main.py
from console, the script throws an error because it cannot find a module. (probably because it runs from a distant folder)python main.py
from the same folder the script works well. All modules are recognized and loaded. (my guess is that python
command runs python.exe
which is located where all of the modules are)Upvotes: 1
Views: 140
Reputation: 817
It seems that you have installed both 32 bit and 64bit Pythons but have installed a package in only one of them. You can one of the following:
Upvotes: 1