If you are on Windows, use WSL2 to run this stuff.
sudo apt-get update
sudo apt-get install python3 python3-pip
pip3 install --user virtualenvwrapper
echo 'export PATH=$HOME/.local/bin:$PATH' >>~/.profile
echo 'export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3' >>~/.profile
echo 'source $HOME/.local/bin/virtualenvwrapper.sh' >>~/.profile
source ~/.profile
The "vendored" version is recommended by Poetry itself.
curl -sSL https://install.python-poetry.org | python3 -
These are good to have available globally under your user
pip3 install --user git-up pre-commit cookiecutter
See SSH tips & tricks document.
Here we assume the project name is "mycoolapp"
mkvirtualenv mycoolapp
The environment will be created and activated, to activate it again later (or in another shell window) just use
workon mycoolapp
See the template you are going to use for details.
If on native Linux (or running PyCharm under WSL) then you should be able to just choose from the existing virtualenvs. If the list is not up-to-date the correct path can be seen with command:
which python3
When the virtualenv is activated.
On Windows TBD