Failed to create virtual environment in PyCharm June 7, 2023 by Tarik I had the same problem. I needed to install package python3-venv.