小南洲 2024-03-19 13:59 采纳率: 0%
浏览 11

有偿安装一个python3.7

求一个帮忙在linux上安装python3.7
环境是这样的
Linux raspberrypi 6.1.0-rpi7-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.63-1+rpt1 (2023-11-24) aarch64 GNU/Linux

原本是3.11版本,但是想回退到3.7,在安装的时候卡了好多地方没明白

比如说配置安装环境就这样

 sudo apt install libffi-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 apt : Depends: adduser but it is not going to be installed
       Depends: gpgv or
                gpgv2 but it is not going to be installed or
                gpgv1
       Depends: libapt-pkg6.0 (>= 2.6.1) but it is not going to be installed
       Depends: libc6 (>= 2.34) but it is not installable
       Depends: libgnutls30 (>= 3.7.5) but it is not going to be installed
       Depends: libseccomp2 (>= 2.4.2) but it is not going to be installed
       Depends: libstdc++6 (>= 11) but it is not going to be installed
       Depends: libsystemd0 but it is not going to be installed
       Recommends: ca-certificates but it is not going to be installed
 base-files : PreDepends: awk
 base-passwd : Depends: libc6 (>= 2.34) but it is not installable
               Depends: libdebconfclient0 (>= 0.145) but it is not going to be installed
               Depends: libselinux1 (>= 3.1~) but it is not going to be installed
 bash : PreDepends: libc6 (>= 2.36) but it is not installable
        PreDepends: libtinfo6 (>= 6) but it is not going to be installed
 bsdutils : PreDepends: libc6 (>= 2.34) but it is not installable
            PreDepends: libsystemd0 but it is not going to be installed
            Recommends: bsdextrautils
 coreutils : PreDepends: libacl1 (>= 2.2.23) but it is not going to be installed
             PreDepends: libattr1 (>= 1:2.4.44) but it is not going to be installed
             PreDepends: libc6 (>= 2.34) but it is not installable
             PreDepends: libgmp10 (>= 2:6.2.1+dfsg1) but it is not going to be installed
             PreDepends: libselinux1 (>= 3.1~) but it is not going to be installed
 dash : PreDepends: libc6 (>= 2.34) but it is not installable
 debianutils : PreDepends: libc6 (>= 2.34) but it is not installable
 diffutils : PreDepends: libc6 (>= 2.34) but it is not installable
 dpkg : PreDepends: libbz2-1.0 but it is not going to be installed
        PreDepends: libc6 (>= 2.34) but it is not installable
        PreDepends: liblzma5 (>= 5.4.0) but it is not going to be installed
        PreDepends: libmd0 (>= 0.0.0) but it is not going to be installed
        PreDepends: libselinux1 (>= 3.1~) but it is not going to be installed
        PreDepends: libzstd1 (>= 1.5.2) but it is not going to be installed
        PreDepends: zlib1g (>= 1:1.1.4) but it is not going to be installed
 e2fsprogs : PreDepends: libblkid1 (>= 2.36) but it is not going to be installed
             PreDepends: libc6 (>= 2.34) but it is not installable
             PreDepends: libcom-err2 (>= 1.43.9) but it is not going to be installed
             PreDepends: libext2fs2 (= 1.47.0-2) but it is not going to be installed
             PreDepends: libss2 (>= 1.38) but it is not going to be installed
             PreDepends: libuuid1 (>= 2.16) but it is not going to be installed
             Depends: logsave
             Recommends: e2fsprogs-l10n but it is not going to be installed
 findutils : PreDepends: libc6 (>= 2.34) but it is not installable
             PreDepends: libselinux1 (>= 3.1~) but it is not going to be installed
 grep : PreDepends: libc6 (>= 2.34) but it is not installable
        PreDepends: libpcre2-8-0 (>= 10.32) but it is not going to be installed
 gzip : PreDepends: libc6 (>= 2.33) but it is not installable
 hostname : PreDepends: libc6 (>= 2.34) but it is not installable
 init : PreDepends: systemd-sysv or
                    sysvinit-core but it is not installable
 init-system-helpers : Depends: usrmerge but it is not going to be installed or
                                usr-is-merged
 libc-bin : Depends: libc6 (> 2.36) but it is not installable
            Depends: libc6 (< 2.37) but it is not installable
 libcrypt1:armhf : Breaks: libcrypt1 (!= 1:4.4.18-4) but 1:4.4.33-2 is to be installed
 libcrypt1 : Depends: libc6 (>= 2.36) but it is not installable
             Breaks: libcrypt1:armhf (!= 1:4.4.33-2) but 1:4.4.18-4 is to be installed
 libgcc-s1:armhf : Breaks: libgcc-s1 (!= 10.2.1-6+rpi1) but 12.2.0-14 is to be installed
 libgcc-s1 : Depends: libc6 (>= 2.35) but it is not installable
             Breaks: libgcc-s1:armhf (!= 12.2.0-14) but 10.2.1-6+rpi1 is to be installed
 login : PreDepends: libaudit1 (>= 1:2.2.1) but it is not going to be installed
         PreDepends: libc6 (>= 2.34) but it is not installable
         PreDepends: libpam0g (>= 0.99.7.1) but it is not going to be installed
         PreDepends: libpam-runtime but it is not going to be installed
         PreDepends: libpam-modules but it is not going to be installed
 ncurses-bin : PreDepends: libc6 (>= 2.34) but it is not installable
               PreDepends: libtinfo6 (>= 6.3) but it is not going to be installed
 perl-base : PreDepends: libc6 (>= 2.35) but it is not installable
 sed : PreDepends: libacl1 (>= 2.2.23) but it is not going to be installed
       PreDepends: libc6 (>= 2.34) but it is not installable
       PreDepends: libselinux1 (>= 3.1~) but it is not going to be installed
 sysvinit-utils : Depends: libc6 (>= 2.34) but it is not installable
 tar : PreDepends: libacl1 (>= 2.2.23) but it is not going to be installed
       PreDepends: libc6 (>= 2.34) but it is not installable
       PreDepends: libselinux1 (>= 3.1~) but it is not going to be installed
 util-linux : PreDepends: libblkid1 (>= 2.37.2) but it is not going to be installed
              PreDepends: libc6 (>= 2.34) but it is not installable
              PreDepends: libcap-ng0 (>= 0.7.9) but it is not going to be installed
              PreDepends: libmount1 (>= 2.38) but it is not going to be installed
              PreDepends: libpam0g (>= 0.99.7.1) but it is not going to be installed
              PreDepends: libselinux1 (>= 3.1~) but it is not going to be installed
              PreDepends: libsmartcols1 (>= 2.38) but it is not going to be installed
              PreDepends: libsystemd0 but it is not going to be installed
              PreDepends: libtinfo6 (>= 6) but it is not going to be installed
              PreDepends: libudev1 (>= 183) but it is not going to be installed
              PreDepends: libuuid1 (>= 2.16) but it is not going to be installed
              PreDepends: zlib1g (>= 1:1.1.4) but it is not going to be installed
              Depends: util-linux-extra but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.


  • 写回答

3条回答 默认 最新

  • 码农阿豪 Java领域优质创作者 2024-03-19 13:59
    关注
    让阿豪来帮你解答,本回答参考chatgpt3.5编写提供,如果还有疑问可以评论或留言
    第一步:更新apt-get sudo apt-get update sudo apt-get upgrade 第二步:安装依赖库 sudo apt-get install build-essential checkinstall sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev 第三步:下载Python并编译安装 wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz tar xvf Python-3.7.0.tgz cd Python-3.7.0 ./configure make sudo make install 如上代码就可以在Linux上成功安装Python 3.7版本。
    评论

报告相同问题?

问题事件

  • 创建了问题 3月19日

悬赏问题

  • ¥15 CST仿真别人的模型结果仿真结果S参数完全不对
  • ¥15 误删注册表文件致win10无法开启
  • ¥15 请问在阿里云服务器中怎么利用数据库制作网站
  • ¥60 ESP32怎么烧录自启动程序
  • ¥50 html2canvas超出滚动条不显示
  • ¥15 java业务性能问题求解(sql,业务设计相关)
  • ¥15 52810 尾椎c三个a 写蓝牙地址
  • ¥15 elmos524.33 eeprom的读写问题
  • ¥15 用ADS设计一款的射频功率放大器
  • ¥15 怎么求交点连线的理论解?