'Error loading shared library libpython3.7m.so.1.0: No such file or directory (needed by /usr/local/bin/coverage)

I seem to be having issues with my python interpreter. I am getting the following error on my terminal when trying to start the Django webserver:

1) Error loading shared library libpython3.7m.so.1.0: No such file or directory (needed by /usr/local/bin/coverage) 2) Error relocating /usr/local/bin/coverage: _Py_UnixMain: symbol not found

Any idea or clues on what I should be looking for in regards to the error above? I am running ubuntu on my system. This problem seems to occur after I started a new Django project.

Thank you.



Solution 1:[1]

This seems like a Path related issue. You can see here for solutions on how you can alter the path. Alternatively, you can simply fix the issue the following way:

sudo apt-get install libpython3.x-dev

This way you won't need to any changes to environment path manually.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 AzyCrw4282