简体   繁体   English

如何在已经包含 python 3.7.5 的 Ubuntu 19.10 上安装 python 3.6.5?

[英]How do I install python 3.6.5 on my Ubuntu 19.10 that already contains python 3.7.5?

I will accept two possible solutions:我将接受两种可能的解决方案:

  1. Both versions are installed side by side.两个版本并排安装。
  2. 3.7.5 is removed and 3.6.5 is then installed.删除 3.7.5,然后安装 3.6.5。

For this you can use pyenv .为此,您可以使用pyenv

https://realpython.com/intro-to-pyenv/ https://realpython.com/intro-to-pyenv/

If you have installed all packages and dependencies you can install different version like this:如果你已经安装了所有的包和依赖项,你可以像这样安装不同的版本:

pyenv install -v 3.6.5

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM