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

then,

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
.\venv\Scripts\activate

PostgreSQL

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Bakground: pg_config is the configuration utility provided by PostgreSQL. This utility is used by various applications.

Solution:

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.

https://stackoverflow.com/questions/26717436/pg-config-executable-not-found-when-using-pgxnclient-on-windows-7-x64

Powershell env refresh

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

refresh-path

[

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…

Stack Overflowrob


](https://stackoverflow.com/questions/17794507/reload-the-path-in-powershell)

Before all

1
2
3
4
5
    python -m pip install -U pip setuptools

Then, download the visual C++ build tools

https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2019