Failed to import python package installed on environment
See original GitHub issue- VS Code Version: 1.53.2
- OS Version: Linux x64 5.4.0-65-generic
Steps to Reproduce:
- create a
.ipynb
(saved in a remote location) with a single import (e.g.import matplotlib.pyplot as plt
) - open the (remote)
ipynb
with vs code via SSH - run the code on the
.ipynb
-> here is where I am getting the error (ModuleNotFoundError
)
To make sure the package I am trying to import on the ipynb
is installed
- open a terminal on vs code itself
- call the same python interpreter previously selected on the interactive window (shown on the bottom left of the screen)
- call the import command -> package was successfully imported
Does this issue occur when all extensions are disabled?: NA (some extensions (e.g. python
, Jupyter
) cannot be disabled for this testing)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:12 (3 by maintainers)
Top Results From Across the Web
python - Unable to import a module that is definitely installed
Open up Terminal · Type open .bash_profile · In the text file that pops up, add this line at the end: export PYTHONPATH=$PYTHONPATH:/System/Library/Frameworks/ ......
Read more >Failed to import python package installed on environment
Steps to Reproduce: create a .ipynb (saved in a remote location) with a single import (e.g. import matplotlib.pyplot as plt ); open the...
Read more >ModuleNotFoundError: no module named Python Error ...
How to fix the ModuleNotFoundError in Python · 1. Make sure imported modules are installed · 2. Make sure modules are spelled correctly...
Read more >PyCharm can't install/import a package/library/module
Try installing/importing a package from the system terminal (outside of PyCharm) using the same interpreter/environment.
Read more >Why Can't Python Find My Modules?
A common error that new Pythonistas will come across is that the packages they think they've installed are not actually being recognized by...
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
@DonJayamanne I am not any more. 1.61 on MacOS and Ubuntu Linux.
@DonJayamanne Thanks for getting back to me on this.
I’m not able to reproduce this with the V 1.64.2 (Universal). I gave up on using a remote Jupyter kernel, but it looks like whatever was wrong (configuration? bug?) seems to be resolved at this point. If I can reliably reproduce the problem I’ll open a new ticket.