# Pycharm setup for add-on development with new Bazel build system

**URL:** <https://forums.ankiweb.net/t/pycharm-setup-for-add-on-development-with-new-bazel-build-system/5231>\
**Category:** Development\
**Created:** [November 19, 2020, 3:12pm UTC](https://forums.ankiweb.net/t/pycharm-setup-for-add-on-development-with-new-bazel-build-system/5231 "2020-11-19T15:12:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcs](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@mcs](https://forums.ankiweb.net/u/mcs)\
**Post date:** [November 19, 2020, 3:12pm UTC](https://forums.ankiweb.net/t/pycharm-setup-for-add-on-development-with-new-bazel-build-system/5231/1 "2020-11-19T15:12:28Z")

</div>

Hi all,

I have been using PyCharm to work on add-on development, and I had a configuration setup working to run anki from within PyCharm to debug my add-ons.

I am having difficulty now since the change to the Bazel build system, which I must admit I do not have any experience with. Previously, in the ‘Run/Debug Configuration’, I would set the Script Path to ‘…/anki/qt/runanki’ and the Python Interpreter to ‘…/anki/pyenv/bin/python’. After running ‘./run’ per the new development readme instructions, a pyenv folder doesn’t seem to be created any longer.

If anyone could help me understand better how the new build system works and how to configure it to run within Pycharm, it would be greatly appreciated 🙂

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [November 20, 2020, 10:38am UTC](https://forums.ankiweb.net/t/pycharm-setup-for-add-on-development-with-new-bazel-build-system/5231/2 "2020-11-20T10:38:06Z")

</div>

The docs describe how you can build wheels - have you tried that? Once they’re built, you can pip install those wheels into a virtual environment in a location of your choosing.

---

<div class="post-metadata">

**Author:** ![mcs](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@mcs](https://forums.ankiweb.net/u/mcs)\
**Post date:** [November 20, 2020, 10:28pm UTC](https://forums.ankiweb.net/t/pycharm-setup-for-add-on-development-with-new-bazel-build-system/5231/3 "2020-11-20T22:28:14Z")

</div>

Thanks so much, I’ll give that a try!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [May 1, 2023, 3:20am UTC](https://forums.ankiweb.net/t/pycharm-setup-for-add-on-development-with-new-bazel-build-system/5231/4 "2023-05-01T03:20:14Z")

</div>

Closed on May 1, 2023, 3:20am UTC


