-1

I created a small Python project using a project template. Now I would like to configure the project to be locally installable.

When I run the command:

$ python3.8 -m pip install fdroid_build_checker

I get the following error:

ERROR: Could not find a version that satisfies the requirement fdroid_build_checker (from versions: none)
ERROR: No matching distribution found for fdroid_build_checker

A future step would be to configure the project to be published as a small command line tool.

geertjanvdk
  • 3,100
  • 20
  • 25
JJD
  • 44,755
  • 49
  • 183
  • 309
  • 1
    Does this answer your question? [Configuring so that pip install can work from github](https://stackoverflow.com/questions/8247605/configuring-so-that-pip-install-can-work-from-github) – buran Jan 23 '21 at 19:35
  • 1
    Note that you have not published your project on PyPi, so your code cannot find matching distribution on PyPI. You can check https://stackoverflow.com/questions/56129825/publishing-modules-to-pip-and-pypi or google how to do it – buran Jan 23 '21 at 19:37

1 Answers1

3

Your command is searching for the package in PyPi, which won't work because you haven't published the package there.

To install a local package, you should be able to just run pip install path_containing_fdroid_build_checker/froid_buildchecker

You'll have to make sure that your package contains a setup.py file (1) in order for pip to build a wheel and install it successfully.

See https://stackoverflow.com/a/41537134/2741222

1 - https://packaging.python.org/tutorials/packaging-projects/#creating-setup-py

akoinesjr
  • 248
  • 2
  • 4