草庐IT

nick_name

全部标签

python - 更新 : No module named virtualenvwrapper 后 python 和 virtualenvwrapper 出现问题

我在ubuntu14.04下使用virtualenv、virtualenvwrapper运行python2.7.6。现在我已经从源代码安装了python2.7.9。新的python解释器现在位于/usr/local/bin下,但旧的解释器似乎也位于/usr/bin下。如果我运行pythonshell,它会显示python2.7.9。但如果我使用mkvirtualenvvenv我会收到以下消息。Newpythonexecutableinvenv/bin/pythonInstallingsetuptools,pip...done.Blockquote/usr/local/bin/pytho

Python Django : No module named security

当我使用virtualenv在Ubuntu服务器上部署我的项目时,我收到了这个错误:[17/Sep/201422:29:00]"GET/HTTP/1.1"50059Traceback(mostrecentcalllast):File"/usr/lib/python2.7/wsgiref/handlers.py",line85,inrunself.result=application(self.environ,self.start_response)File"/home/zat42/myproject/monarch/env/local/lib/python2.7/site-packag

Python Django : No module named security

当我使用virtualenv在Ubuntu服务器上部署我的项目时,我收到了这个错误:[17/Sep/201422:29:00]"GET/HTTP/1.1"50059Traceback(mostrecentcalllast):File"/usr/lib/python2.7/wsgiref/handlers.py",line85,inrunself.result=application(self.environ,self.start_response)File"/home/zat42/myproject/monarch/env/local/lib/python2.7/site-packag

python - 导入错误 : No module named jinja2

使用google-app-engine教程,我收到以下错误堆栈消息:Traceback(mostrecentcalllast):File"C:\ProgramFiles(x86)\Google\google_appengine\google\appengine\runtime\wsgi.py",line239,inHandlehandler=_config_handle.add_wsgi_middleware(self._LoadHandler())File"C:\ProgramFiles(x86)\Google\google_appengine\google\appengine\ru

python - 导入错误 : No module named jinja2

使用google-app-engine教程,我收到以下错误堆栈消息:Traceback(mostrecentcalllast):File"C:\ProgramFiles(x86)\Google\google_appengine\google\appengine\runtime\wsgi.py",line239,inHandlehandler=_config_handle.add_wsgi_middleware(self._LoadHandler())File"C:\ProgramFiles(x86)\Google\google_appengine\google\appengine\ru

python - Pillow 已安装,但导入时出现 "no module named pillow"

我安装了Pillow包:python-mpipinstallpillow得到成功消息(成功安装枕头)。关闭并重新打开终端。但是当我尝试:importpillow我收到错误消息:ImportError:Nomodulenamedpillow如果python-mpipinstall枕头再次运行,它会说Requirementalreadysatisfied(use--upgradetoupgrade):pillowinc:\python27\lib\site-packages 最佳答案 尝试使用importPIL或fromPILimpor

python - Pillow 已安装,但导入时出现 "no module named pillow"

我安装了Pillow包:python-mpipinstallpillow得到成功消息(成功安装枕头)。关闭并重新打开终端。但是当我尝试:importpillow我收到错误消息:ImportError:Nomodulenamedpillow如果python-mpipinstall枕头再次运行,它会说Requirementalreadysatisfied(use--upgradetoupgrade):pillowinc:\python27\lib\site-packages 最佳答案 尝试使用importPIL或fromPILimpor

python - 无法启动 Carbon - 12.04 - Python 错误 - ImportError : cannot import name daemonize

我真的希望有人能帮助我,因为我已经花了至少15个小时来解决这个问题。潜在雇主给了我一项任务,我的解决方案是使用Graphite/碳/收集。我正在尝试运行和安装碳/Graphite0.9.12,但我根本无法启动碳。每次我尝试启动碳时,都会出现以下错误。我正在使用bash脚本进行安装以保持一切一致。我根本不了解python,所以如果你能提供任何帮助,我将不胜感激。/etc/rc0.d/K20carbon-cache->../init.d/carbon-cache/etc/rc1.d/K20carbon-cache->../init.d/carbon-cache/etc/rc6.d/K20c

python - 无法启动 Carbon - 12.04 - Python 错误 - ImportError : cannot import name daemonize

我真的希望有人能帮助我,因为我已经花了至少15个小时来解决这个问题。潜在雇主给了我一项任务,我的解决方案是使用Graphite/碳/收集。我正在尝试运行和安装碳/Graphite0.9.12,但我根本无法启动碳。每次我尝试启动碳时,都会出现以下错误。我正在使用bash脚本进行安装以保持一切一致。我根本不了解python,所以如果你能提供任何帮助,我将不胜感激。/etc/rc0.d/K20carbon-cache->../init.d/carbon-cache/etc/rc1.d/K20carbon-cache->../init.d/carbon-cache/etc/rc6.d/K20c

python - 导入错误 : cannot import name 'webdriver'

我是seleniumpython的新手。我已经安装了python、pip等。我正在尝试运行以下代码,但它显示错误:ImportError:cannotimportname'webdriver'fromseleniumimportwebdriverfromselenium.webdriver.common.keysimportKeysdriver=webdriver.Firefox()driver.get("http://www.python.org")谁能解决这个问题? 最佳答案 如果您的文件名为selenium.py,请将其更改为