ModuleNotFoundError: No module named 'astropy.extern'
See original GitHub issueMy code has suddenly stopped working. The above error is produced in response to import astropy
. Could this be due to an update or something?
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (7 by maintainers)
Top Results From Across the Web
No module named 'astropy.extern.six' · Issue #348 - GitHub
ModuleNotFoundError : No module named 'astropy.extern.six'. I checked astropy version with : python3 -c "import astropy; print(astropy.
Read more >No module named astropy found when trying to import
I suspect it happens because you have installed updates for macOS Catalina, which changes the location of some files from the root.
Read more >importerror no module named astropy visualization
A deep dive into the ImportError and ModuleNotFoundError in Python, with code samples showing how to deal with failed imports in Python 2.7...
Read more >Installation — Astropy v5.2
PermissionError this means that you do not have the required administrative access to install new packages to your Python installation. In this case...
Read more >ModuleNotFoundError: No module named 'astropy'
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'astropy' How to remove the ModuleNotF.
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
For what it’s worth, I seem to have fixed this now by uninstalling and reinstalling astropy through pip. Somehow the extern directory within that installation had disappeared. However, this was not the installation I thought I was calling, which suggests I need to be more careful with my environment.
Hm,
usr/local/lib
doesn’t look like a conda-installation, are you sure you installed astropy via conda?But the astropy version and/or channel (pip or conda) could be helpful.