Questions tagged [pypi]

The Python Package Index (PyPI) is a repository of software for the Python programming language. Do not confuse with PyPy, the language implementation.

The Python Package Index (PyPI), occasionally known as the Cheese Shop, is a repository of software for the Python programming language. Pronounced "Pie Pee Eye".

Described in PEP 301, it was inspired by similar facilities for other languages, such as Perl's CPAN. It aims to be a comprehensive catalogue of third-party Python packages, and hosts over 30,000 such packages.

Related tags:

1385 questions
1555
votes
11 answers

Installing specific package versions with pip

I'm trying to install version 1.2.2 of the MySQL_python adaptor, using a fresh virtualenv created with the --no-site-packages option. The current version shown in PyPi is 1.2.3. Is there a way to install the older version? I found an article stating…
Joe
  • 21,593
  • 12
  • 36
  • 35
1223
votes
10 answers

What is setup.py?

Can anyone please explain what setup.py is and how it can be configured or used?
Software Enthusiastic
  • 21,163
  • 15
  • 55
  • 66
947
votes
9 answers

Why use pip over easy_install?

A tweet reads: Don't use easy_install, unless you like stabbing yourself in the face. Use pip. Why use pip over easy_install? Doesn't the fault lie with PyPI and package authors mostly? If an author uploads crap source tarball (eg: missing…
Sridhar Ratnakumar
  • 68,948
  • 61
  • 139
  • 172
850
votes
16 answers

python setup.py uninstall

I have installed a python package with python setup.py install. How do I uninstall it?
flybywire
  • 232,954
  • 184
  • 384
  • 491
607
votes
18 answers

Why is python setup.py saying invalid command 'bdist_wheel' on Travis CI?

My Python package has a setup.py which builds fine locally on Ubuntu Trusty and on a fresh Vagrant Ubuntu Trusty VM when I provision it like this: sudo apt-get install python python-dev --force-yes --assume-yes --fix-broken curl --silent…
nokome
  • 7,016
  • 2
  • 12
  • 15
412
votes
18 answers

Find all packages installed with easy_install/pip?

Is there a way to find all Python PyPI packages that were installed with easy_install or pip? I mean, excluding everything that was/is installed with the distributions tools (in this case apt-get on Debian).
Jürgen A. Erhard
  • 4,838
  • 2
  • 21
  • 25
373
votes
9 answers

Installing python module within code

I need to install a package from PyPi straight within my script. Maybe there's some module or distutils (distribute, pip etc.) feature which allows me to just execute something like pypi.install('requests') and requests will be installed into my…
chuwy
  • 5,158
  • 4
  • 17
  • 22
151
votes
4 answers

How can I make setuptools install a package that's not on PyPI?

I've just started working with setuptools and virtualenv. My package requires the latest python-gearman that is only available from GitHub. The python-gearman version that's on PyPI is an old one. The Github source is setuptools-compatible, i.e. has…
andrei
  • 1,893
  • 3
  • 16
  • 15
125
votes
10 answers

pypi UserWarning: Unknown distribution option: 'install_requires'

Does anybody encounter this warning when executing python setup.py install of a PyPI package? install_requires defines what the package requires. A lot of PyPI packages have this option. How can it be an "unknown distribution option"?
Tyler Long
  • 16,201
  • 9
  • 87
  • 75
120
votes
8 answers

Have the same README both in Markdown and reStructuredText

I have a project hosted on GitHub. For this I have written my README using the Markdown syntax in order to have it nicely formatted on GitHub. As my project is in Python I also plan to upload it to PyPi. The syntax used for READMEs on PyPi is…
jlengrand
  • 10,477
  • 8
  • 51
  • 76
110
votes
7 answers

Post-install script with Python setuptools

Is it possible to specify a post-install Python script file as part of the setuptools setup.py file so that a user can run the command: python setup.py install on a local project file archive, or pip install for a PyPI project and the…
Chris Simpkins
  • 1,314
  • 2
  • 10
  • 13
88
votes
2 answers

'pip install' fails for every package ("Could not find a version that satisfies the requirement")

pip install is failing for every package for me. This is what I get: Could not find a version that satisfies the requirement I saw similar questions on…
Anupam
  • 12,420
  • 12
  • 51
  • 82
84
votes
2 answers

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

We wrote a small wrapper to a twitter app and published this information to http://pypi.python.org. But setup.py just contained a single field for specifying email / name of the author. How do I specify multiple contributors / email list, to the…
priya
  • 19,365
  • 24
  • 59
  • 76
70
votes
6 answers

pypi see older versions of package

This is the package I'm interested in : https://pypi.python.org/pypi/django-filebrowser-no-grappelli/ However the latest version no longer supports Django 1.3. I need to find a version that does. How do I see list of older versions ?
Marijus
  • 3,696
  • 11
  • 44
  • 85
69
votes
4 answers

PyPi download counts seem unrealistic

I put a package on PyPi for the first time ~2 months ago, and have made some version updates since then. I noticed this week the download count recording, and was surprised to see it had been downloaded hundreds of times. Over the next few days, I…
jeffalstott
  • 2,483
  • 3
  • 22
  • 31
1
2 3
92 93