November 22, 2022 · Python Windows

Setup Python under windows

How to install Python 2.7 and 3.6 in Windows 10 [add python PATH]
This tutorial will describe how to install both Python versions (2.7 and 3.6) on a Windows 10 environment. Additionally, how to add python…
How To Set Up a Virtual Python Environment (Windows) — mothergeo 0.0.1 documentation


python2 -m ensurepip
python2 -m pip

python3 -m ensurepip
python3 -m pip

python3 -m pip install virtualenv

cd ProjectDir

* manually config pycharm/intellj virtualenv , the ide will do all the jobs
mkdir .venv

* only run the following ifyou are from CLI
python3 -m virtualenv venv
python3 -m pip install -r .\requirements.txt


Bakground: pg_config is the configuration utility provided by PostgreSQL. This utility is used by various applications.


    Install PostgreSQL.

    Set the path. System Properties > Advanced

    PATH:C:\Program Files (x86)\PostgreSQL\9.4\bin\;

From this point on, any application that requires pg_config can find it here.

I suggest this method because the build is directly from the author. You can also find viable alternatives for standalone pg_config builds.

Powershell env refresh

function refresh-path {
    $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") +
                ";" +

Reload the path in PowerShell
If I have an instance of PowerShell ISE running and I install something that modifies the PATH or I modify it in any way outside of PowerShell then I need to restart PowerShell for it to see the up...

Before all

python -m pip install -U pip setuptools

Then, download the visual C++ build tools

Setup template language