14π
The solution is in this answer on the JetBrains support forums.
The steps are as follows:
- Go to File > Invalidate Caches/Restart⦠and press Invalidate and Restart.
- Once restarted, add the interpreter back, wait for the stubs to be rebuilt and then check to if the problem has been resolved.
- If not, then first remove the pipenv interpreter as the project interpreter by going to File > Settings > Project: > Project Interpreter and setting the project interpreter to No Interpreter. Click Apply and OK. Then repeat steps 1 and 2 and see if it solves the problem.
Iβm not sure why this problem occurs, but it seems to solve it when it comes up.
EDIT 07/29/19:
2π
I had an old requirements.txt
laying around after switching to setup.py
and pip install -e .
.
Removed the requirements.txt
and the warnings disappeared.
- Executing a Django Shell Command from the Command Line
- Docker Django 404 for web static files, but fine for admin static files
- Django: Distinct foreign keys
- TypeError: cannot unpack non-iterable int object in Django views function
- Pycharm remote project with virtualenv
1π
Make sure that your paths are right.
for me, I was using venv, so its path should be the same path of the project + "/.venv"
that solved the problem for me.
and the same for pipenv:
0π
Iβm still running into this issue on 2020.3. I think itβs because when setting up the interpreter the python interpreter is in a virtualenv and the pipenv install is in $PYENV_ROOT/versions. To workaround this, I just set the interpreter as a virtualenv environment and manage pipenv through the CLI.
- Django logging β django.request logger and extra context
- Difference between self.request and request in Django class-based view
- Django on Heroku β Broken Admin Static Files
- Django Multi-Table Inheritance VS Specifying Explicit OneToOne Relationship in Models
- Use a django built in filter in code (outside of a template)