无法在Debian Apache 2上安装Python 3x。试过Wheezy和Jessie

时间:2016-05-11 14:49:12

标签: python apache debian

好的,我放弃了。我曾经在之前(wheezy)构建中安装了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和configure one。

有没有人让Python 3在任何Debian上使用Apache 2?

btw /usr/bin/apt-listchanges: not found是由于我干涉。是的,我开始干涉,这很糟糕。

1 个答案:

答案 0 :(得分:0)

您是否尝试过使用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
相关问题