0
0

Macで`python3.10.x`のvenv環境をつくる際の備忘録

Posted at

Macでpython3.10.xのvenv環境をつくる際の備忘録

背景

記事作成時点の最新環境だとpython3.12.xが使われる。
しかし、python3.10.xを使いたい場合もある。

install

homebrewによりpython3.10をインストールする

brew install python@3.10

python3.10venvを利用

python3.10 -m venv venv3.10

activateして、バージョンが3.10.xになっていればOK

$ source venv3.10/bin/activate
(venv3.10)$ python --version
Python 3.10.14

ubuntu環境でも同様のことをしたい場合、上記に沿ってpyton3.10.xをインストールすればOK
https://gist.github.com/rutcreate/c0041e842f858ceb455b748809763ddb

sudo apt install python3.10 python3.10-venv python3.10-dev

参考

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