$ python -m venv py38
> python -m venv py38
$ . py38/bin/activate (py38) $
$ source py38/bin/activate (py38) $
> py38/bin/activate (py38) >
(py38) $ python -m pip install -U pip
(py38) $ python -m pip install --upgrade pip
(py38) > python -m pip install -U pip
(py38) > python -m pip install --upgrade pip
(py38) $ deactivate
(py38) > deactivate
(pyJupyterLab) $ pip freeze
Traceback (most recent call last): File "/home/tomoyan/pyJupyterLab/bin/pip", line 5, infrom pip._internal.cli.main import main ModuleNotFoundError: No module named 'pip'
(pyJupyterLab) $ cat pyvenv.cfg
home = /usr/bin include-system-site-packages = false version = 3.10.6
(pyJupyterLab) $ python -V
Python 3.11.1
(pyJupyterLab) $ cd lib (pyJupyterLab) $ ln -s python3.10/ python3.11 (pyJupyterLab) $ ll
合計 4 drwxr-xr-x 1 tomoyan tomoyan 26 5月 21 2022 python3.10 lrwxrwxrwx 1 tomoyan tomoyan 11 2月 10 12:28 python3.11 -> python3.10/ drwxr-xr-x 1 tomoyan tomoyan 26 7月 6 2021 python3.9
(pyJupyterLab) $ pip freeze
aiohttp==3.8.1 aiosignal==1.2.0 anyio==3.6.1 ...