【问题标题】:Cannot install Python 3x on Debian Apache 2. Tried Wheezy and Jessie无法在 Debian Apache 2 上安装 Python 3x。试过 Wheezy 和 Jessie
【发布时间】:2016-09-07 01:33:17
【问题描述】:

好吧,我放弃了。我在以前的(喘不过气的)构建中安装了 python 2.7。 Python 2.7 对我没有好处。我需要 3.x。 Python 3.4.2 在 Debian 上运行正常,但在 Debian 上的 Apache 2 上运行不正常。我需要它来运行以构建 Web 应用程序。

我已经在 Google 上尝试了所有与 Debian 和 Ubunto 相关的东西。没有任何效果,但是随着每次更改,我的系统都会变得更糟。这是最新的输出:

root@debian:~# sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  debconf python-imaging python-pil
Suggested packages:
  debconf-doc debconf-utils libterm-readline-gnu-perl libnet-ldap-perl libqtgui4-perl libqtcore4-perl
  python-pil-doc python-pil-dbg
The following packages will be upgraded:
  debconf python-imaging python-pil
3 upgraded, 0 newly installed, 0 to remove and 1337 not upgraded.
25 not fully installed or removed.
Need to get 0 B/564 kB of archives.
After this operation, 122 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
/bin/sh: 1: /usr/bin/apt-listchanges: not found
Preconfiguring packages ...
(Reading database ... 144560 files and directories currently installed.)
Preparing to unpack .../debconf_1.5.59_all.deb ...
  File "/usr/bin/pyclean", line 63
    except (IOError, OSError), e:
                             ^
SyntaxError: invalid syntax
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
  File "/usr/bin/pyclean", line 63
    except (IOError, OSError), e:
                             ^
SyntaxError: invalid syntax
dpkg: error processing archive /var/cache/apt/archives/debconf_1.5.59_all.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
Traceback (most recent call last):
  File "/usr/bin/pycompile", line 35, in <module>
    from debpython.version import SUPPORTED, debsorted, vrepr, \
  File "/usr/share/python/debpython/version.py", line 24, in <module>
    from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/debconf_1.5.59_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

我试过sudo apt-get install -f 我试过了 sudo apt-get clean $ sudo apt-get install -f $ sudo apt-get update 和一个配置。

有没有人让 Python 3 在 Any Debian 上运行在 Apache 2 上?

btw /usr/bin/apt-listchanges: not found 是因为我多管闲事。是的,我开始插手了,这很糟糕。

【问题讨论】:

    标签: python apache debian


    【解决方案1】:

    您是否尝试过使用 Anaconda Python 发行版?

    这样的事情可能会有所帮助,来自helpful article

    $ wget http://repo.continuum.io/miniconda/Miniconda-3.5.5-Linux-armv6l.sh
    $ md5sum Miniconda-3.5.5-Linux-armv6l.sh
    2f37cb775ec3e482280a7bd6b97ee501
    $ /bin/bash Miniconda-3.5.5-Linux-armv6l.sh
    

    【讨论】:

    猜你喜欢
    • 2016-12-08
    • 1970-01-01
    • 2015-10-06
    • 2018-03-22
    • 2015-12-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多