About 9,870,000 results
Open links in new tab
  1. How to write a Python module/package? - Stack Overflow

    Apr 1, 2013 · Python 3 - UPDATED 18th November 2015 Found the accepted answer useful, yet wished to expand on several points for the benefit of others based on my own experiences. Module: A …

  2. Can't import my own modules in Python - Stack Overflow

    I ran "pip install -e . " to install myapp, but when trying to run TestCase in visual studio code I still get "ImportError: No module named myapp". but if I run "python" and then in python run "from myapp …

  3. How can I get a list of all classes within current module in Python?

    If I import classes in this module at the module level (i.e., from optparse import OptionParser) those modules are included in the print list. How might I avoid that?

  4. python - How to list all functions in a module? - Stack Overflow

    I have a Python module installed on my system and I'd like to be able to see what functions/classes/methods are available in it. I want to call the help function on each one. In Ruby I …

  5. python - ModuleNotFoundError but module is installed - Stack Overflow

    Dec 26, 2020 · I guess you've installed the module with a different python version than you have run it. To fix this you can run python -m pip install <the-name-of-the-module> and than run the script with …

  6. How to fix "ImportError: No module named ..." error in Python?

    A better fix than setting PYTHONPATH is to use python -m module.path This will correctly set sys.path[0] and is a more reliable way to execute modules. I have a quick writeup about this problem, …

  7. Whats the difference between a module and a library in Python?

    Oct 5, 2013 · Packages are a way of structuring Python’s module namespace by using “dotted module names”. If you read the documentation for the import statement gives more details, for example: …

  8. python - No module named pkg_resources - Stack Overflow

    Sep 16, 2011 · ImportError: No module named pkg_resources pkg_resources appears to be distributed with setuptools. Initially I thought this might not be installed to the Python in the virtualenv, so I …

  9. How to check if a Python module exists without importing it

    Dec 27, 2012 · If your module has side effects, calling import might have unwanted consequences. So, if you wanted to check which version of a file to run first, you can do check with the below answer, and …

  10. python - Module not found - "No module named" - Stack Overflow

    My issue was that it was installed for Python, but not for Python 3. To check to see if a module is installed for Python 3, run: python3 -m pip uninstall moduleName After doing this, if you find that a …