tagged [python-module]

Why is Python running my module when I import it, and how do I stop it?

Why is Python running my module when I import it, and how do I stop it? I have a Python program I'm building that can be run in either of 2 ways: the first is to call `python main.py` which prompts th...

21 Oct at 02:19

How to write a Python module/package?

How to write a Python module/package? I've been making Python scripts for simple tasks at work and never really bothered packaging them for others to use. Now I have been assigned to make a Python wra...

24 Mar at 12:29

ImportError: No module named tensorflow

ImportError: No module named tensorflow Please help me with this error I have installed the tensorflow module on my server and below is it's information ``` 15IT60R19@cpusrv-gpu-109:~$ pip show tensor...

ModuleNotFoundError: What does it mean __main__ is not a package?

ModuleNotFoundError: What does it mean __main__ is not a package? I am trying to run a module from the console. The structure of my directory is this: [](https://i.stack.imgur.com/naRKa.png) I am tryi...