user7401478
user7401478

Reputation: 1376

Python: ModuleNotFound error when starting script manually

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.

enter image description here

The telebot module is successfully installed and working. Here's to clarify:

Upvotes: 1

Views: 140

Answers (1)

Budo Zindovic
Budo Zindovic

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:

  • uninstall the one that doesn't have the package installed and add the remaining one to the path variable, or
  • you can install package in both 32bit and 64bit python.

Upvotes: 1

Related Questions