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:

1780 questions
1896
votes
12 answers

Installing specific package version with pip

I am trying to install version 1.2.2 of MySQL_python, 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 have tried: pip install…
Joe
  • 25,307
  • 12
  • 38
  • 35
1539
votes
10 answers

What is setup.py?

What is setup.py and how can it be configured or used?
Software Enthusiastic
  • 25,147
  • 16
  • 58
  • 68
973
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
  • 81,433
  • 63
  • 146
  • 187
931
votes
18 answers

python setup.py uninstall

I have installed a python package with python setup.py install. How do I uninstall it?
flybywire
  • 261,858
  • 191
  • 397
  • 503
886
votes
20 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
  • 9,834
  • 3
  • 14
  • 15
490
votes
13 answers

How can I Install a Python module within code?

I need to install a package from PyPI straight within my script. Is there maybe 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
  • 6,310
  • 4
  • 20
  • 29
426
votes
19 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,908
  • 2
  • 23
  • 25
161
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
  • 2,053
  • 3
  • 17
  • 16
133
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 Liu
  • 19,552
  • 11
  • 100
  • 84
132
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,534
  • 2
  • 11
  • 13
129
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
  • 12,152
  • 14
  • 57
  • 87
124
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
  • 14,950
  • 19
  • 67
  • 94
112
votes
3 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
  • 24,861
  • 26
  • 62
  • 81
97
votes
2 answers

pip requirements.txt with alternative index

I want to put all the requirements of a repoze Zope2 install in a pip requirements file. Most of the repoze packages don't seem to be on PyPi, but there's an alternative PyPi index for them here. But I can't figure out how to tell pip to use that…
Benjamin Wohlwend
  • 30,958
  • 11
  • 90
  • 100
77
votes
8 answers

How to make PyPi description Markdown work?

I uploaded a package to PyPi using: python setup.py register -r pypi python setup.py sdist upload -r pypi I'm trying to modify the description, I wrote (please don't edit the formatting of the following piece of code, I made it on purpose to…
Maroun
  • 94,125
  • 30
  • 188
  • 241
1
2 3
99 100