3
當一個包從倉庫安裝,pip freeze
產生一個資料庫路徑爲包,而不是包的名稱/版本。例如:如何使源控制的PIP封裝滿足其他包的要求
-e git+https://github.com/ryneeverett/[email protected]#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
應該如何避免這些問題?