type
Post
status
Published
slug
2022/05/30/1653917302720
summary
Ubuntu 18.04 将python 版本切换为 python3.7
tags
Ubuntu
Linux
category
Linux
icon
password
Property
Dec 5, 2022 03:28 PM
created days

环境准备

更新软件源缓存

apt update

安装 python3.7

apt install python3.7 python3-pip -y

配置

update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 100
# update-alternatives --query python3 [1/1902]Name: python3 Link: /usr/bin/python3 Status: auto Best: /usr/bin/python3.7 Value: /usr/bin/python3.7 Alternative: /usr/bin/python3.7 Priority: 100
# python3 -V Python 3.7.5

更新 pip

pip3 install --upgrade setuptools python3 -m pip install --upgrade pip

安装自己的依赖

pip3 install -i <https://pypi.tuna.tsinghua.edu.cn/simple> -r requirements.txt
notion image
 
欢迎加入喵星计算机技术研究院,原创技术文章第一时间推送。
notion image
 
wiki.osdev.org 系列之(四)- Required KnowledgeCentos7 更新内核版本

  • Waline
  • Utterance