Hallo,
nachdem ich gestern so ziemlich alles zermurkst habe, wollte ich neu anfangen und habe, um Anfängerfehler zu vermeiden, mich auf diese Installationsanweisung von Pyhton 3.95. gestützt.
https://itheo.tech/install-python…b3e#comment-478
Hat Ewigkeiten gedauert und bis zum Versionscheck verlief auch alles problemlos.
Doch als ich die Versionsabfrage gestellt habe, kam folgende Fehlermeldung:
:~ $ python --version
-bash: /usr/local/bin/python3.9: No such file or directory
Meine Aktionen zuvor (same as Link, alles im Terminal):
sudo apt install wget build-essential checkinstall
sudo apt install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev
wget https://www.python.org/ftp/python/3.9.5/Python-3.9.5.tar.xz
tar -Jxf Python-3.9.5.tar.xz
cd Python-3.9.5
./configure --enable-optimizations --prefix=/usr
sudo make install
cd ..
sudo rm -r Python-3.9.5
rm -rf Python-3.9.5.tar.xz
python --version
### Resultat war Python 2.7......
###Daher:
echo "alias python='/usr/local/bin/python3.9'" >> ~/.bashrc
. ~/.bashrc
:~ $ python --version
-bash: /usr/local/bin/python3.9: No such file or directory
Was habe ich verpasst?
Danke im voraus!!!
Grüße