From 08c96a6794ff668ab8a634eb54d1ad6d7fd21c32 Mon Sep 17 00:00:00 2001 From: jack1142 <6032823+jack1142@users.noreply.github.com> Date: Fri, 24 Apr 2020 03:30:11 +0200 Subject: [PATCH] Change pyenv instructions to update pyenv when it's already installed (#3740) * Change pyenv instructions to update pyenv when it's already installed * Use latest Python version --- docs/install_linux_mac.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/install_linux_mac.rst b/docs/install_linux_mac.rst index 9a2375735..bdb4c1a1c 100644 --- a/docs/install_linux_mac.rst +++ b/docs/install_linux_mac.rst @@ -313,7 +313,7 @@ virtual environment. .. code-block:: none - curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash + command -v pyenv && pyenv update || curl https://pyenv.run | bash After this command, you may see a warning about 'pyenv' not being in the load path. Follow the instructions given to fix that, then close and reopen your shell. @@ -322,7 +322,7 @@ Then run the following command: .. code-block:: none - CONFIGURE_OPTS=--enable-optimizations pyenv install 3.8.1 -v + CONFIGURE_OPTS=--enable-optimizations pyenv install 3.8.2 -v This may take a long time to complete, depending on your hardware. For some machines (such as Raspberry Pis and micro-tier VPSes), it may take over an hour; in this case, you may wish to remove @@ -334,7 +334,7 @@ After that is finished, run: .. code-block:: none - pyenv global 3.8.1 + pyenv global 3.8.2 Pyenv is now installed and your system should be configured to run Python 3.8.