Difference between pip install options “ignore-installed” and “force-reinstall”

–force-reinstall Before installing a package, will uninstall it first if already installed. Pretty much the same as running pip uninstall -y dep && pip install dep for package and its every dependency. –ignore-installed Ignores whether the package and its deps are already installed, overwriting installed files. This means that you can have a situation where … Read more

PyPi download counts seem unrealistic

This is kind of an old question at this point, but I noticed the same thing about a package I have on PyPI and investigated further. It turns out PyPI keeps reasonably detailed download statistics, including (apparently slightly anonymised) user agents. From that, it was apparent that most people downloading my package were things like … Read more

How to specify multiple author(s) / email(s) in setup.py

As far as I know, setuptools doesn’t support using a list of strings in order to specify multiple authors. Your best bet is to list the authors in a single string: author=”Foo Bar, Spam Eggs”, author_email=”foobar@baz.com, spameggs@joe.org”, I’m not sure if PyPI validates the author_email field, so you may run into trouble with that one. … Read more

‘pip install’ fails for every package (“Could not find a version that satisfies the requirement”) [duplicate]

Upgrade pip as follows: curl https://bootstrap.pypa.io/get-pip.py | python Note: You may need to use sudo python above if not in a virtual environment. What’s happening: Python.org sites are stopping support for TLS versions 1.0 and 1.1. This means that Mac OS X version 10.12 (Sierra) or older will not be able to use pip unless they upgrade … Read more

Have the same README both in Markdown and reStructuredText

I would recommend Pandoc, the “swiss-army knife for converting files from one markup format into another” (check out the diagram of supported conversions at the bottom of the page, it is quite impressive). Pandoc allows markdown to reStructuredText translation directly. There is also an online editor here which lets you try it out, so you … Read more

pypi UserWarning: Unknown distribution option: ‘install_requires’

python setup.py uses distutils which doesn’t support install_requires. setuptools does, also distribute (its successor), and pip (which uses either) do. But you actually have to use them. I.e. call setuptools through the easy_install command or pip install. Another way is to import setup from setuptools in your setup.py, but this not standard and makes everybody … Read more