0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

python3.8 から3.10 に切り替える方法

Posted at

経緯

アプリ開発をしようと思ったときに、下記のようなエラーが発出

ERROR: Package 'mihomo-1.1.7' requires a different Python: 3.8.10 not in '>=3.10'

環境

Ubuntu20.04 + Django4.2.7

対処法

  • まずPython3.10をインストール
sudo apt install python3.10
  • 一応確認
$ ls /usr/bin/ | grep python
dh_python2
python
python2
python2.7
python3
python3-config
python3.10
python3.10-config
python3.8
python3.8-config
python3.9
x86_64-linux-gnu-python3-config
x86_64-linux-gnu-python3.10-config
x86_64-linux-gnu-python3.8-config
  • バージョン切り替え
sudo ln -sf /usr/bin/python3.10 /usr/bin/python3
  • 確認
python3 -V

以上

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?