仮想環境作ろうとしたが、以下のようなエラーが発生。

 

$ python3 -m venv xxx
The virtual environment was not created successfully because ensurepip is not
available.  On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.

    apt-get install python3-venv

You may need to use sudo with that command.  After installing the python3-venv
package, recreate your virtual environment.

調べるといくつか解決策があり、以下の内容で作業して効果あり。

$ python3 -m venv --without-pip tcgn
$ cd tcgn
$ source bin/activate
(tcgn) $