7
這裏安裝包的問題是我的setup.py:從dependency_links
setup(
...
install_requires=['GEDThriftStubs'],
dependency_links=['git+ssh://[email protected]/ged-thrift-stubs.git#egg=GEDThriftStubs'],
...)
然後,我創建包:
python setup.py sdist
然後我嘗試安裝它:
PIP安裝file://path/package-0.0.1.tar.gz
而得到這個終端:如果它,
Skipping link git+ssh://[email protected]/ged-thrift-stubs.git#egg=GEDThriftStubs; wrong project name (not gedthriftstubs)
而且我沒有在我的項目的任何地方確切的名稱「gedthriftstubs」:
Downloading/unpacking GEDThriftStubs (from package==0.0.1)
Could not find any downloads that satisfy the requirement GEDThriftStubs (from package==0.0.1)
No distributions at all found for GEDThriftStubs (from package==0.0.1)
而且在pip.log此類郵件事項。
但是這工作得很好:
pip install git+ssh://[email protected]/ged-thrift-stubs.git#egg=GEDThriftStubs
的setup.py中指定的
version
啊,對不起,我的錯。 – 2013-03-14 12:15:31你想'sudo python setup.py sdist'或者只是'python setup.py sdist'? – 2014-01-12 23:50:32
我在一個用戶和一個virtualenv下運行沒有sudo的兩個命令。 – azurkin 2014-02-02 08:01:13