简体   繁体   English

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

[英]Cannot install Python 3x on Debian Apache 2. Tried Wheezy and Jessie

Ok I give up. 好吧,我放弃。 I have had python 2.7 installed at one point on a previous (wheezy) build. 我已经在以前的(轻声)构建中的某个时刻安装了python 2.7。 Python 2.7 is no good to me. Python 2.7对我不好。 I need 3.x. 我需要3.x。 Python 3.4.2 runs ok on Debian, but not on Apache 2 on Debian. Python 3.4.2可以在Debian上正常运行,但不能在Debian上的Apache 2上运行。 I need it to run to build web applications. 我需要运行它来构建Web应用程序。

I have tried everything on Google that is Debian and Ubunto related. 我已经在Google上尝试了所有与Debian和Ubunto相关的内容。 Nothing works, but with every change my system gets worse. 没有任何效果,但是随着每一次更改,我的系统都会变得更糟。 Here is the latest output: 这是最新的输出:

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)

I have tried sudo apt-get install -f and I have tried sudo apt-get clean $ sudo apt-get install -f $ sudo apt-get update and a configure one. 我已经尝试了sudo apt-get install -f和我已经尝试过sudo apt-get clean $ sudo apt-get install -f $ sudo apt-get update和一个配置。

Has anyone got Python 3 working on Apache 2 on Any Debian? 有人让Python 3在Any Debian上的Apache 2上工作吗?

btw /usr/bin/apt-listchanges: not found is due to me meddling. btw /usr/bin/apt-listchanges: not found是由于我干预。 Yes, I am starting to meddle and that is bad. 是的,我开始介入,那很不好。

Have you tried using the Anaconda Python distribution? 您是否尝试过使用Anaconda Python发行版?

Something like this may help, from this 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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM