AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1310469
Accepted
ubuntuuser
ubuntuuser
Asked: 2021-01-24 12:13:54 +0800 CST2021-01-24 12:13:54 +0800 CST 2021-01-24 12:13:54 +0800 CST

whereis python3 给出了几个路径

  • 772

我想知道在修复一些问题时是否已经通过几个操作安装了 python3“乘法”。whereis python3在我的 ubuntu 18.04 中输入

python3: /usr/bin/python3.6m /usr/bin/python3.6-config /usr/bin/python3.6m-config /usr/bin/python3.6 /usr/bin/python3 /usr/lib/python3 .7 /usr/lib/python3.6 /usr/lib/python3 /usr/lib/python3.8 /etc/python3.4 /etc/python3.6 /etc/python3.5 /etc/python3 /usr/local /lib/python3.6 /usr/local/lib/python3.5 /usr/include/python3.6m /usr/include/python3.6 /usr/share/python3 /usr/share/man/man1/python3.1 .gz

我必须删除一些东西吗?

顺便说一句: python3 --version给

蟒蛇 3.6.9

编辑:dpkg -l | grep python3.[0-9]给

rc  libpython3.4:amd64                            3.4.3-1ubuntu1~14.04.3                           amd64        Shared Python runtime library (version 3.4)
rc  libpython3.4-minimal:amd64                    3.4.3-1ubuntu1~14.04.3                           amd64        Minimal subset of the Python language (version 3.4)
rc  libpython3.5-minimal:amd64                    3.5.2-2ubuntu0~16.04.12                          amd64        Minimal subset of the Python language (version 3.5)
ii  libpython3.6:amd64                            3.6.9-1~18.04ubuntu1.3                           amd64        Shared Python runtime library (version 3.6)
ii  libpython3.6-dev:amd64                        3.6.9-1~18.04ubuntu1.3                           amd64        Header files and a static library for Python (v3.6)
ii  libpython3.6-minimal:amd64                    3.6.9-1~18.04ubuntu1.3                           amd64        Minimal subset of the Python language (version 3.6)
ii  libpython3.6-stdlib:amd64                     3.6.9-1~18.04ubuntu1.3                           amd64        Interactive high-level object-oriented language (standard library, version 3.6)
rc  python3.4                                     3.4.3-1ubuntu1~14.04.3                           amd64        Interactive high-level object-oriented language (version 3.4)
rc  python3.4-minimal                             3.4.3-1ubuntu1~14.04.3                           amd64        Minimal subset of the Python language (version 3.4)
rc  python3.5-minimal                             3.5.2-2ubuntu0~16.04.12                          amd64        Minimal subset of the Python language (version 3.5)
ii  python3.6                                     3.6.9-1~18.04ubuntu1.3                           amd64        Interactive high-level object-oriented language (version 3.6)
ii  python3.6-dev                                 3.6.9-1~18.04ubuntu1.3                           amd64        Header files and a static library for Python (v3.6)
ii  python3.6-minimal                             3.6.9-1~18.04ubuntu1.3                           amd64        Minimal subset of the Python language (version 3.6)

并apt-cache policy texlive-latex-base texlive-binaries 给出

texlive-latex-base:
  Installiert:           2017.20180305-1
  Installationskandidat: 2017.20180305-1
  Versionstabelle:
 *** 2017.20180305-1 500
        500 http://de.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
        500 http://de.archive.ubuntu.com/ubuntu bionic/main i386 Packages
        100 /var/lib/dpkg/status
texlive-binaries:
  Installiert:           2017.20170613.44572-8ubuntu0.1
  Installationskandidat: 2017.20170613.44572-8ubuntu0.1
  Versionstabelle:
 *** 2017.20170613.44572-8ubuntu0.1 500
        500 http://de.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
        500 http://de.archive.ubuntu.com/ubuntu bionic-security/main amd64 Packages
        100 /var/lib/dpkg/status
     2017.20170613.44572-8build1 500
        500 http://de.archive.ubuntu.com/ubuntu bionic/main amd64 Packages

pdftex -v并且pdflatex -v都给

pdfTeX 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian)
kpathsea version 6.2.3
Copyright 2017 Han The Thanh (pdfTeX) et al.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Han The Thanh (pdfTeX) et al.
Compiled with libpng 1.6.34; using libpng 1.6.34
Compiled with zlib 1.2.11; using zlib 1.2.11
Compiled with poppler version 0.62.0
python3
  • 1 1 个回答
  • 336 Views

1 个回答

  • Voted
  1. Best Answer
    N0rbert
    2021-01-25T00:04:23+08:002021-01-25T00:04:23+08:00

    由于您有一些 16.04 LTS 的剩余部分,因此您必须删除其 Python 包:

    sudo apt-get purge libpython3.4:amd64 libpython3.4-minimal:amd64 libpython3.5-minimal:amd64 python3.4 python3.4-minimal python3.5-minimal
    

    然后删除准备好自动删除的包:

    sudo apt-get autoremove --purge
    

    你的输出是正常的。在我的 Ubuntu MATE 18.04.5 LTS 系统上,我有:

    python3: /usr/bin/python3.6m /usr/bin/python3 /usr/bin/python3.6 /usr/bin/python3.6m-config /usr/bin/python3.6-config /usr/lib/python3 /usr/lib/python3.6 /usr/lib/python3.5 /usr/lib/python3.8 /usr/lib/python3.7 /etc/python3 /etc/python3.6 /usr/local/lib/python3.6 /usr/include/python3.6m /usr/include/python3.6 /usr/share/python3 /usr/share/man/man1/python3.1.gz

    它工作正常。

    所以我从存储库安装了 Python 3。中的 python 文件夹/usr/local是由 创建的pip3,所以它们也是安全的。

    • 1

相关问题

  • 运行打印命令时出现 Python 3 错误

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve