Failed to upload packages to PyPI: 410 Gone

Upgrade to the very latest pip and setuptools; install twine: pip install -U pip setuptools twine Edit ~/.pypirc and comment out or remove repository: [pypi] #repository:https://pypi.python.org/pypi Use twine to upload your module to pypi from within the folder containing the module source, setup.py, and other files: python setup.py sdist twine upload dist/* See https://packaging.python.org/guides/migrating-to-pypi-org/#uploading

How to run pip of different version of python using python command?

Finally I found the solution myself, see the Docs: https://docs.python.org/3/installing/index.html?highlight=pip#work-with-multiple-versions-of-python-installed-in-parallel Just call: pythonXX -m pip install SomePackage That would work separately for each version of installed python. Also, according to the docs, if we want to do the same thing in windows, the command is a bit different: py -2 -m pip install SomePackage # … Read more

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

The key is to tell easy_install where the package can be downloaded. In this particular case, it can be found at the url http://github.com/mtai/python-gearman/tarball/master. However, that link by itself won’t work, because easy_install can’t tell just by looking at the URL what it’s going to get. By changing it to http://github.com/mtai/python-gearman/tarball/master#egg=gearman-2.0.0beta instead, easy_install will be … Read more

python setup.py uninstall

Note: Avoid using python setup.py install use pip install . You need to remove all files manually, and also undo any other stuff that installation did manually. If you don’t know the list of all files, you can reinstall it with the –record option, and take a look at the list this produces. To record … Read more

Pip install from pypi works, but from testpypi fails (cannot find requirements)

Update PyPI has upgraded its site. According to the docs, the new advice is: pip install –index-url https://test.pypi.org/simple/ –extra-index-url https://pypi.org/simple poirot –index-url points to your package on TestPyPI. –extra-index-url points to dependencies on PyPI. poirot is your package. Out-dated Try pip install –extra-index-url https://testpypi.python.org/pypi poirot. See also a reference post.