save file 'venv In Zed.md'

This commit is contained in:
anonymous 2024-02-24 12:55:10 +01:00
parent a0c5962608
commit fff32beb66

18
cmd/venv In Zed.md Normal file
View file

@ -0,0 +1,18 @@
## 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`