问题标签 [egg]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
292 浏览

python - 包括鸡蛋的水银扩展

有没有办法从文件中导入扩展名.egg?例如hggit将自身安装为hg_git-0.2.4-py2.5.egg,不能[extensions]直接在下面列出,或者它被解释为标准.py文件。

有没有办法将该文件作为扩展名包含在内?

或者,是否有某种方法可以hg-git手动安装,而不是创建.egg文件,而是解压目录?

0 投票
2 回答
6830 浏览

python - How to install Trac Plugin and what is a python egg?

In Trac on Admin -> Plugins there is an option to install Plug-ins. Now this option expect you to upload an Python egg.

This would be all well but for the fact that all the Trac plug-ins I found are either plain .py files or zip files and are incompatible with the upload function (I tried it).

This leaves my with a bunch of questions:

  • Are there any Trac plug-ins which come as an Python egg?
  • What is an (Trac compatible) Python egg?
  • Is it difficult to repackage an .py file into a Trac compatible Python egg?
  • If not: how is it done?
0 投票
2 回答
17483 浏览

python - 如何在 python egg 中更新文件

我们正在使用 trac。在我们的设置中,我们有一个在存储库中解决的问题。所以我从存储库中得到了固定文件commit_update.py,我需要将它放入Trac-0.12-py2.6.egg。

由于鸡蛋只是一个压缩文件,我只是解压缩它,更改文件并再次压缩。重新启动 trac 后,我收到一条错误消息:

我不太明白为什么会出现这个错误,因为我在 www-data 下运行 trac 实例,它是插件缓存的所有者。

将欣赏任何想法。

0 投票
3 回答
4441 浏览

python - Python egg 的源代码在哪里?

我正在尝试向 Python Markdown-2.0.3-py2.7.egg 添加视频扩展

事情不正常,所以我想使用 pdb 调试器来看看发生了什么。

我似乎找不到插入 pdb 的源代码。

鸡蛋位于此处:

使用 iPython,我可以查看 Markdown 模块的 Python 源代码及其路径:

但我无法导航到该文件,也无法在文本编辑器中打开它。

我猜我正在查看的源代码可能是从编译好的鸡蛋中生成的。但是,似乎必须有某种访问代码的方法。

0 投票
1 回答
1528 浏览

python - Python:安装鸡蛋时的权限问题

尝试使用easy_install在整个站点范围内安装South。但是我遇到了权限问题:

然后我尝试用pip安装它,但收到了相同的结果。

我假设我可以通过更改权限来解决这个问题。但是,我在安装过程中做错了吗?还是包裹有问题?

对评论的回答

iddqd:请发送输出。sudo pip install -e hg+http : //bitbucket.org/andrewgodwin/south/

结果如下:

0 投票
2 回答
1460 浏览

python - What is a good computer vision library for Python that will allow me to me to find faces in a Flash/HTML5 video?

I need to develop a script utilizing computer vision that will:

  1. Scan all frames of an Flash/HTML5 video for people's faces
  2. Identify the video frames that shows the faces looking directly at the camera
  3. Crop the face in a perfect square
  4. Copy the cropped face to a .PNG file

Any recommendations for a Python computer vision library that could help me develop this script?

0 投票
1 回答
247 浏览

python - 为什么要在 sdist 上使用鸡蛋?

关于我能想到将 python 包作为鸡蛋分发的唯一原因是,您不能在包中包含 .py 文件(并且只包含 .pyc 文件,这无论如何都是保护您的代码的一种可疑方式)。除此之外,我真的想不出任何理由将包作为鸡蛋而不是 sdist 上传。事实上,pip 甚至不支持鸡蛋。

是否有任何真正的理由使用鸡蛋而不是 sdist?

0 投票
2 回答
8389 浏览

python - Python 如何跟踪安装了 egg 的模块?

如果我有一个模块,foo, in Lib/site-packages,我可以import foo并且它会工作。但是,当我从 egg 安装东西时,我得到了blah-4.0.1-py2.7-win32.egg一个文件夹,里面有模块内容,但我仍然只需要 do import foo,而不是更复杂的东西。Python如何跟踪鸡蛋?这不仅仅是 dirname 匹配,就好像我将该文件夹放入 Python 安装而不通过 dist-utils,它没有找到该模块。

更清楚一点:我刚刚安装了 zope。文件夹名称为“zope.interface-3.3.0-py2.7-win32.egg”。这有效:

我创建了一个“blah-4.0.1-py2.7-win32.egg”文件夹,其中包含一个空模块“haha”(和__init__.py)。这不起作用:

但是,这样做:

那么如何在没有 的情况下使其工作require

0 投票
2 回答
41399 浏览

python - 如何卸载我使用 easy_install 安装的 Python 模块(“egg”)?

我已经使用easy_install安装了几个 Python 模块。如何卸载它们?

我看不到 中列出的卸载选项easy_install --help

0 投票
1 回答
54204 浏览

python - 无法安装 pip:权限被拒绝错误

我正在尝试安装 pip 但目前无法安装。我导航到 pip 文件夹,然后

一切似乎都很顺利,直到最后:

我也试过easy_install .并试图参考相关线程但没有运气:Python install uninstall easy_install

有任何想法吗?