Skip to content

localVirtEnv

holzkohlengrill edited this page Dec 15, 2023 · 2 revisions

Venv in Python

Bash

python3 -m venv venv
#               ^^^^---- venv name
./venv/bin/activate
# If nothing happens try: `source ./venv/bin/activate`
# pip3 install <packages>

# If you installed the `develop` packages you can do something like
pushd ../../my-package/
python3 setup.py develop -U
popd

Powershell

python.exe -m venv venv
.\venv\Scripts\activate
pip3.exe install <packages>

pushd .\..\..\my-package\
python.exe setup.py develop -U
popd

-> deactivate exits venv.

Python 3

(un)fold
Snippets
General
Libs

Linux/bash

(un)fold
Guides
Scripts

Git

(un)fold

C/C++

(un)fold

Video

(un)fold

Databases

(un)fold

Misc

(un)fold

Windows

(un)fold

Mac

(un)fold

SW recommendations

(un)fold

(Angular) Dart

(un)fold
Clone this wiki locally