Update venv.md

This commit is contained in:
Sander Hautvast 2024-02-24 12:53:31 +01:00 committed by GitHub
parent 582d1454da
commit 0c86d406b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,5 +1,17 @@
* create `python -m venv [env]`
* activate `source [env]/bin/activate`
## New python project with virtual env in ZED
* create $PROJECT `mkdir project; cd project`
* create `python -m venv .venv`
* activate `source .venv/bin/activate`
* `deactivate`
* create pyrightconfig.json
```json
{
"venvPath": ".",
"venv": ".venv"
}
```
* `pip install ...`
* `zed .`