Skip to content

Creating a Python Project using PowerShell

powershell
$project_name = "project_a"
mkdir $project_name
cd $project_name
New-Item -Path "main.py" -ItemType File
Set-Content -Path "main.py" -Value "print(1)"
poetry init --name $project_name --author='none' -n
poetry run python main.py

Released under the MIT License.