Skip to content

Instantly share code, notes, and snippets.

@mkrause-nps
mkrause-nps / use_virtualenv_windows10.md
Last active September 20, 2023 18:48
Using `virtualenv` on Windows 10

Use virtualenv on Windows 10

You need to have the utility virtualenv installed on our system (see my other gist).

Create virtual environment

Suppose you want to name your virtual environment .venv. Run

virtualenv --python '<absolute-path-to-Python-executable>/python.exe' .venv

@mkrause-nps
mkrause-nps / install_virtualenv_windows10.md
Created September 20, 2023 18:33
Install `virtualenv` on Windows 10

Install virtualenv on Windows 10

After having install pip (see my other gist), just run

pip install virtualenv

in PowerShell or Command Prompt.

Check installation by running pip list | Select-String "virtual". It should print the version it installed.

@mkrause-nps
mkrause-nps / install_pip_windows10.md
Last active September 20, 2023 18:39
Installing `pip` on Windows 10

Installing pip on Windows 10

Prerequisit

  • Python 3.x installed on your system
  • verify with py --version

Install pip

  1. Check out details here.

  2. Check if pip is installed on your system by running: py -m pip --version

  3. If not, download the pip installation script. In Command Prompt or PowerShell run: