- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
python py-6ren">
我正在尝试运行 "hello world" application适用于 Pyramid Web 框架,但出现以下错误。有人可以告诉我我需要安装什么吗?谢谢
C:\Python27>python pyramid_hello.py
Traceback (most recent call last):
File "pyramid_hello.py", line 2, in <module>
from pyramid.config import Configurator
File "C:\Python27\lib\site-packages\pyramid-1.5-py2.7.egg\pyramid\config\__init__.py", line 11, in <module>
from pyramid.interfaces import (
File "C:\Python27\lib\site-packages\pyramid-1.5-py2.7.egg\pyramid\interfaces.py", line 1, in <module>
from zope.deprecation import deprecated
ImportError: No module named deprecation
C:\Python27>pip install zope
Downloading/unpacking zope
Could not find any downloads that satisfy the requirement zope
No distributions at all found for zope
Storing complete log in C:\Users\Tracy\pip\pip.log
C:\Python27>pip install zope.deprecation
Requirement already satisfied (use --upgrade to upgrade): zope.deprecation in c:\python27\lib\site-packages\zope.deprecation-4.1.1-py2.7.egg
Requirement already satisfied (use --upgrade to upgrade): distribute in c:\python27\lib\site-packages\distribute-0.6.26-py2.7.egg (from zope.deprecation)
Cleaning up...
C:\Python27>pip install zope.deprecation --upgrade
Requirement already up-to-date: zope.deprecation in c:\python27\lib\site-packages\zope.deprecation-4.1.1-py2.7.egg
Downloading/unpacking distribute from https://pypi.python.org/packages/source/d/distribute/distribute-0.7.3.zip#md5=c6c59594a7b180af57af8a0cc0cf5b4a (from zope.deprecation)
Downloading distribute-0.7.3.zip (145kB): 145kB downloaded
Running setup.py egg_info for package distribute
Downloading/unpacking setuptools>=0.7 (from distribute->zope.deprecation)
Downloading setuptools-3.4.4.tar.gz (794kB): 794kB downloaded
Running setup.py egg_info for package setuptools
Installing collected packages: distribute, setuptools
Found existing installation: distribute 0.6.26
Uninstalling distribute:
Successfully uninstalled distribute
Running setup.py install for distribute
Found existing installation: distribute 0.6.26
Can't uninstall 'distribute'. No files were found to uninstall.
Running setup.py install for setuptools
Installing easy_install-script.py script to C:\Python27\Scripts
Installing easy_install.exe script to C:\Python27\Scripts
Installing easy_install.exe.manifest script to C:\Python27\Scripts
Installing easy_install-2.7-script.py script to C:\Python27\Scripts
Installing easy_install-2.7.exe script to C:\Python27\Scripts
Installing easy_install-2.7.exe.manifest script to C:\Python27\Scripts
Successfully installed distribute setuptools
Cleaning up...
C:\Python27>python pyramid_hello.py
Traceback (most recent call last):
File "pyramid_hello.py", line 2, in <module>
from pyramid.config import Configurator
File "C:\Python27\lib\site-packages\pyramid-1.5-py2.7.egg\pyramid\config\__init__.py", line 11, in <module>
from pyramid.interfaces import (
File "C:\Python27\lib\site-packages\pyramid-1.5-py2.7.egg\pyramid\interfaces.py", line 1, in <module>
from zope.deprecation import deprecated
ImportError: No module named deprecation
C:\Python27>pip install deprecation
Downloading/unpacking deprecation
Could not find any downloads that satisfy the requirement deprecation
No distributions at all found for deprecation
Storing complete log in C:\Users\Tracy\pip\pip.log
使用虚拟环境:
C:\Python27>easy_install virtualenv
Searching for virtualenv
Reading https://pypi.python.org/simple/virtualenv/
Best match: virtualenv 1.11.4
Downloading https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.11.4.tar.gz#md5=9accc2d3f0ec1da479ce2c3d1fdff06e
Processing virtualenv-1.11.4.tar.gz
Writing c:\users\tracy\appdata\local\temp\easy_install-o3mttl\virtualenv-1.11.4\setup.cfg
Running virtualenv-1.11.4\setup.py -q bdist_egg --dist-dir c:\users\tracy\appdata\local\temp\easy_install-o3mttl\virtualenv-1.11.4\egg-dist-tmp-qi3l26
warning: no previously-included files matching '*' found under directory 'docs\_templates'
warning: no previously-included files matching '*' found under directory 'docs\_build'
Adding virtualenv 1.11.4 to easy-install.pth file
Installing virtualenv-script.py script to C:\Python27\Scripts
Installing virtualenv.exe script to C:\Python27\Scripts
Installing virtualenv.exe.manifest script to C:\Python27\Scripts
Installing virtualenv-2.7-script.py script to C:\Python27\Scripts
Installing virtualenv-2.7.exe script to C:\Python27\Scripts
Installing virtualenv-2.7.exe.manifest script to C:\Python27\Scripts
Installed c:\python27\lib\site-packages\virtualenv-1.11.4-py2.7.egg
Processing dependencies for virtualenv
Finished processing dependencies for virtualenv
C:\Python27>set VENV=c:\env
C:\Python27>c:\Python27\Scripts\virtualenv %VENV%
New python executable in c:\env\Scripts\python.exe
Installing setuptools, pip...done.
C:\Python27>cd\
C:\>cd env
C:\env>%VENV%\Scripts\easy_install "pyramid==1.5"
Searching for pyramid==1.5
Reading https://pypi.python.org/simple/pyramid/
Best match: pyramid 1.5
Downloading https://pypi.python.org/packages/source/p/pyramid/pyramid-1.5.tar.gz#md5=8747658dcbab709a9c491e43d3b0d58b
Processing pyramid-1.5.tar.gz
Writing c:\users\tracy\appdata\local\temp\easy_install-_ci7js\pyramid-1.5\setup.cfg
Running pyramid-1.5\setup.py -q bdist_egg --dist-dir c:\users\tracy\appdata\local\temp\easy_install-_ci7js\pyramid-1.5\egg-dist-tmp-3di1fa
Adding pyramid 1.5 to easy-install.pth file
Installing ptweens-script.py script to c:\env\Scripts
Installing ptweens.exe script to c:\env\Scripts
Installing ptweens.exe.manifest script to c:\env\Scripts
Installing pdistreport-script.py script to c:\env\Scripts
Installing pdistreport.exe script to c:\env\Scripts
Installing pdistreport.exe.manifest script to c:\env\Scripts
Installing proutes-script.py script to c:\env\Scripts
Installing proutes.exe script to c:\env\Scripts
Installing proutes.exe.manifest script to c:\env\Scripts
Installing pshell-script.py script to c:\env\Scripts
Installing pshell.exe script to c:\env\Scripts
Installing pshell.exe.manifest script to c:\env\Scripts
Installing prequest-script.py script to c:\env\Scripts
Installing prequest.exe script to c:\env\Scripts
Installing prequest.exe.manifest script to c:\env\Scripts
Installing pviews-script.py script to c:\env\Scripts
Installing pviews.exe script to c:\env\Scripts
Installing pviews.exe.manifest script to c:\env\Scripts
Installing pcreate-script.py script to c:\env\Scripts
Installing pcreate.exe script to c:\env\Scripts
Installing pcreate.exe.manifest script to c:\env\Scripts
Installing pserve-script.py script to c:\env\Scripts
Installing pserve.exe script to c:\env\Scripts
Installing pserve.exe.manifest script to c:\env\Scripts
Installed c:\env\lib\site-packages\pyramid-1.5-py2.7.egg
Processing dependencies for pyramid==1.5
Searching for PasteDeploy>=1.5.0
Reading https://pypi.python.org/simple/PasteDeploy/
Best match: PasteDeploy 1.5.2
Downloading https://pypi.python.org/packages/source/P/PasteDeploy/PasteDeploy-1.5.2.tar.gz#md5=352b7205c78c8de4987578d19431af3b
Processing PasteDeploy-1.5.2.tar.gz
Writing c:\users\tracy\appdata\local\temp\easy_install-cfzau8\PasteDeploy-1.5.2\setup.cfg
Running PasteDeploy-1.5.2\setup.py -q bdist_egg --dist-dir c:\users\tracy\appdata\local\temp\easy_install-cfzau8\PasteDeploy-1.5.2\egg-dist-tmp-f7vrej
Adding pastedeploy 1.5.2 to easy-install.pth file
Installed c:\env\lib\site-packages\pastedeploy-1.5.2-py2.7.egg
Searching for translationstring>=0.4
Reading https://pypi.python.org/simple/translationstring/
Best match: translationstring 1.1
Downloading https://pypi.python.org/packages/source/t/translationstring/translationstring-1.1.tar.gz#md5=0979b46d8f0f852810c8ec4be5c26cf2
Processing translationstring-1.1.tar.gz
Writing c:\users\tracy\appdata\local\temp\easy_install-ekrgr1\translationstring-1.1\setup.cfg
Running translationstring-1.1\setup.py -q bdist_egg --dist-dir c:\users\tracy\appdata\local\temp\easy_install-ekrgr1\translationstring-1.1\egg-dist-tmp-o3xqh2
no previously-included directories found matching 'docs\_build'
Adding translationstring 1.1 to easy-install.pth file
Installed c:\env\lib\site-packages\translationstring-1.1-py2.7.egg
Searching for venusian>=1.0a3
Reading https://pypi.python.org/simple/venusian/
Best match: venusian 1.0a8
Downloading https://pypi.python.org/packages/source/v/venusian/venusian-1.0a8.tar.gz#md5=a1a72166fd7cccf0f30e3305e09ce5cf
Processing venusian-1.0a8.tar.gz
Writing c:\users\tracy\appdata\local\temp\easy_install-otkbse\venusian-1.0a8\setup.cfg
Running venusian-1.0a8\setup.py -q bdist_egg --dist-dir c:\users\tracy\appdata\local\temp\easy_install-otkbse\venusian-1.0a8\egg-dist-tmp-wxnee2
Adding venusian 1.0a8 to easy-install.pth file
Installed c:\env\lib\site-packages\venusian-1.0a8-py2.7.egg
Searching for zope.deprecation>=3.5.0
Reading https://pypi.python.org/simple/zope.deprecation/
Best match: zope.deprecation 4.1.1
Downloading https://pypi.python.org/packages/source/z/zope.deprecation/zope.deprecation-4.1.1.tar.gz#md5=ce261b9384066f7e13b63525778430cb
Processing zope.deprecation-4.1.1.tar.gz
Writing c:\users\tracy\appdata\local\temp\easy_install-vv7_t0\zope.deprecation-4.1.1\setup.cfg
Running zope.deprecation-4.1.1\setup.py -q bdist_egg --dist-dir c:\users\tracy\appdata\local\temp\easy_install-vv7_t0\zope.deprecation-4.1.1\egg-dist-tmp-g86gig
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
Adding zope.deprecation 4.1.1 to easy-install.pth file
Installed c:\env\lib\site-packages\zope.deprecation-4.1.1-py2.7.egg
Searching for zope.interface>=3.8.0
Reading https://pypi.python.org/simple/zope.interface/
Best match: zope.interface 4.1.1
Downloading https://pypi.python.org/packages/2.7/z/zope.interface/zope.interface-4.1.1-py2.7-win32.egg#md5=97fc757b020bb25b829f9c566d87c8c3
Processing zope.interface-4.1.1-py2.7-win32.egg
creating c:\env\lib\site-packages\zope.interface-4.1.1-py2.7-win32.egg
Extracting zope.interface-4.1.1-py2.7-win32.egg to c:\env\lib\site-packages
Adding zope.interface 4.1.1 to easy-install.pth file
Installed c:\env\lib\site-packages\zope.interface-4.1.1-py2.7-win32.egg
Searching for repoze.lru>=0.4
Reading https://pypi.python.org/simple/repoze.lru/
Best match: repoze.lru 0.6
Downloading https://pypi.python.org/packages/source/r/repoze.lru/repoze.lru-0.6.tar.gz#md5=2c3b64b17a8e18b405f55d46173e14dd
Processing repoze.lru-0.6.tar.gz
Writing c:\users\tracy\appdata\local\temp\easy_install-sbw6vu\repoze.lru-0.6\setup.cfg
Running repoze.lru-0.6\setup.py -q bdist_egg --dist-dir c:\users\tracy\appdata\local\temp\easy_install-sbw6vu\repoze.lru-0.6\egg-dist-tmp-o5ek4v
Adding repoze.lru 0.6 to easy-install.pth file
Installed c:\env\lib\site-packages\repoze.lru-0.6-py2.7.egg
Searching for WebOb>=1.3.1
Reading https://pypi.python.org/simple/WebOb/
Best match: WebOb 1.3.1
Downloading https://pypi.python.org/packages/source/W/WebOb/WebOb-1.3.1.tar.gz#md5=20918251c5726956ba8fef22d1556177
Processing WebOb-1.3.1.tar.gz
Writing c:\users\tracy\appdata\local\temp\easy_install-8x1ebc\WebOb-1.3.1\setup.cfg
Running WebOb-1.3.1\setup.py -q bdist_egg --dist-dir c:\users\tracy\appdata\local\temp\easy_install-8x1ebc\WebOb-1.3.1\egg-dist-tmp-dgnzem
no previously-included directories found matching '*.pyc'
no previously-included directories found matching '*.pyo'
Adding webob 1.3.1 to easy-install.pth file
Installed c:\env\lib\site-packages\webob-1.3.1-py2.7.egg
Finished processing dependencies for pyramid==1.5
C:\env>python pyramid_hello.py
Traceback (most recent call last):
File "pyramid_hello.py", line 2, in <module>
from pyramid.config import Configurator
File "C:\Python27\lib\site-packages\pyramid-1.5-py2.7.egg\pyramid\config\__init__.py", line 11, in <module>
from pyramid.interfaces import (
File "C:\Python27\lib\site-packages\pyramid-1.5-py2.7.egg\pyramid\interfaces.py", line 1, in <module>
from zope.deprecation import deprecated
ImportError: No module named deprecation
C:\env>
最佳答案
您的最后一个命令使用 C:\Python27
中的系统范围的 python,可使用 %PATH% 变量来使用它。
只需更改您的最后一个命令即可使用
C:\env>.\Scripts\python pyramid_hello.py
或者从包含脚本的任何目录中使用绝对路径通过 %VENV% python 解释器运行它。
c:\scripts>%VENV%\Scripts\python pyramid_hello.py
也许您会发现激活/停用 virtualenv 更方便。有经验的用户往往会明确说明,并且 Pyramid 文档通常不使用 virtualenv 激活。对于 Pyramid 初学者来说,这可能是他们第一步的好主意。只是口味问题。
关于python - Pyramid 网络框架 hello world 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23347100/
我需要开发一个简单的网站,我通常使用 bootstrap CSS 框架,但是我想使用 Gumbyn,它允许我使用 16 列而不是 12 列。 我想知道是否: 我可以轻松地改变绿色吗? 如何使用固定布局
这个问题在这里已经有了答案: 关闭 13 年前。 与直接编写 PHP 代码相比,使用 PHP 框架有哪些优点/缺点?
我开发了一个 Spring/JPA 应用程序:服务、存储库和域层即将完成。 唯一缺少的层是网络层。我正在考虑将 Playframework 2.0 用于 Web 层,但我不确定是否可以在我的 Play
我现有的 struts Web 应用程序具有单点登录功能。然后我将使用 spring 框架创建一个不同的 Web 应用程序。然后想要使用从 struts 应用程序登录的用户来链接新的 spring 应
我首先使用Spark框架和ORMLite处理网页上表单提交的数据,在提交中文字符时看到了unicode问题。我首先想到问题可能是由于ORMLite,因为我的MySQL数据库的字符集已设置为使用utf8
我有一个使用 .Net 4.5 功能的模块,我们的应用程序也适用于 XP 用户。所以我正在考虑将这个 .net 4.5 依赖模块移动到单独的项目中。我怎样才能有一个解决方案,其中有两个项目针对不同的版
我知道这是一个非常笼统的问题,但我想我并不是真的在寻找明确的答案。作为 PHP 框架的新手,我很难理解它。 Javascript 框架,尤其是带有 UI 扩展的框架,似乎通过将 JS 代码与设计分开来
我需要收集一些关于现有 ORM 解决方案的信息。 请随意编写任何编程语言。 你能谈谈你用过的最好的 ORM 框架吗?为什么它比其他的更好? 最佳答案 我使用了 NHibernate 和 Entity
除了 Apple 的 SDK 之外,还有什么强大的 iPhone 框架可供开始开发?有没有可以加快开发时间的方法? 最佳答案 此类框架最大的是Three20 。 Facebook 和许多其他公司都使用
有人可以启发我使用 NodeJS 的 Web 框架吗?我最近开始从免费代码营学习express js,虽然一切进展顺利,但我对express到底是什么感到困惑。是全栈框架吗?纯粹是为了后端吗?我发现您
您可以推荐哪种 Ajax 框架/工具包来构建使用 struts 的 Web 应用程序的 GUI? 最佳答案 我会说你的 AJAX/javascript 库选择应该较少取决于你的后端是如何实现的,而更多
我有生成以下错误的 python 代码: objc[36554]: Class TKApplication is implemented in both /Library/Frameworks/Tk.
首先,很抱歉,如果我问的问题很明显,因为我没有编程背景,那我去吧: 我想运行一系列测试场景并在背景部分声明了几个变量(我打印它们以仔细检查它们是否已正确声明),第一个是整数,另外两个字符串为你可以看到
在我们承担的一个项目中,我们正在寻找一个视频捕获和录制库。我们的基础工作(基于 google 搜索)表明 vlc (libvlc)、ffmpeg (libavcodec) 和 gstreamer 是三
我试过没有运气的情况下寻找某种功能来杀死/中断Play中的正常工作!框架。 我想念什么吗?还是玩了!实际没有添加此功能? 最佳答案 Java stop类中没有像Thread方法那样的东西,由于种种原因
我们希望在我们的系统中保留所有重大事件的记录。例如,在数据库可能存储当前用户状态的地方,事件日志应记录对该状态的所有更改以及更改发生的时间。 事件记录工具应该尽可能接近于事件引发器的零开销,应该容纳结
那里有 ActionScript 2.0/3.0 的测试框架列表吗? 最佳答案 2010-05-18 更新 由于这篇文章有点旧,而且我刚刚收到了赞成票,因此可能值得提供一些更新的信息,这样人们就不会追
我有一个巨大的 numpy 数组列表(一维),它们是不同事件的时间序列。每个点都有一个标签,我想根据其标签对 numpy 数组进行窗口化。我的标签是 0、1 和 2。每个窗口都有一个固定的大小 M。
我是 Play 的新手!并编写了我的第一个应用程序。这个应用程序有一组它依赖的 URL,从 XML 响应中提取数据并返回有效的 URL。 此应用程序需要在不同的环境(Dev、Staging 和 Pro
关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。 想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。 4年前关闭。 Improve thi
我是一名优秀的程序员,十分优秀!