1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-07-14 07:31:22 +03:00

More python version updates

Athanasius 2022-03-10 11:54:51 +00:00
parent b2f641e236
commit 4493191d05

@ -28,15 +28,15 @@ for discussion about this. That might be fixed now, but if you're having
issues with a HomeBrew version of Python the first thing we'll ask you to
do is try again with the python.org version.
On Linux you should use your distribution's Python 3.x packages. Note that at
least Debian 10 still has 2.7.x as `python` and `pip`, and you will need to
specify `python3` (from the package of that name) and `pip3` (from
`python3-pip` in the commands below in order to use a 3.x version.
On Linux you should use your distribution's Python 3.x packages, so long as
they provide at least 3.9.x. Note that at least Debian 10 still has 2.7.x
as `python` and `pip`, and you will need to specify `python3` (from the
package of that name) and `pip3` (from `python3-pip` in the commands below
in order to use a 3.x version.
As and when we move from Python 3.7 to 3.9 or beyond you might find that
your Linux distribution is still only shipping Python 3.7, in which case
you will need to install a later version separately and ensure you are
using the correct version.
We have moved to Python 3.10 and if you find that your Linux distribution
is still only shipping Python 3.8 or earlier you will **HAVE** to install a
later version separately and ensure you are using the correct version.
### Using a non-distribution Python on, e.g. Debian
@ -78,23 +78,23 @@ One tested method to get a later Python on Debian 10.x is to utilise
1. Use `pyenv` to install a new version of Python:
pyenv install 3.9.2
pyenv install 3.10.2
1. Check that version is now available:
$ pyenv versions
<possibly others>
3.9.2
3.10.2
<possibly others>
1. Activate that version and ensure shell is set up for it:
$ pyenv local 3.9.2 # You could use 'global' as well here
$ pyenv local 3.10.2 # You could use 'global' as well here
$ eval "$(pyenv init -)" # Sets it in PATH
$ which python
/usr/local/pyenv/shims/python
$ python --version
Python 3.9.2
Python 3.10.2
1. Ensure `pip` is installed and up to date for this version: