tl;dr: does anyone know any better way to accomplish basically the same thing as aliases since mine don't work?
hey and thanks for reading,
I have a raspberry pi where I'm trying to run a bot that only works on python 3.6 and up. Python only officially supports up to 3.5 on Raspberry Pi, so I had to manually compile it.
Anyway, the bot I use calls "python3" in its coding, however Raspberry Pis come with 3.5, so calling "python3" actually calls Python 3.5, not 3.7. I tried deleting Python 3.5, but it then rather than calling Python 3.7, it just said that nothing named python3 exists.
I tried using aliases to call it, but they don't work at all for some reason. I know I'm using the right syntax, and I did the update command for the file, but they just don't work.
I know that's kind of a lot, but does anyone know any better way to accomplish basically the same thing as aliases since mine don't work? Or can anyone help me figure out what's wrong with my current coding for aliases?
Use a full path to your new python version to run it.
/full/path/to/3.7/python3.7
What the path is will depend on the directions you followed and options picked when compiling the new python version.
if you want it to work by simply typing python or python3 you will have to change the symbolic links to point to the new python version.
How to get the python command to call python3.7?