I just realised that the python interpreter that came pre-installed with my ubuntu system was Python 3.8. I just installed python 3.10 but it installed into the /usr/local/bin...
directory, but 3.8 is in the /bin/python
directory(global directory).
All the packages I downloaded/ imported to work with python only work when I use the 3.8 iterpreter(this is confusing because if the packages were installed in the global folder, it should work everywhere...right?
How do I move my packages to the local folder i.e where python 3.10 is located OR python 3.10 to the global folder to work with the packages. I didn't want to just move it using the mv
command I dont know if that is safe to do.
CodePudding user response:
Rename /usr/local/bin/python to /usr/local/bin/pythons3.10 or remove it.
Then create link from /usr/local/bin/python to /bin/python
To create link :
ln -s /bin/python /usr/local/bin/python