mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-07-14 15:41:09 +03:00
Running-from-source: Update for using 3.11 now, and needing >=3.10
parent
f690cbc6be
commit
de0aa519b5
@ -1,12 +1,12 @@
|
||||
# Running from source
|
||||
|
||||
* `stable` is now targeted against Python 3.10, and will no longer work under Python 3.8 or earlier (Ref:
|
||||
* `stable` is now targeted against Python 3.11, and will no longer work under Python 3.8 or earlier (Ref:
|
||||
[TypeError when running from source on stable branch #1497](https://github.com/EDCD/EDMarketConnector/issues/1497))
|
||||
|
||||
* `main` is now targeted against Python 3.10, and will no longer work under Python 3.8 or earlier (Ref:
|
||||
* `main` is now targeted against Python 3.11, and will no longer work under Python 3.8 or earlier (Ref:
|
||||
[TypeError when running from source on stable branch #1497](https://github.com/EDCD/EDMarketConnector/issues/1497))
|
||||
|
||||
* `develop` is targeted at Python 3.10 and has no guarantee about working on
|
||||
* `develop` is targeted at Python 3.11 and has no guarantee about working on
|
||||
earlier Python versions. **If you are not actively developing the application
|
||||
then you SHOULD NOT BE RUNNING THIS BRANCH.**
|
||||
|
||||
@ -30,18 +30,16 @@ 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, 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.
|
||||
they provide at least 3.10.x. Note that you might need to specify `python3` or
|
||||
`pip3` in any comments below, rather than `python` or `pip`.
|
||||
|
||||
We have moved to Python 3.10 and if you find that your Linux distribution
|
||||
We have moved to Python 3.11 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
|
||||
|
||||
One tested method to get a later Python on Debian 10.x is to utilise
|
||||
One tested method to get a later Python on Debian 11.x is to utilise
|
||||
[pyenv](https://github.com/pyenv/pyenv-installer/).
|
||||
|
||||
1. You will need some pre-requisites:
|
||||
@ -79,23 +77,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.10.2
|
||||
pyenv install 3.11.1
|
||||
|
||||
1. Check that version is now available:
|
||||
|
||||
$ pyenv versions
|
||||
<possibly others>
|
||||
3.10.2
|
||||
3.11.1
|
||||
<possibly others>
|
||||
|
||||
1. Activate that version and ensure shell is set up for it:
|
||||
|
||||
$ pyenv local 3.10.2 # You could use 'global' as well here
|
||||
$ pyenv local 3.11.1 # 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.10.2
|
||||
Python 3.11.1
|
||||
|
||||
1. Ensure `pip` is installed and up to date for this version:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user