Python virtual env on ubuntu

Python 3

sudo apt install python3-venv
cd <project_folder>
python3 -m venv venv
source venv/bin/activate

Python virtual env with pycharm

  • From existing virtual env that created as above

  • Create new virtual env

  • Install new package in virtual env

Issues

  • error: invalid command ‘bdist_wheel’ (https://stackoverflow.com/a/44862371)
Had to install the wheel package. Everything was up to date but still giving the error.

pip install wheel

then

python setup.py bdist_wheel