Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
How to install Python 3.6?
Re: How to install Python 3.6?
https://duckduckgo.com/html/?q=install+ ... an+stretchemil_21 wrote: I need to install python 3.6 on debian stretch. How to do that?
resigned by AI ChatGPT
Re: How to install Python 3.6?
I followed this guide https://github.com/chriskuehl/python3.6-debian-stretch and installed python 3.6, but if i run 'python -V' it still shows version 2.7.13. Why is that?
- dilberts_left_nut
- Administrator
- Posts: 5347
- Joined: 2009-10-05 07:54
- Location: enzed
- Has thanked: 13 times
- Been thanked: 66 times
-
- Posts: 1101
- Joined: 2016-01-07 12:25
- Has thanked: 6 times
- Been thanked: 16 times
Re: How to install Python 3.6?
If i type 'python3 -V' it shows 'Python 3.5.3'.Dai_trying wrote:Simple answer:
typeCode: Select all
python3 -V
-
- Posts: 1101
- Joined: 2016-01-07 12:25
- Has thanked: 6 times
- Been thanked: 16 times
Re: How to install Python 3.6?
That shows you have both Python 2.7 and Python 3.5.
If you really want 3.6 or above you could try to install the latest version direct from the python website or backport the Buster version (both are V3.7). I am using Buster now which has 3.7.2+ by default.
If you really want 3.6 or above you could try to install the latest version direct from the python website or backport the Buster version (both are V3.7). I am using Buster now which has 3.7.2+ by default.
Re: How to install Python 3.6?
So, debian buster will have python 3.7? I guess i will wait until it is officially released and upgrade.
-
- Posts: 1101
- Joined: 2016-01-07 12:25
- Has thanked: 6 times
- Been thanked: 16 times
Re: How to install Python 3.6?
Yes, I usually keep a Testing installation to see how it is going, and have recently performed a fresh installation as the freeze has started. It has been pretty stable for me but my needs are quite simple and I generally keep software down to a minimum.
I don't think there is a vast difference between the versions though (3.5 - 3.7) so waiting might be the prudent option.
I don't think there is a vast difference between the versions though (3.5 - 3.7) so waiting might be the prudent option.
- stevepusser
- Posts: 12930
- Joined: 2009-10-06 05:53
- Has thanked: 41 times
- Been thanked: 72 times
Re: How to install Python 3.6?
What deb files did you install?emil_21 wrote:I followed this guide https://github.com/chriskuehl/python3.6-debian-stretch and installed python 3.6, but if i run 'python -V' it still shows version 2.7.13. Why is that?
Did you read the instructions? They say it will not replace Python 3.5, so it will remain your default python3. I would imagine you'll have to run "python3.6" or something similar.
MX Linux packager and developer
Re: How to install Python 3.6?
I just copy the command:stevepusser wrote:What deb files did you install?emil_21 wrote:I followed this guide https://github.com/chriskuehl/python3.6-debian-stretch and installed python 3.6, but if i run 'python -V' it still shows version 2.7.13. Why is that?
Did you read the instructions? They say it will not replace Python 3.5, so it will remain your default python3. I would imagine you'll have to run "python3.6" or something similar.
Code: Select all
wget https://github.com/chriskuehl/python3.6-debian-stretch/releases/download/v3.6.3-1-deb9u1/{python3.6_3.6.3-1.deb9u1_amd64,python3.6-minimal_3.6.3-1.deb9u1_amd64,python3.6-dev_3.6.3-1.deb9u1_amd64,libpython3.6_3.6.3-1.deb9u1_amd64,libpython3.6-minimal_3.6.3-1.deb9u1_amd64,libpython3.6-stdlib_3.6.3-1.deb9u1_amd64,libpython3.6-dev_3.6.3-1.deb9u1_amd64}.deb
I am trying to install electrum which require python 3.6. I first installed the dependencies with this command:
Code: Select all
sudo apt-get install python3-setuptools python3-pyqt5 python3-pip
Code: Select all
sudo python3 -m pip install https://download.electrum.org/3.3.4/Electrum-3.3.4.tar.gz#egg=electrum[fast]
But i am unable to start electrum. If i try to launch it from the command line i get this output:
Code: Select all
Traceback (most recent call last):
File "/usr/local/bin/electrum", line 339, in <module>
d.init_gui(config, plugins)
File "/usr/local/lib/python3.6/dist-packages/electrum/daemon.py", line 326, in init_gui
gui = __import__('electrum.gui.' + gui_name, fromlist=['electrum'])
File "/usr/local/lib/python3.6/dist-packages/electrum/gui/qt/__init__.py", line 37, in <module>
from PyQt5.QtGui import *
ModuleNotFoundError: No module named 'PyQt5.QtGui'
- stevepusser
- Posts: 12930
- Joined: 2009-10-06 05:53
- Has thanked: 41 times
- Been thanked: 72 times
Re: How to install Python 3.6?
Again, "python3" is the default Stretch Python 3.5. You have to use "python3.6" to use 3.6. Try "python3.6 --version". No guarantees that Ubuntu packages are going to work, though.
Why don't you just use the Electrum Appimage instead, and forget all this monkeying around with PPAs and foreign debs? It uses an internal version of a newer Python.
I just rebuilt python3.7-3.7.2 from that PPA on a vanilla Stretch platform...it looks quite interesting.
Why don't you just use the Electrum Appimage instead, and forget all this monkeying around with PPAs and foreign debs? It uses an internal version of a newer Python.
I just rebuilt python3.7-3.7.2 from that PPA on a vanilla Stretch platform...it looks quite interesting.
MX Linux packager and developer