Score:0

install different version python

vi flag

i'm using the iso file built on arm for mac m1 jammy-desktop-arm64.iso my default version of python is 3.10.12 and i run the following commands

sudo add-apt-repository ppa:deadsnakes/ppac
sudo apt update
sudo apt install python3.8

nano ~/.bashrc

insert in the bash

alias python=‘/usr/bin/python3.8’

but when i try

python -V 

it's says me

bash: '/usr/bin/python3.8' : File or directory does not exist

how can i run another version of python

Score:0
ve flag

Generally, installing a different version of Python in /usr/bin is a bad idea, as your system can get confused by invoking the wrong Python version. The proper way to do this is to use pyenv (https://realpython.com/intro-to-pyenv/) or something similar to isolate the Python version you want to the application you want to use it for, rather than impose a different version of Python on the whole system.

It is likely that this package (for this reason) installed itself elsewhere. To find where it might be, use

dpkg --search bin/python3.8

You may find that it's in /usr/local/bin instead of /usr/bin, which would be a safer place to put it.

The other possibility is that you may have the wrong package. On my system (22.04), the python3 executable is in a package called python3.10-minimal; the package python3 has no executable. I can't access your repo so I can't confirm.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.