Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add list of how to install multiple Python versions #2476

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ Monty Taylor
Morgan Fainberg
Naveen S R
Niander Assis
Nicco Kunzmann
Nick Douma
Nick Prendergast
Nicolas Vivet
Expand Down
1 change: 1 addition & 0 deletions docs/changelog/2453.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add links to tutorials about how to install different Python versions alongside eachother -- by :user:`niccokunzmann`
48 changes: 48 additions & 0 deletions docs/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,52 @@ so that you can do changes and submit patches.

You can also find tox packaged for many Linux distributions and Homebrew for macOs - usually under the name of **python-tox** or simply **tox**. Be aware though that there also other projects under the same name (most prominently a `secure chat client <https://tox.chat/>`_ with no affiliation to this project), so make sure you install the correct package.

Installation of all needed Python versions
niccokunzmann marked this conversation as resolved.
Show resolved Hide resolved
------------------------------------------

As you install tox for different projects, you may notice that it wants to run tests with different versions of Python,
some of which are not installed on your system.
This section aims to help you further by providing an overview over different guides that help installing and using
different versions of Python next to each other on one operating system.
niccokunzmann marked this conversation as resolved.
Show resolved Hide resolved

Which versions to install
~~~~~~~~~~~~~~~~~~~~~~~~~

If you run ``tox``, it will run tests with the Python versions installed and fail for those versions that are not installed.
niccokunzmann marked this conversation as resolved.
Show resolved Hide resolved
The ``tox.ini`` file should also give a clue.

.. code::

___________________________________ summary ____________________________________
py27: commands succeeded
ERROR: py36: InterpreterNotFound: python3.6
ERROR: py37: InterpreterNotFound: python3.7
ERROR: py38: InterpreterNotFound: python3.8
ERROR: py39: InterpreterNotFound: python3.9
py310: commands succeeded
ERROR: pypy3: InterpreterNotFound: pypy3

Linux
~~~~~

Have a look at these tutorials on how to install mutiple versions of Python on Linux. If you find a new one, please add it!
niccokunzmann marked this conversation as resolved.
Show resolved Hide resolved

- `pyenv <https://github.com/pyenv/pyenv#installation>`_

Windows
~~~~~~~

Have a look at these tutorials on how to install mutiple versions of Python on Windows. If you find a new one, please add it!

- `pyenv-win <https://github.com/pyenv-win/pyenv-win#installation>`_
- `choosing the right location for manual installations <https://stackoverflow.com/questions/13834381/set-up-multiple-python-installations-on-windows-with-tox>`_
niccokunzmann marked this conversation as resolved.
Show resolved Hide resolved

MacOS
~~~~~

Have a look at these tutorials on how to install mutiple versions of Python on MacOS. If you find a new one, please add it!

- `pyenv`_
niccokunzmann marked this conversation as resolved.
Show resolved Hide resolved


.. include:: links.rst