2014-11-29 17:10:04 +00:00
|
|
|
.. _pyenv-install:
|
|
|
|
|
2018-08-13 20:38:01 +00:00
|
|
|
Installing python 3.5 as a user
|
2014-12-05 20:30:10 +00:00
|
|
|
-------------------------------
|
|
|
|
|
2015-02-08 12:43:47 +00:00
|
|
|
Building your own python 3
|
|
|
|
==========================
|
|
|
|
|
|
|
|
- Go to the `python download page`_
|
|
|
|
- Select the “Latest Python 3 Release”
|
|
|
|
- Download a tarball and extract it
|
|
|
|
- Run ``./configure && make`` (takes only a few minutes even on old CPUs)
|
|
|
|
- Edit the poezio launch.sh script to make it call your user-compiled python binary
|
|
|
|
|
2014-12-05 20:30:10 +00:00
|
|
|
Pyenv (x86/x86_64 only)
|
|
|
|
=======================
|
2014-11-29 17:10:04 +00:00
|
|
|
|
|
|
|
Pyenv_ is a useful script that allows you to install several python versions
|
|
|
|
in your user directory, and lets you manage which one you want depending on
|
|
|
|
the directory you are in. It is therefore useful for people who are on
|
|
|
|
distributions not providing the latest stable version, such as Debian or
|
|
|
|
CentOS.
|
|
|
|
|
|
|
|
You can follow the step-by-step `installation tutorial`_ on github that will
|
2018-08-13 20:38:01 +00:00
|
|
|
help you install it to your home directory (on step 5, you should use 3.7.0
|
|
|
|
which is the latest python release at the time of writing this page); or you
|
|
|
|
can use the `automated installer`_ and use ``pyenv install 3.7.0`` thereafter.
|
2014-11-29 17:10:04 +00:00
|
|
|
|
2018-08-13 20:38:01 +00:00
|
|
|
Then you only need to add a ``.python-version`` file containing ``3.7.0`` in
|
2014-11-29 17:10:04 +00:00
|
|
|
your poezio directory to make the python version in that directory default to
|
2018-08-13 20:38:01 +00:00
|
|
|
the python 3.7.0 installed with pyenv.
|
2014-11-29 17:10:04 +00:00
|
|
|
|
2014-12-05 20:30:10 +00:00
|
|
|
|
2015-02-08 12:43:47 +00:00
|
|
|
Other
|
|
|
|
=====
|
|
|
|
|
|
|
|
pythonz_ allows the same kind of version management as pyenv, but builds
|
|
|
|
from source instead of fetching precompiled binaries, so it allows more
|
|
|
|
control over what is going on.
|
2014-12-05 20:30:10 +00:00
|
|
|
|
|
|
|
|
2014-11-29 17:10:04 +00:00
|
|
|
.. _Pyenv: https://github.com/yyuu/pyenv
|
|
|
|
.. _installation tutorial: https://github.com/yyuu/pyenv#installation
|
|
|
|
.. _automated installer: https://github.com/yyuu/pyenv-installer
|
2014-12-05 20:30:10 +00:00
|
|
|
.. _python download page: https://www.python.org/downloads/source/
|
2015-02-08 12:43:47 +00:00
|
|
|
.. _pythonz: https://github.com/saghul/pythonz
|