From 4b04905ff8b3639421ba3924bb31f6c2255f680e Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 16 Dec 2020 15:10:01 +1000 Subject: [PATCH] mention requirements.txt in editing docs --- docs/development.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/development.md b/docs/development.md index b174773d0..2e9d5acff 100644 --- a/docs/development.md +++ b/docs/development.md @@ -153,6 +153,11 @@ PyCharm or IntelliJ IDEA seems to give the best Python editing experience. Make you build/run Anki first, as code completion depends on the build process to generate a bunch of files. +After telling PyCharm to create a new virtual environment for your project, locate +pip in the virtual environment, and run `pip install -r pip/requirements.txt` to install +all of Anki's dependencies into the environment, so that code completion works for them. +Then run `pip install pyqt5 pyqtwebengine` to install PyQt. + Visual Studio Code + the Python extension does support code completion, but currently seems to frequently freeze for multiple seconds while pinning the CPU at 100%. Switching from the default Jedi language server to Pylance improves the