Relative imports – ModuleNotFoundError: No module named x

TL;DR: You can’t do relative imports from the file you execute since __main__ module is not a part of a package. Absolute imports – import something available on sys.path Relative imports – import something relative to the current module, must be a part of a package If you’re running both variants in exactly the same way, one of them should work. Here is … Read more

How to install pip with Python 3?

edit: Manual installation and use of setuptools is not the standard process anymore. If you’re running Python 2.7.9+ or Python 3.4+ Congrats, you should already have pip installed. If you do not, read onward. If you’re running a Unix-like System You can usually install the package for pip through your package manager if your version of Python is older than 2.7.9 or 3.4, … Read more