【发布时间】:2019-03-19 18:34:29
【问题描述】:
我需要安装 python 3.5.6 版。安装 python 3.5.6 有什么要求。
python 3.6 已经安装在我的本地机器上
我尝试了什么?
- 我查看了Python downloads。为 python3.5.6 下载了压缩包。
- 使用以下命令集安装它
wget https://www.python.org/ftp/python/3.5.6/Python-3.5.6.tar.xz tar -xf Python-3.5.6.tar.xz cd Python-3.5.6 sudo apt-get install libbz2-dev libsqlite3-dev build-essential ./configure make sudo make install - 安装后运行
python3 -V时显示python 3.6。
预期行为
python3 -V 命令应该显示python3.5.6
我做错了什么?
【问题讨论】:
-
您可以使用 Python 3.6 运行所有 Python 3.5 程序(除了可能的二进制依赖项)。为什么需要这样做?
-
我有具体的安装要求,依赖于 python 3.5.6
标签: python-3.x ubuntu