2017-07-14 78 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

相关问题