Ich versuche, Python 3.5 über apt-get zu installieren Ich habe folgendes getan
> sudo apt-get install python3.5
...
Unable to locate package python3.5
Und die Antwort sagt, dass es keinen Python finden kann. Ich habe es versucht apt-get update
aber das hat auch nicht geholfen
Irgendwelche Vorschläge ? Das sind meine Details
PRETTY_NAME="Debian GNU/Linux 7 (wheezy)"
NAME="Debian GNU/Linux"
VERSION_ID="7"
VERSION="7 (wheezy)"
ID=debian
ANSI_COLOR="1;31"
Mehr Update:
apt-cache policy python3 python
python3:
Installed: (none)
Candidate: 3.2.3-6
Version table:
3.2.3-6 0
500 http://ftp.us.debian.org/debian/ wheezy/main armhf Packages
python:
Installed: 2.7.3-4+deb7u1
Candidate: 2.7.3-4+deb7u1
Version table:
*** 2.7.3-4+deb7u1 0
500 http://ftp.us.debian.org/debian/ wheezy/main armhf Packages
100 /var/lib/dpkg/status
Antworten:
12 für die Antwort № 1Wenn Sie Ubuntu verwenden, können Sie es mit einem PPA installieren. So können Sie folgendermaßen vorgehen:
sudo add-apt-repository ppa:fkrull/deadsnakes
sudo apt-get update
sudo apt-get install python3.5
Wenn dieses Verfahren nicht funktioniert, ist es möglich, dass Ihre Ubuntu-Version es nicht unterstützte. Ich denke, dass Sie auf diese Weise installieren können:
sudo apt-get install libssl-dev openssl
wget https://www.python.org/ftp/python/3.5.0/Python-3.5.0.tgz
tar xzvf Python-3.5.0.tgz
cd Python-3.5.0
./configure
make
sudo make install
-1 für die Antwort № 2
Versuchen Sie es mit einer einfachen Suche:
apt-cache search python | grep 3.5
-2 für die Antwort № 3
Abhängigkeiten installieren:
sudo apt-get build-dep python3.2
sudo apt-get install libreadline-dev libncurses5-dev libssl1.0.0 tk8.5-dev zlib1g-dev liblzma-dev
Laden Sie Python 3.3.0 herunter:
wget http://python.org/ftp/python/3.3.0/Python-3.3.0.tgz
Extrakt:
tar xvfz Python-3.3.0.tgz
Configure and Install:
cd Python-3.3.0
./configure --prefix=/opt/python3.3
make
sudo make install
Testen Sie, ob es funktioniert hat:
/opt/python3.3/bin/python3