ChinaUnix.net
相关文章推荐:

No module named cElementTree

我的是centos系统,在apache上部署python的程序,启动正常,可以浏览页面的时候出现错误:Internal Server Error 查看apache错误日志,日志如下: [client 192.168.1.89] mod_wsgi (pid=4561): Target WSGI script '/var/web/chan.py' cannot be loaded as Python module. [client 192.168.1.89] mod_wsgi (pid=4561): Exception occurred processing WSGI script '/var/web/chan.py'. Traceback (most recent call last): File ...

by enmingma - Python - 2011-10-26 21:30:20 阅读(6855) 回复(1)

CentOspython

相关讨论

装了lxml库 在终端命令行运行Python >>> import lxml.html as HTML 不会报错 ------------------- 但在某个目录写py文件里导入 import lxml.html as HTML 运行就会报 ImportError: No module named html 请问是不是lxml安装路径没有添加的原因,路径该怎么添加,谢谢

by ubuntu_mark - Python - 2011-06-20 17:10:44 阅读(9063) 回复(3)

开始学python,现在有个问题。 ImportError: No module named Tkinter。 是我运行一个例子时产生的,是缺少Tkinter模块吗,请问高手怎么解决?是需要安装Tkinter吗? 例子源码: from Tkinter import * def frame(root,side): w=Frame(root) w.pack(side=side,expand=YES,fill=BOTH) return w def button(root,side,text,command=None): w=Button(root,text=text,command=command) w.pack(side=side,expand=YES,fill=BOTH)...

by yiteng - Python - 2009-08-02 15:26:00 阅读(20656) 回复(10)

root@user-desktop:~/linux_test_new/maketest# g2p.py --train train.lex --devel 5% --write-model model-1 Traceback (most recent call last): File "/usr/local/bin/g2p.py", line 38, in <module> import SequiturTool File "/usr/local/lib/python2.5/site-packages/SequiturTool.py", line 34, in <module> from sequitur import Sequitur, ModelTemplate, DefaultDiscountAdjuster, StaticDiscounts, FixedDi...

by cooloves - Python - 2009-08-04 11:24:11 阅读(2437) 回复(2)

No module named yum ##################################################### 今天突然想用yum升级个软件包,发现yum没有安装,下了yum2.4的包,安装后发现yum不能用 [root@mysqls3 ~]# yum There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: No module named yum Please install a package which provides this module, or verify that the module...

by konds - Linux系统管理 - 2008-07-04 15:37:21 阅读(9153) 回复(0)

Traceback (most recent call last): File "D:\Python25\Scripts\newtest\manage.py", line 11, in module> execute_manager(settings) File "D:\Python25\Lib\site-packages\django\core\management.py", line 1672, in execute_manager execute_from_command_line(action_mapping, argv) File "D:\Python25\Lib\site-packages\django\core\management.py", line 1571, in execute_from_command_line action_m...

by yukunming - Python文档中心 - 2008-04-22 00:05:57 阅读(2357) 回复(0)

大家好: 刚开始学python, 安装了一个module,想测试一下,windows上,结果出现了下列错误。 python version : 2.51 Traceback (most recent call last): File "openxcap", line 12, in <module> from application.process import process, ProcessError File "C:\Program Files\python2\Lib\site-packages\application\process.py", lin 12, in <module> from application import log File "C:\Program Files\pyt...

by hunter006 - Python - 2007-12-11 15:57:37 阅读(3389) 回复(1)

使用ngxtop后 ngxtop -t 1 -l access.log Traceback (most recent call last): File "/usr/bin/ngxtop", line 7, in <module> from ngxtop.ngxtop import main File "/usr/local/python2.7/lib/python2.7/site-packages/ngxtop/ngxtop.py", line 61, in <module> import curses File "/usr/local/python2.7/lib/python2.7/curses/__init__.py", line 15, in <module> from _curses import * ImportError: No mod...

by chichushanren - Python - 2014-09-09 09:32:00 阅读(6519) 回复(5)

本帖最后由 anselmiao 于 2013-08-15 09:18 编辑 楼主新手,用wxpython编写用户界面时,遇到了一些问题,跪求大神指教。 程序import unittest import modelExample import wx ....... 可是,程序运行时出现——No module named modelExample。(如图所示) :em02: 这是为什么呢?求指教。。。

by anselmiao - Python - 2013-08-15 21:05:54 阅读(4686) 回复(3)

本帖最后由 gron 于 2012-05-07 17:20 编辑 ansible 安装 一、环境: 系统:centos 5.4_64 bit 系统集成:python2.4 python 安装要求: •python26 •python26-paramiko •python26-PyYAML •python26-python-jinja2 •python26-python-simplejson •python26-virtualenv 二、安装 1、安装2.6版本的python yum -y install python26 python26-PyYAML python26-paramiko python26-jinja2 ...

by gron - Python - 2012-05-07 15:57:46 阅读(26283) 回复(13)

>>> import cherrypy Traceback (most recent call last): File "", line 1, in <module> File "/data/software/python-2.5.4/lib/python2.5/site-packages/cherrypy/__init__.py", line 161, in <module> from cherrypy import _cptools File "/data/software/python-2.5.4//lib/python2.5/site-packages/cherrypy/_cptools.py", line 226, in <module> from cherrypy.lib import cptools, encoding, auth, ...

by baoyu05 - Python - 2011-11-09 14:54:15 阅读(3267) 回复(4)