StatistPiggyTerror StatistPiggyTerror - 3 months ago 11
Python Question

Why is my Python3 pip package not working eventhough it shows on PyPi?

Here is a little library that I'm trying to make available on PyPi for others to use.

https://github.com/rojavacrypto/python-libbitcoin

I use this command to upload the package:

$ python setup.py sdist bdist_wheel upload


I also tried this:

$ python setup.py sdist bdist_egg upload


Both seem to run fine without errors, and it's even listed on PyPi

But for some reason when I try to pip install on Ubuntu, it gives me an error.

# pip3 install libbitcoin
Collecting libbitcoin
Could not find a version that satisfies the requirement libbitcoin (from versions: )
No matching distribution found for libbitcoin


Why is this happening?

Thanks

luv luv
Answer

The name of your package in PyPI is "python-libbitcoin":

pip3 install python-libbitcoin

and here you go:

Downloading/unpacking python-libbitcoin
  http://pypi.python.org/simple/python-libbitcoin/ uses an insecure transport scheme (http). Consider using https if pypi.python.org has it available
  Downloading python-libbitcoin-1.2.2.tar.gz
  Running setup.py (path:/home/lukas/x/build/python-libbitcoin/setup.py) egg_info for package python-libbitcoin