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.

Clone this wiki locally