Home / Python / Python / Installation
Virtual environment
python3.12 -m venv ~/.venv/
N.B. We use version 3.12 to make TensorFlow work.
N.B. Avoid the proprietary Anaconda distribution.
python-interpreteris for non-interactive use, andpython-shell-interpreteris for interactive use.
(with-eval-after-load 'python
(let ((interpreter "~/.venv/bin/ipython"))
(setopt python-interpreter interpreter
python-shell-interpreter interpreter)))