2017-07-14 80 views
1

我有以下問題,即我的包被公佈,但無法安裝:發佈安裝包的PyPI顯示了搜索,但不會點子安裝

$ pip search "intellimatch" 
intellimatch (0.1.0) - Intelligent matching/textsearch/cli interactivity that works for humans 

$ pip install intellimatch 
Collecting intellimatch 
    Could not find a version that satisfies the requirement intellimatch (from versions:) 
No matching distribution found for intellimatch 

$ pip install intellimatch==0.1.0 
Collecting intellimatch==0.1.0 
    Could not find a version that satisfies the requirement intellimatch==0.1.0 (from versions:) 
No matching distribution found for intellimatch==0.1.0 

正是在https://bitbucket.org/codyc54321/intellimatch

setup.py正在尋找像

from setuptools import setup 

setup(
    name='intellimatch', 
    version='0.1.0', 
    description='Intelligent matching/textsearch/cli interactivity that works for humans', 
    url='https://bitbucket.org/codyc54321/intellimatch', 
    author='codyc4321', 
    license='MIT', 
    packages=['intellimatch'], 
    install_requires=[], 
    zip_safe=False, 
) 

這是一個包含1個文件夾的基本包,intellimatch,並且沒有依賴性,只是使用Python。

回答

1

有沒有在你的PyPI項目的檔案。請參閱以下步驟。

$ pip install intellimatch -vvv 

這將向您顯示調試回溯。

url指向https://pypi.python.org/simple/intellimatch/它沒有你的軟件包存檔,因此它不會下載和安裝你的軟件包。從搭便車的guide中獲取,請使用下面的命令上傳您的軟件包的發行版。

$ python setup.py register sdist upload 
+0

上註冊你的軟件包哇,我想你已經解決了它。我辦公室的網絡安全可能阻止了它或者什麼,我會在家裏嘗試這個,如果我失敗了,就會打開不同的問題。謝謝 – codyc4321

+0

'開放不同的問題,如果我失敗'愛它當人們說這 –

+0

如果你認識到這個SSL錯誤,我會很感激 – codyc4321

1

pip從PyPI下載軟件包。沒有包裹在https://pypi.python.org/pypi/intellimatch因此沒有下載和安裝。

給點子一個VCS URL

pip install git+https://bitbucket.org/codyc54321/intellimatch/src?egg=intellimatch 
+0

好我現在要試試,你知道我需要做什麼才能正常發佈,所以'pip install intellimatch'的作品?我認爲我遵循的指南是這樣的... – codyc4321

+0

'$ pip install git + https://bitbucket.org/codyc54321/intellimatch/src?egg = intellimatch 收集git + https://bitbucket.org/codyc54321/intellimatch/src?egg = intellimatch 將https://bitbucket.org/codyc54321/intellimatch/src?egg=intellimatch克隆到/ private/var/folders/20/blah/T/pip-blah-build remote:未找到 致命的:倉庫'https://bitbucket.org/codyc54321/intellimatch/src?egg=intellimatch/'找不到 命令「git clone -q https://bitbucket.org/codyc54321/intellimatch/src?egg=intellimatch/private/var/folders/20/blah/T/pip-blah-build「失敗,錯誤代碼爲128,無」 – codyc4321

+0

我已經在pypi上註冊過,當我登錄時,我看到包 – codyc4321

相關問題