Update venv.md
This commit is contained in:
parent
582d1454da
commit
0c86d406b9
1 changed files with 14 additions and 2 deletions
16
cmd/venv.md
16
cmd/venv.md
|
|
@ -1,5 +1,17 @@
|
||||||
* create `python -m venv [env]`
|
## New python project with virtual env in ZED
|
||||||
* activate `source [env]/bin/activate`
|
|
||||||
|
* create $PROJECT `mkdir project; cd project`
|
||||||
|
* create `python -m venv .venv`
|
||||||
|
* activate `source .venv/bin/activate`
|
||||||
* `deactivate`
|
* `deactivate`
|
||||||
|
* create pyrightconfig.json
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"venvPath": ".",
|
||||||
|
"venv": ".venv"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
* `pip install ...`
|
||||||
|
* `zed .`
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue