Buğra Gedik Buğra Gedik - 3 months ago 9
Python Question

Is it possible to upload multiple versions of the same package to pypiserver?

Say you have two different versions of the same package and want to upload them to

pypiserver
and have clients install the version they want via
pip
. Is this possible?

Answer

Yes it is possible.

You just upload package twice setting different version (e.g. first 0.1 and second 0.2) in setup.py of your package.

Here is instruction how to upload: http://peterdowns.com/posts/first-time-with-pypi.html

Then user can install specific version using following command

pip install 'package_name==0.1'

or

pip install 'package_name<=0.1'