【发布时间】:2013-10-31 19:50:17
【问题描述】:
从存储库安装软件包时,pip freeze 会生成该软件包的存储库路径,而不是软件包名称/版本。示例:
-e git+https://github.com/ryneeverett/Python-Markdown.git@11f0b010395a86eac93db0816bcf984639b839e9#egg=Markdown-master
当另一个应用程序需要这样的包时,它似乎无法识别。示例:
$ hyde gen
Traceback (most recent call last):
File "/home/ryne/.virtualenvs/DEV/bin/hyde", line 5, in <module>
from pkg_resources import load_entry_point
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2675, in <module>
def extras(self):
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 552, in resolve
if item not in self.entry_keys:
pkg_resources.DistributionNotFound: Markdown==2.3.1
应如何避免此类问题?
【问题讨论】:
标签: python version-control pip pkg-resources