I know that ubuntu 18.04 LTS needs python 3.6 for doing a lot of its stuff, but I need to run a lot of python 3.7 applications and I don't get that why there is a conflict between them, I had to go over all non-running programs in /usr/bin
and change the line #!/usr/bin/python3
to #!/usr/bin/python3.6
and I'm not sure if there are some more files I should change, and I'm worried someday my PC won't boot up 'cause of that :(
Is there a way to make that conflict go away and use only python3 command for everything?
P.S. I did a lot of searching and came up with nothing so if this is a duplicate question I'm sorry
Thank you all in advance :)
Edit:
This is the error log output when I run a system program with python3.7
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 11, in <module>
from softwareproperties.SoftwareProperties import SoftwareProperties, shortcut_handler
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 28, in <module>
import apt_pkg
ModuleNotFoundError: No module named 'apt_pkg'
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook
from apport.fileutils import likely_packaged, get_recent_crashes
File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>
from apport.report import Report
File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in <module>
import apport.fileutils
File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in <module>
from apport.packaging_impl import impl as packaging
File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 24, in <module>
import apt
File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module>
import apt_pkg
ModuleNotFoundError: No module named 'apt_pkg'
Original exception was:
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 11, in <module>
from softwareproperties.SoftwareProperties import SoftwareProperties, shortcut_handler
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 28, in <module>
import apt_pkg
ModuleNotFoundError: No module named 'apt_pkg'
It's also the same if I run an app that needs 3.7 with the 3.6 version.