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


  • error: invalid command ‘bdist_wheel’ (
Had to install the wheel package. Everything was up to date but still giving the error.

pip install wheel


python bdist_wheel