简体   繁体   中英

Published pypi package shows up on search but won't pip install

I have the following issue where my package is published but cannot install:

$ 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

It is at https://bitbucket.org/codyc54321/intellimatch

setup.py is looking like

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,
)

This is a basic package with 1 folder, intellimatch , and no dependencies, just using Python.

pip downloads packages from PyPI. There is no packages at https://pypi.python.org/pypi/intellimatch hence nothing to download and install.

Give pip a VCS URL :

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

There is no archive of your project at pypi. See the below steps.

$ pip install intellimatch -vvv

this will show you a debug traceback.

The url points to https://pypi.python.org/simple/intellimatch/ which has no archive of your package hence it won't download and install your package. Taking from hitchhiker's guide , upload a distribution of your package using the command below.

$ python setup.py register sdist upload

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM