日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > python >内容正文

python

ubuntu安装python3.6_如何在Ubuntu19.04上安装Python3.6?

發布時間:2024/9/19 python 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 ubuntu安装python3.6_如何在Ubuntu19.04上安装Python3.6? 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

我最近安裝了Ubuntu 19.04,默認為Python 3.7。我需要處理多個使用Python 3.6的項目。

有沒有辦法把它安裝到迪斯科野狗上?

我試過了對16.04有效的方法milano@milano-desktop:~$ sudo add-apt-repository ppa:jonathonf/python-3.6

...

milano@milano-desktop:~$ sudo apt-get install python3.6

Reading package lists... Done

Building dependency tree

Reading state information... Done

Note, selecting 'python3.6-2to3' for regex 'python3.6'

Note, selecting 'libpython3.6-stdlib' for regex 'python3.6'

The following packages were automatically installed and are no longer required:

fonts-liberation2 fonts-opensymbol gir1.2-geocodeglib-1.0

gir1.2-gst-plugins-base-1.0 gir1.2-gstreamer-1.0 gir1.2-gudev-1.0

gir1.2-udisks-2.0 grilo-plugins-0.3-base gstreamer1.0-gtk3 guile-2.2-libs

libboost-date-time1.67.0 libboost-filesystem1.67.0 libboost-iostreams1.67.0

libboost-locale1.67.0 libcdr-0.1-1 libclucene-contribs1v5 libclucene-core1v5

libcmis-0.5-5v5 libcolamd2 libcurl4 libdazzle-1.0-0 libe-book-0.1-1 libeot0

libepubgen-0.1-1 libetonyek-0.1-1 libevent-2.1-6 libfreerdp-client2-2

libfreerdp2-2 libgc1c2 libgee-0.8-2 libgom-1.0-0 libgpgmepp6 libgpod-common

libgpod4 liblangtag-common liblangtag1 liblirc-client0 liblua5.3-0

libmediaart-2.0-0 libminiupnpc17 libmspub-0.1-1 libodfgen-0.1-1

liborcus-0.14-0 libqqwing2v5 libraw19 librevenge-0.0-0 libsgutils2-2

libsuitesparseconfig5 libvncclient1 libwinpr2-2 libxmlsec1 libxmlsec1-nss

lp-solve media-player-info python3-mako python3-markupsafe syslinux

syslinux-common syslinux-legacy usb-creator-common

Use 'sudo apt autoremove' to remove them.

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

milano@milano-desktop:~$ python3.6

Command 'python3.6' not found, did you mean:

command 'python3.8' from deb python3.8-minimal (3.8.0~a3-2)

command 'python3.7' from deb python3.7-minimal (3.7.3-2)

Try: sudo apt install

Python3+選項卡milano@milano-desktop:~$ python3

python3 python3.7 python3.7m python3m

死蛇milano@milano-desktop:~$ sudo add-apt-repository ppa:deadsnakes/ppa

This PPA contains more recent Python versions packaged for Ubuntu.

Disclaimer: there's no guarantee of timely updates in case of security problems or other issues. If you want to use them in a security-or-otherwise-critical environment (say, on a production server), you do so at your own risk.

Update Note

===========

Please use this repository instead of ppa:fkrull/deadsnakes.

Reporting Issues

================

Issues can be reported in the master issue tracker at:

https://github.com/deadsnakes/issues/issues

Supported Ubuntu and Python Versions

====================================

Python 3.6 - Ubuntu 14.04, Ubuntu 16.04

For Ubuntu up to 18.04, there's also packages for old Python versions from 2.3 to 3.4.

The packages may also work on other versions of Ubuntu or Debian, but that is not tested or supported.

Third-Party Python Modules

==========================

Python modules in the official Ubuntu repositories are packaged to work with the Python interpreters from the official repositories. Accordingly, they generally won't work with the Python interpreters from this PPA. As an exception, pure-Python modules for Python 3 will work, but any compiled extension modules won't.

To install 3rd-party Python modules, you should use the common Python packaging tools. For an introduction into the Python packaging ecosystem and its tools, refer to the Python Packaging User Guide:

https://packaging.python.org/installing/

Sources

=======

The package sources are available at:

https://github.com/deadsnakes/

More info: https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa

Press [ENTER] to continue or Ctrl-c to cancel adding it.

Hit:1 http://cz.archive.ubuntu.com/ubuntu disco InRelease

Ign:2 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu disco InRelease

Get:3 http://cz.archive.ubuntu.com/ubuntu disco-updates InRelease [88,4 kB]

Hit:4 http://security.ubuntu.com/ubuntu disco-security InRelease

Hit:5 http://cz.archive.ubuntu.com/ubuntu disco-backports InRelease

Ign:6 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu disco InRelease

Err:7 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu disco Release

404 Not Found [IP: 91.189.95.83 80]

Err:8 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu disco Release

404 Not Found [IP: 91.189.95.83 80]

Reading package lists... Done

E: The repository 'http://ppa.launchpad.net/deadsnakes/ppa/ubuntu disco Release' does not have a Release file.

N: Updating from such a repository can't be done securely, and is therefore disabled by default.

N: See apt-secure(8) manpage for repository creation and user configuration details.

E: The repository 'http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu disco Release' does not have a Release file.

N: Updating from such a repository can't be done securely, and is therefore disabled by default.

N: See apt-secure(8) manpage for repository creation and user configuration details.

總結

以上是生活随笔為你收集整理的ubuntu安装python3.6_如何在Ubuntu19.04上安装Python3.6?的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。