pypi

How to remove a package from Pypi

你离开我真会死。 提交于 2019-11-27 23:25:38
How do I remove a package from Pypi? I uploaded a package to Pypi several months ago. The package is now obsolete and I'd like to formally remove it. I cannot find any documentation on how to remove my package. Login. Go to your packages. Check the "remove" checkbox for the particular package. Click "Remove" button. New PYPI Website After logging to pypi.org, Go to releases Click delete on options dropdown Enter the version number confirm Click Delete Release to delete the release. original answer Login in to pypi , select the required package from Your packages To delete only a version of the

Unable to install pip: Permission denied error

左心房为你撑大大i 提交于 2019-11-27 20:55:07
I am trying to install pip but currently unable to. I navigate to the pip folder and python setup.py install Everything seems to go fine until the very end: Extracting pip-0.8.2-py2.6.egg to /Library/Python/2.6/site-packages Adding pip 0.8.2 to easy-install.pth file Installing pip script to /usr/local/bin error: /usr/local/bin/pip: Permission denied I've also tried easy_install . and attempted to refer to the related thread with no luck: Python install uninstall easy_install Any ideas? Looks like you're on an Linux/Unix box and you're not root ... which means you don't have permission to put

JSON API for PyPi - how to list packages?

这一生的挚爱 提交于 2019-11-27 16:00:59
问题 There is a JSON API for PyPI which allows getting data for packages: http://pypi.python.org/pypi/<package_name>/json http://pypi.python.org/pypi/<package_name>/<version>/json However, is it possible to get a list of all PyPI packages (or, for example, recent ones) with a GET call? 回答1: The easiest way to do this is to use the simple index at PyPI which lists all packages without overhead. You can then request the JSON of each package individually by performing a GET request to the URLs

Why does pip install matplotlib version 0.91.1 when PyPi shows version 1.0.0?

廉价感情. 提交于 2019-11-27 11:36:41
问题 Update Oct 15, 2012 PyPi is now showing matplotlib at 1.1.0 so this issue is resolved. Install matplotlib via: pip install matplotlib Outdated Information Below PyPi shows matplotlib 1.0.0. However, when I install matplotlib via pip into a virtualenv, version 0.91.1 is installed. Why the difference in versions? Is there a way to pip install matplotlib 1.0.0? Research It appears that matplotlib's DOAP record on PyPi is pointing to the correct version. Below is the DOAP record for reference: <

Optional dependencies in a pip requirements file

岁酱吖の 提交于 2019-11-27 11:35:32
问题 How can I specify optional dependencies in a pip requirements file? According to the pip documentation this is possible, but the documentation doesn't explain how to do it, and I can't find any examples on the web. 回答1: Instead of specifying optional dependencies in the same file as the hard requirements, you can create a optional-requirements.txt and a requirements.txt . To export your current environment's packages into a text file, you can do this: pip freeze > requirements.txt If

I cannot install mysql-connector-python using pip

烂漫一生 提交于 2019-11-27 11:35:24
I am trying to install mysql-connector-python==1.0.12 as part of my project's automated installation, and I get the following error from pip install : Collecting mysql-connector-python==1.0.12 (from -r /tmp/requirements.txt (line 20)) Could not find a version that satisfies the requirement mysql-connector-python==1.0.12 (from -r /tmp/requirements.txt (line 20)) (from versions: ) No matching distribution found for mysql-connector-python==1.0.12 (from -r /tmp/requirements.txt (line 20)) Up until a few days ago it worked fine. I investigated a bit and found the following issue in bitbucket.org .

PyPI is slow. How do I run my own server?

佐手、 提交于 2019-11-27 09:40:53
问题 When a new developer joins the team, or Jenkins runs a complete build, I need to create a fresh virtualenv. I often find that setting up a virtualenv with Pip and a large number (more than 10) of requirements takes a very long time to install everything from PyPI. Often it fails altogether with: Downloading/unpacking Django==1.4.5 (from -r requirements.pip (line 1)) Exception: Traceback (most recent call last): File "/var/lib/jenkins/jobs/hermes-web/workspace/web/.venv/lib/python2.6/site

Prevent package from being installed on old Python versions

蓝咒 提交于 2019-11-27 07:36:04
问题 What can we put in a setup.py file to prevent pip from collecting and attempting to install a package when using an unsupported Python version? For example magicstack is a project listed with the trove classifier: Programming Language :: Python :: 3 :: Only So I expect the following behaviour if pip --version is tied to python 2.7: $ pip install magicstack Collecting magicstack Could not find a version that satisfies the requirement magicstack (from versions: ) No matching distribution found

how to create local own pypi repository index without mirror?

只谈情不闲聊 提交于 2019-11-27 07:25:40
We have several own python packages and want to create local pypi repository for them using simple interface like https://pypi.python.org/simple/ This repository I want to create for local only without any mirrors due to security reason, and it will be put under apache's control The command pypimirror looks has to be initialized once, which needs to mirror. How can I generate PyPi Simple Index based on local python packages. Any other simple scripts for this ? Since you asked to answer here: Take a look at pip2pi , it seems to be exactly what you are looking for. Laurent Brack We had a similar

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

巧了我就是萌 提交于 2019-11-27 01:47:32
问题 There are two pip install options related to reinstalling the packages, which are --ignore-installed and --force-reinstall . These two options described as following in the official doc --force-reinstall Reinstall all packages even if they are already up-to-date. -I, --ignore-installed Ignore the installed packages (reinstalling instead). It seems that they all ignore something and do the reinstallation but I cannot tell the difference between them (I can see some difference if I actually