notes/cmd/python.md
2024-05-08 13:30:59 +02:00

408 B

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

echo '{  "venvPath": ".",  "venv": ".venv"}' >pyrightconfig.json
  • pip install ...

  • zed .

  • to quit the venv: deactivate

  • generate requirements.txt

pip3 freeze > requirements.txt