ModuleNotFoundError when running installed packages
See original GitHub issueI am seeing this issue with lots of packages that have a command-line entry point (at least pytest
and honcho
):
$ pipenv --version
pipenv, version 3.2.0
$ pipenv install honcho
Installing honcho...
Collecting honcho
Using cached honcho-0.7.1-py2.py3-none-any.whl
Installing collected packages: honcho
Successfully installed honcho-0.7.1
Adding honcho to Pipfile's [packages]...
$ pipenv run honcho
Traceback (most recent call last):
File "<root>/.venv/bin/honcho", line 7, in <module>
from honcho.command import main
ModuleNotFoundError: No module named 'honcho'
Issue Analytics
- State:
- Created 7 years ago
- Comments:19 (15 by maintainers)
Top Results From Across the Web
Python: "ModuleNotFoundError", but module is installed?
Currently I run my code from PyCharm 2017.1.5 (windows 10) with Python interpreter set as Python 3.6.1 (C:\Anaconda3\python.exe) , i.e. I ...
Read more >ModuleNotFoundError: no module named Python Error [Fixed]
How to fix the ModuleNotFoundError in Python · 1. Make sure imported modules are installed · 2. Make sure modules are spelled correctly...
Read more >No module named ' ' in Python on Windows, Linux, and macOS
This video will show you how to fix ModuleNotFoundError : No module named ' ' when using importing packages or modules in Python....
Read more >How to Fix ModuleNotFoundError (No Module Named) Error ...
in a virtual environment or using Python 2pip install numpy# 👇️ for python 3 (could also be pip3.10 depending on your version)pip3 install ......
Read more >How to Fix ModuleNotFoundError and ImportError
first make sure you are using absolute imports · export the project's root directory to PYTHONPATH.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Weirdly,
$ pipenv run python -m pytest
does work.I’m having this exact same issue with a new package I’m working on… https://github.com/fny/thecurator/tree/pipenv-failure
The jsonschema package can’t be found in the tests even though it’s clearly installed in the virtualenv.