Ubuntu Türkiye

Yazılım => Programlama => Python => Konuyu başlatan: idil - 17 Eylül 2017 - 12:28:52

Başlık: Ubuntuya Python 3.6 Yüklemek?
Gönderen: idil - 17 Eylül 2017 - 12:28:52
Ubuntuyu kullanmaya yeni başladım. Python 3.6 kurmak istiyorum. Bazı sitelerden araştırıp denedim ama olmadı, bana yardım edebilir misiniz?
Başlık: Ynt: Ubuntuya Python 3.6 Yüklemek?
Gönderen: Barlow - 17 Eylül 2017 - 13:22:00
sudo apt-get update
sudo apt-get install python3.6


Bu şekilde denediniz mi daha önce? Bir de kullandığınız Ubuntu sürümü nedir?


Mesaj tekrarı yüzünden mesajınız birleştirildi. Bu mesajın gönderim tarihi : 17 Eylül 2017 - 13:24:28

sudo add-apt-repository ppa:fkrull/deadsnakes
sudo apt-get update
sudo apt-get install python3.6


Ek olarak depo ekleyerek de kurulum işlemi gerçekleştirebilirsiniz..
Başlık: Ynt: Ubuntuya Python 3.6 Yüklemek?
Gönderen: idil - 17 Eylül 2017 - 14:49:34
Ubuntu 16.04.3 LTS kullanıyorum
sudo apt-get update yazınca şöyle oluyor:
Aynı:  1 http://tr.archive.ubuntu.com/ubuntu xenial InRelease
Aynı:  2 http://tr.archive.ubuntu.com/ubuntu xenial-updates InRelease         
Aynı:  3 http://tr.archive.ubuntu.com/ubuntu xenial-backports InRelease       
İndir: 4 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB] 
İndir: 5 http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu xenial InRelease [17,5 kB]
Aynı:  6 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial InRelease
İndir: 7 http://security.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [59,9 kB]
İndir: 8 http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu xenial/main amd64 Packages [20,6 kB]
İndir: 9 http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu xenial/main i386 Packages [20,6 kB]
İndir: 10 http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu xenial/main Translation-en [5.652 B]
İndir: 11 http://security.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [57,0 kB]
İndir: 12 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [48,8 kB]
İndir: 13 http://security.ubuntu.com/ubuntu xenial-security/universe DEP-11 64x64 Icons [64,2 kB]
1 sn.'de 396 kB alındı (216 kB/s)                                     
Paket listeleri okunuyor... Bitti
N: '/etc/apt/sources.list.d/' dizinindeki 'jonathonf-ubuntu-python-3_6-xenial.list.save' dosyası geçersiz bir dosya uzantısı olduğu için yok sayılıyor
Başlık: Ynt: Ubuntuya Python 3.6 Yüklemek?
Gönderen: Barlow - 17 Eylül 2017 - 15:23:02
sudo rm -f /etc/apt/sources.list.d/*.save

Bu komuttan sonra aşağıdaki komutları uygulayabilirsiniz. Bunun için depo eklemeniz geremekte:

sudo add-apt-repository ppa:fkrull/deadsnakes
sudo apt-get update
sudo apt-get install python3.6
Başlık: Ynt: Ubuntuya Python 3.6 Yüklemek?
Gönderen: idil - 17 Eylül 2017 - 15:27:00
Depo nasıl ekleniyor?
Başlık: Ynt: Ubuntuya Python 3.6 Yüklemek?
Gönderen: Barlow - 17 Eylül 2017 - 15:27:59
Alıntı yapılan: Barlow - 17 Eylül 2017 - 15:23:02
sudo rm -f /etc/apt/sources.list.d/*.save

Bu komuttan sonra aşağıdaki komutları uygulayabilirsiniz. Bunun için depo eklemeniz geremekte:

sudo add-apt-repository ppa:fkrull/deadsnakes
sudo apt-get update
sudo apt-get install python3.6


Burada verdiğim komutları uygulayabilirsiniz, add-apt-repository komutu ile uygun depo ekleniyor..
Başlık: Ynt: Ubuntuya Python 3.6 Yüklemek?
Gönderen: idil - 17 Eylül 2017 - 15:31:57
Tekrardan başta söylediğim hatayı verdi. Kusura bakmayın pek bir bilgim yok bölüme yeni başladım öğrenmeye çalışıyorum.
Başlık: Ynt: Ubuntuya Python 3.6 Yüklemek?
Gönderen: Barlow - 17 Eylül 2017 - 15:34:04
Alıntı yapılan: idil - 17 Eylül 2017 - 15:31:57
Tekrardan başta söylediğim hatayı verdi. Kusura bakmayın pek bir bilgim yok bölüme yeni başladım öğrenmeye çalışıyorum.

N: '/etc/apt/sources.list.d/' dizinindeki 'jonathonf-ubuntu-python-3_6-xenial.list.save' dosyası geçersiz bir dosya uzantısı olduğu için yok sayılıyor

Buradaki hatadan kastınız ise; çözümünü vermiştim:

sudo rm -f /etc/apt/sources.list.d/*.save

Ardından tekrar deneyebilirsiniz.
Başlık: Ynt: Ubuntuya Python 3.6 Yüklemek?
Gönderen: idil - 17 Eylül 2017 - 15:39:20
Söylediklerinizi yaptım ama terminale python yazınca hala eskisi gözüküyor

Python 2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
Başlık: Ynt: Ubuntuya Python 3.6 Yüklemek?
Gönderen: Barlow - 17 Eylül 2017 - 15:40:13
python3.6

Şeklinde çalıştırmayı denediniz mi?
Başlık: Ynt: Ubuntuya Python 3.6 Yüklemek?
Gönderen: idil - 17 Eylül 2017 - 15:42:16
python: can't open file '3.6': [Errno 2] No such file or directory

yazıyor :(
Başlık: Ynt: Ubuntuya Python 3.6 Yüklemek?
Gönderen: Barlow - 17 Eylül 2017 - 15:43:04
sudo dpkg -l | grep python3

Bu komutun çıktısını görebilir miyim?
Başlık: Ynt: Ubuntuya Python 3.6 Yüklemek?
Gönderen: idil - 17 Eylül 2017 - 15:45:13
Aa bitişik yazmadığım için olmamış şimdi oldu. Çok teşekkür ederim

Son yazdığınızı yazınca da şöyle oluyor:
ii  libpeas-1.0-0-python3loader                1.16.0-1ubuntu2                              amd64        Application plugin library
ii  libpython3-all-dev:amd64                   3.5.1-3                                      amd64        package depending on all supported Python 3 development packages
ii  libpython3-dev:amd64                       3.5.1-3                                      amd64        header files and a static library for Python (default)
ii  libpython3-stdlib:amd64                    3.5.1-3                                      amd64        interactive high-level object-oriented language (default python3 version)
ii  libpython3.5:amd64                         3.5.2-2ubuntu0~16.04.1                       amd64        Shared Python runtime library (version 3.5)
ii  libpython3.5-dev:amd64                     3.5.2-2ubuntu0~16.04.1                       amd64        Header files and a static library for Python (v3.5)
ii  libpython3.5-minimal:amd64                 3.5.2-2ubuntu0~16.04.1                       amd64        Minimal subset of the Python language (version 3.5)
ii  libpython3.5-stdlib:amd64                  3.5.2-2ubuntu0~16.04.1                       amd64        Interactive high-level object-oriented language (standard library, version 3.5)
ii  libpython3.6-minimal:amd64                 3.6.2-1+xenial1                              amd64        Minimal subset of the Python language (version 3.6)
ii  libpython3.6-stdlib:amd64                  3.6.2-1+xenial1                              amd64        Interactive high-level object-oriented language (standard library, version 3.6)
ii  python3                                    3.5.1-3                                      amd64        interactive high-level object-oriented language (default python3 version)
ii  python3-all                                3.5.1-3                                      amd64        package depending on all supported Python 3 runtime versions
ii  python3-all-dev                            3.5.1-3                                      amd64        package depending on all supported Python 3 development packages
ii  python3-apport                             2.20.1-0ubuntu2.10                           all          Python 3 library for Apport crash report handling
ii  python3-apt                                1.1.0~beta1build1                            amd64        Python 3 interface to libapt-pkg
ii  python3-aptdaemon                          1.1.1+bzr982-0ubuntu14                       all          Python 3 module for the server and client of aptdaemon
ii  python3-aptdaemon.gtk3widgets              1.1.1+bzr982-0ubuntu14                       all          Python 3 GTK+ 3 widgets to run an aptdaemon client
ii  python3-aptdaemon.pkcompat                 1.1.1+bzr982-0ubuntu14                       all          PackageKit compatibilty for AptDaemon
ii  python3-blinker                            1.3.dfsg2-1build1                            all          fast, simple object-to-object and broadcast signaling library
ii  python3-brlapi                             5.3.1-2ubuntu2.1                             amd64        Braille display access via BRLTTY - Python3 bindings
ii  python3-bs4                                4.4.1-1                                      all          error-tolerant HTML parser for Python 3
ii  python3-cairo                              1.10.0+dfsg-5build1                          amd64        Python 3 bindings for the Cairo vector graphics library
ii  python3-cffi-backend                       1.5.2-1ubuntu1                               amd64        Foreign Function Interface for Python 3 calling C code - runtime
ii  python3-chardet                            2.3.0-2                                      all          universal character encoding detector for Python3
ii  python3-checkbox-support                   0.22-1                                       all          collection of Python modules used by PlainBox providers
ii  python3-commandnotfound                    0.3ubuntu16.04.2                             all          Python 3 bindings for command-not-found.
ii  python3-cryptography                       1.2.3-1ubuntu0.1                             amd64        Python library exposing cryptographic recipes and primitives (Python 3)
ii  python3-cups                               1.9.73-0ubuntu2                              amd64        Python3 bindings for CUPS
ii  python3-cupshelpers                        1.5.7+20160212-0ubuntu2                      all          Python modules for printer configuration with CUPS
ii  python3-dbus                               1.2.0-3                                      amd64        simple interprocess messaging system (Python 3 interface)
ii  python3-debian                             0.1.27ubuntu2                                all          Python 3 modules to work with Debian-related data formats
ii  python3-defer                              1.0.6-2build1                                all          Small framework for asynchronous programming (Python 3)
ii  python3-dev                                3.5.1-3                                      amd64        header files and a static library for Python (default)
ii  python3-distupgrade                        1:16.04.22                                   all          manage release upgrades
ii  python3-feedparser                         5.1.3-3build1                                all          Universal Feed Parser for Python 3
ii  python3-gdbm:amd64                         3.5.3-2~16.04.york0                          amd64        GNU dbm database support for Python 3.x
ii  python3-gi                                 3.20.0-0ubuntu1                              amd64        Python 3 bindings for gobject-introspection libraries
ii  python3-gi-cairo                           3.20.0-0ubuntu1                              amd64        Python 3 Cairo bindings for the GObject library
ii  python3-guacamole                          0.9.2-1                                      all          framework for creating command line applications (Python 3)
ii  python3-html5lib                           0.999-4                                      all          HTML parser/tokenizer based on the WHATWG HTML5 specification (Python 3)
ii  python3-httplib2                           0.9.1+dfsg-1                                 all          comprehensive HTTP client library written for Python3
ii  python3-idna                               2.0-3                                        all          Python IDNA2008 (RFC 5891) handling (Python 3)
ii  python3-jinja2                             2.8-1                                        all          small but fast and easy to use stand-alone template engine
ii  python3-jwt                                1.3.0-1ubuntu0.1                             all          Python 3 implementation of JSON Web Token
ii  python3-louis                              2.6.4-2ubuntu0.1                             all          Python bindings for liblouis
ii  python3-lxml                               3.5.0-1build1                                amd64        pythonic binding for the libxml2 and libxslt libraries
ii  python3-mako                               1.0.3+ds1-1ubuntu1                           all          fast and lightweight templating for the Python 3 platform
ii  python3-markupsafe                         0.23-2build2                                 amd64        HTML/XHTML/XML string library for Python 3
ii  python3-minimal                            3.5.1-3                                      amd64        minimal subset of the Python language (default python3 version)
ii  python3-oauthlib                           1.0.3-1                                      all          generic, spec-compliant implementation of OAuth for Python3
ii  python3-padme                              1.1.1-2                                      all          mostly transparent proxy class for Python 3
ii  python3-pexpect                            4.0.1-1                                      all          Python 3 module for automating interactive applications
ii  python3-pil:amd64                          3.1.2-0ubuntu1.1                             amd64        Python Imaging Library (Python3)
ii  python3-pip                                8.1.1-2ubuntu0.4                             all          alternative Python package installer - Python 3 version of the package
ii  python3-pkg-resources                      20.7.0-1                                     all          Package Discovery and Resource Access using pkg_resources
ii  python3-plainbox                           0.25-1                                       all          toolkit for software and hardware testing (python3 module)
ii  python3-problem-report                     2.20.1-0ubuntu2.10                           all          Python 3 library to handle problem reports
ii  python3-ptyprocess                         0.5-1                                        all          Run a subprocess in a pseudo terminal from Python 3
ii  python3-pyasn1                             0.1.9-1                                      all          ASN.1 library for Python (Python 3 module)
ii  python3-pyatspi                            2.18.0+dfsg-3                                all          Assistive Technology Service Provider Interface - Python3 bindings
ii  python3-pycurl                             7.43.0-1ubuntu1                              amd64        Python bindings to libcurl (Python 3)
ii  python3-pyparsing                          2.0.3+dfsg1-1ubuntu0.1                       all          Python parsing module, Python3 package
ii  python3-renderpm:amd64                     3.3.0-1                                      amd64        python low level render interface
ii  python3-reportlab                          3.3.0-1                                      all          ReportLab library to create PDF documents using Python3
ii  python3-reportlab-accel:amd64              3.3.0-1                                      amd64        C coded extension accelerator for the ReportLab Toolkit
ii  python3-requests                           2.9.1-3                                      all          elegant and simple HTTP library for Python3, built for human beings
ii  python3-setuptools                         20.7.0-1                                     all          Python3 Distutils Enhancements
ii  python3-six                                1.10.0-3                                     all          Python 2 and 3 compatibility library (Python 3 interface)
ii  python3-software-properties                0.96.20.7                                    all          manage the repositories that you install software from
ii  python3-speechd                            0.8.3-1ubuntu3                               all          Python interface to Speech Dispatcher
ii  python3-systemd                            231-2build1                                  amd64        Python 3 bindings for systemd
ii  python3-uno                                1:5.1.6~rc2-0ubuntu1~xenial2                 amd64        Python-UNO bridge
ii  python3-update-manager                     1:16.04.9                                    all          python 3.x module for update-manager
ii  python3-urllib3                            1.13.1-2ubuntu0.16.04.1                      all          HTTP library with thread-safe connection pooling for Python3
ii  python3-venv                               3.5.1-3                                      amd64        pyvenv-3 binary for python3 (default python3 version)
ii  python3-wheel                              0.29.0-1                                     all          built-package format for Python
ii  python3-xdg                                0.25-4                                       all          Python 3 library to access freedesktop.org standards
ii  python3-xkit                               0.5.0ubuntu2                                 all          library for the manipulation of xorg.conf files (Python 3)
ii  python3-xlsxwriter                         0.7.3-1                                      all          Python 3 module for creating Excel XLSX files
ii  python3.5                                  3.5.2-2ubuntu0~16.04.1                       amd64        Interactive high-level object-oriented language (version 3.5)
ii  python3.5-dev                              3.5.2-2ubuntu0~16.04.1                       amd64        Header files and a static library for Python (v3.5)
ii  python3.5-minimal                          3.5.2-2ubuntu0~16.04.1                       amd64        Minimal subset of the Python language (version 3.5)
ii  python3.5-venv                             3.5.2-2ubuntu0~16.04.1                       amd64        Interactive high-level object-oriented language (pyvenv binary, version 3.5)
ii  python3.6                                  3.6.2-1+xenial1                              amd64        Interactive high-level object-oriented language (version 3.6)
ii  python3.6-minimal                          3.6.2-1+xenial1                              amd64        Minimal subset of the Python language (version 3.6)
Başlık: Ynt: Ubuntuya Python 3.6 Yüklemek?
Gönderen: Barlow - 17 Eylül 2017 - 15:51:34
PATH=$PATH:/usr/bin
python3.6


Eğer olmazsa bir de şu komutun çıktısına bakalım:


/usr/bin/python3.6


Çıktıları Kod Etiketi içerisinde paylaşırsanız, okunurluk daha kolay olacaktır. : https://forum.ubuntu-tr.net/index.php?topic=14283.0
Başlık: Ynt: Ubuntuya Python 3.6 Yüklemek?
Gönderen: idil - 17 Eylül 2017 - 16:54:01
İlk yazdıklarınızla böyle oldu:
Python 3.6.2 (default, Jul 17 2017, 23:14:31)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>



İkincisi böyle :
Python 3.6.2 (default, Jul 17 2017, 23:14:31)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

Başlık: Ynt: Ubuntuya Python 3.6 Yüklemek?
Gönderen: Barlow - 17 Eylül 2017 - 17:27:16
Python3.6 çalışmış, /usr/bin dizini varsayılan olarak $PATH değişkenine aktarılması gerekiyor. Bunu da yapabilmek için aşağıdaki komutu kullanarak .bashrc dosyasını açın:

gedit ~/.bashrc

Açılan bu dosyaya aşağıdaki satırı ilave edin:

export PATH=/usr/bin:$PATH

Dosyayı kaydedip, çıkış yaptıktan sonra sistemi her açışınızda Terminal'e python3.6 girerek istediğiniz sürümü kullanabilirsiniz..
Başlık: Ynt: Ubuntuya Python 3.6 Yüklemek?
Gönderen: idil - 17 Eylül 2017 - 18:05:40
export PATH=/usr/bin:$PATH

Bunu dosyanın en altına mı ekleyeceğim?
Başlık: Ynt: Ubuntuya Python 3.6 Yüklemek?
Gönderen: Barlow - 17 Eylül 2017 - 19:37:54
[mention=630940]@idil[/mention]

Evet, öyle yapacaksınız.
Başlık: Ynt: Ubuntuya Python 3.6 Yüklemek?
Gönderen: idil - 17 Eylül 2017 - 20:52:05
Teşekkür ederim :)
Başlık: Ynt: Ubuntuya Python 3.6 Yüklemek?
Gönderen: Barlow - 17 Eylül 2017 - 21:27:43
Rica ederim, sorun çözüldüyse konuya ÇÖZÜLDÜ etiketini ekler misiniz? : https://forum.ubuntu-tr.net/index.php?topic=14283.0
Başlık: Ynt: Ubuntuya Python 3.6 Yüklemek?
Gönderen: ahmet12 - 19 Eylül 2017 - 13:35:28
apt-get install python3.6 python-dev de diye bilirsiniz