![]() |
ModuleNotFoundError: No module named 'athena_read' - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: ModuleNotFoundError: No module named 'athena_read' (/thread-42351.html) |
ModuleNotFoundError: No module named 'athena_read' - raman - Jun-23-2024 I have file athena_read.py but i am still getting error ModuleNotFoundError: No module named 'athena_read' How can i overcome that err
RE: ModuleNotFoundError: No module named 'athena_read' - AdamHensley - Jul-01-2024 It sounds like a path issue. Make sure the directory containing athena_read.py is in your Python path. You can do this by modifying your PYTHONPATH environment variable or adding the path directly to your script. import sys sys.path.append('/home/raman/Pictures/MikiForRaman/pyfiles') import athena_read This should help Python locate the athena_read module. Hope this helps! RE: ModuleNotFoundError: No module named 'athena_read' - Gribouillis - Jul-01-2024 I think your problem is the status of the pyfiles directory:
site-packages directory a file with the .pth extension containing the path to your directory, for example# in file mypythondirs.pth /home/raman/Pictures/MikiForRaman/pyfilesIf you are using your system Python interpreter, you can put that file in the directory printed by the command python -c "import site; print(site.getusersitepackages())" . If not, you can store it in one of the directories printed by python -c "import site; print(site.getsitepackages())"
|