notes/cmd/venv In Zed.md
2024-02-24 12:55:10 +01:00

18 lines
312 B
Markdown

## New python project with virtual env in ZED
* create $PROJECT `mkdir project; cd project`
* create `python -m venv .venv`
* activate `source .venv/bin/activate`
* create pyrightconfig.json
```json
{
"venvPath": ".",
"venv": ".venv"
}
```
* `pip install ...`
* `zed .`
* to quit the venv: `deactivate`