mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-07-14 15:41:09 +03:00
More python version updates
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
|
issues with a HomeBrew version of Python the first thing we'll ask you to
|
||||||
do is try again with the python.org version.
|
do is try again with the python.org version.
|
||||||
|
|
||||||
On Linux you should use your distribution's Python 3.x packages. Note that at
|
On Linux you should use your distribution's Python 3.x packages, so long as
|
||||||
least Debian 10 still has 2.7.x as `python` and `pip`, and you will need to
|
they provide at least 3.9.x. Note that at least Debian 10 still has 2.7.x
|
||||||
specify `python3` (from the package of that name) and `pip3` (from
|
as `python` and `pip`, and you will need to specify `python3` (from the
|
||||||
`python3-pip` in the commands below in order to use a 3.x version.
|
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
|
We have moved to Python 3.10 and if you find that your Linux distribution
|
||||||
your Linux distribution is still only shipping Python 3.7, in which case
|
is still only shipping Python 3.8 or earlier you will **HAVE** to install a
|
||||||
you will need to install a later version separately and ensure you are
|
later version separately and ensure you are using the correct version.
|
||||||
using the correct version.
|
|
||||||
|
|
||||||
### Using a non-distribution Python on, e.g. Debian
|
### 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:
|
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:
|
1. Check that version is now available:
|
||||||
|
|
||||||
$ pyenv versions
|
$ pyenv versions
|
||||||
<possibly others>
|
<possibly others>
|
||||||
3.9.2
|
3.10.2
|
||||||
<possibly others>
|
<possibly others>
|
||||||
|
|
||||||
1. Activate that version and ensure shell is set up for it:
|
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
|
$ eval "$(pyenv init -)" # Sets it in PATH
|
||||||
$ which python
|
$ which python
|
||||||
/usr/local/pyenv/shims/python
|
/usr/local/pyenv/shims/python
|
||||||
$ python --version
|
$ python --version
|
||||||
Python 3.9.2
|
Python 3.10.2
|
||||||
|
|
||||||
1. Ensure `pip` is installed and up to date for this version:
|
1. Ensure `pip` is installed and up to date for this version:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user