save file 'venv In Zed.md'
This commit is contained in:
parent
a0c5962608
commit
fff32beb66
1 changed files with 18 additions and 0 deletions
18
cmd/venv In Zed.md
Normal file
18
cmd/venv In Zed.md
Normal 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`
|
||||
Loading…
Add table
Reference in a new issue