# Pycharm stubs not found

**URL:** <https://community.viktor.ai/t/pycharm-stubs-not-found/291>\
**Category:** Need help? Ask here!\
**Created:** [22 February 2022 13:59 UTC](https://community.viktor.ai/t/pycharm-stubs-not-found/291 "2022-02-22T13:59:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Enrique](https://community.viktor.ai/user_avatar/community.viktor.ai/enrique/32/39_2.png) [@Enrique](https://community.viktor.ai/u/Enrique)\
**Post date:** [22 February 2022 13:59 UTC](https://community.viktor.ai/t/pycharm-stubs-not-found/291/1 "2022-02-22T13:59:54Z")

</div>

We are having problems trying to link the viktor SDK to PyCharm when using Linux WSL. We are missing the pip-cache folder mentioned in the documentation. Is this a know problem?  
Right now we are getting an ‘Unresolved reference’ on everything from the viktor SDK.

> **[Development tools & tips - Integrated Development Environment (IDE) |...](https://docs.viktor.ai/docs/create-apps/development-tools-and-tips/ide/)**
>
> Configuring your favorite code editor for writing apps with VIKTOR

![afbeelding](https://community.viktor.ai/uploads/default/original/1X/d1fae53e3ad9ca14261ac7496efdcb5491172e2a.png)

---

<div class="post-metadata">

**Author:** ![rdejonge](https://community.viktor.ai/letter_avatar_proxy/v4/letter/r/ba8739/32.png) [@rdejonge](https://community.viktor.ai/u/rdejonge)\
**Post date:** [22 February 2022 14:38 UTC](https://community.viktor.ai/t/pycharm-stubs-not-found/291/2 "2022-02-22T14:38:14Z")

</div>

Hi Enrique,

Are you using a virtual environment as isolation mode? In that case the dependencies of the app are not installed in the viktor-installs folder, but inside the virtual environment. If you are using a virtual environment you can select the project interpreter from the virtual environment folder. After doing this, Pycharm should automatically recognize the installed dependencies that are present in the virtual environment. I will adjust the docs to reflect the correct set up when using a virtual environment.

What is the Python version you are currently using? I have the idea that Pycharm currently doesn’t correctly recognize Python 3.10, which also gives me import errors. When switching to a different Python version I do get correct code completion.

---

<div class="post-metadata">

**Author:** ![Enrique](https://community.viktor.ai/user_avatar/community.viktor.ai/enrique/32/39_2.png) [@Enrique](https://community.viktor.ai/u/Enrique)\
**Post date:** [22 February 2022 14:44 UTC](https://community.viktor.ai/t/pycharm-stubs-not-found/291/3 "2022-02-22T14:44:44Z")

</div>

Hi Raoul,  
I am using venv as isolation mode and Python 3.8. Sadly I’m not able to select the venv folder as a project interpreter using Pycharm in combination with WSL. Could you share in here how you are able to do it?

---

<div class="post-metadata">

**Author:** ![rdejonge](https://community.viktor.ai/letter_avatar_proxy/v4/letter/r/ba8739/32.png) [@rdejonge](https://community.viktor.ai/u/rdejonge)\
**Post date:** [22 February 2022 14:55 UTC](https://community.viktor.ai/t/pycharm-stubs-not-found/291/4 "2022-02-22T14:55:53Z")

</div>

In that case my guess is that you are using the community edition of Pycharm. As you can see from this [link](https://www.jetbrains.com/help/pycharm/using-wsl-as-a-remote-interpreter.html) using a WSL based interpreter in Pycharm is a feature that is only available in Pycharm professional.

You could consider switching to Visual Studio Code as IDE, more information can be found [here](https://code.visualstudio.com/blogs/2019/09/03/wsl2), if you don’t want to get Pycharm Professional.

With the introduction of the virtual environments it is also possible to use VIKTOR on Windows, without Docker.

---

<div class="post-metadata">

**Author:** ![Puijterwaal](https://community.viktor.ai/user_avatar/community.viktor.ai/puijterwaal/32/20_2.png) [@Puijterwaal](https://community.viktor.ai/u/Puijterwaal)\
**Post date:** [24 February 2022 13:53 UTC](https://community.viktor.ai/t/pycharm-stubs-not-found/291/5 "2022-02-24T13:53:56Z")

</div>

Hi Enrique,

Are you using the most recent connexion of the CLI? I noticed for me the stubs have moved from `home/puijterwaal/viktor-apps/viktor-installs` to `home/puijterwaal/.viktor/viktor-installs` recently. I hope that fixes it!

What Raoul mentions is how to use the python3 version inside WSL for the python autocompletion, so you can ensure you have _exactly_ the same installation and same packages between PyCharm and the cli. However, I find its not too much of a hassle to also have a second venv in windows for PyCharm. I guess that is what you were doing before?

kind regards,  
Paulien

---

<div class="post-metadata">

**Author:** ![Enrique](https://community.viktor.ai/user_avatar/community.viktor.ai/enrique/32/39_2.png) [@Enrique](https://community.viktor.ai/u/Enrique)\
**Post date:** [24 February 2022 14:45 UTC](https://community.viktor.ai/t/pycharm-stubs-not-found/291/6 "2022-02-24T14:45:49Z")

</div>

Hi Paulien, I’m using venv in Windows now. Maybe is a second venv for Pycharm an option but I will leave as it is for now because of the time needed to change everything again. Thank you very much for your suggestion.
