Top "Python-import" questions

For questions about importing modules in Python

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: I am trying …

python module python-3.6 python-import
import error: 'No module named' *does* exist

I am getting this stack trace when I start pyramid pserve: % python $(which pserve) ../etc/development.ini Traceback (most recent …

python python-import
No module named _sqlite3

I am trying to run a Django app on my VPS running Debian 5. When I run a demo app, it …

python sqlite debian python-import
Automatically create requirements.txt

Sometimes I download the python source code from github and don't know how to install all the dependencies. If there …

python dependencies python-import requirements
Why does using from __future__ import print_function breaks Python2-style print?

I am new at programming with python, and I am trying to print out with a separator and end but …

python python-2.7 loops vim python-import
How to import a Python class that is in a directory above?

I want to inherit from a class in a file that lies in a directory above the current one. Is …

python module directory python-import
Installing lxml module in python

while running a python script, I got this error from lxml import etree ImportError: No module named lxml now I …

python lxml python-import
Unresolved Import Issues with PyDev and Eclipse

I am very new to PyDev and Python, though I have used Eclipse for Java plenty. I am trying to …

python pydev python-import
How to check if a python module exists without importing it

I need to know if a python module exists, without importing it. Importing something that might not exist (not what …

python python-import
How to import .py file from another directory?

I have this structure of files (directory and after arrow files): model -> py_file.py report -> …

python openerp python-import