mention requirements.txt in editing docs

This commit is contained in:
Damien Elmes 2020-12-16 15:10:01 +10:00
parent 266c19461f
commit 4b04905ff8

View file

@ -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 you build/run Anki first, as code completion depends on the build process to generate
a bunch of files. 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 Visual Studio Code + the Python extension does support code completion, but
currently seems to frequently freeze for multiple seconds while pinning the CPU 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 at 100%. Switching from the default Jedi language server to Pylance improves the