I am trying to install packages into my Pycharm environment using pipenv. However, when I use pipenv install <package name>
, a popup appears on the top mentioning
"Package requirement not satisfied"
and asks me to "install requirements from Pipfile.lock"
When I started the project, I selected Pipenv as my project interpreter.Why is PyCharm asking to re-install a package from the Pipfile.lock file when I clearly used pipenv from the beginning and set the project to use Pipenv as an interpreter. Am I double installing ?
Update:
It is now reported as a bug in PyCharm, please vote for the issue:
https://youtrack.jetbrains.com/issue/PY-34622
The solution is in this answer on the JetBrains support forums.
The steps are as follows:
I'm not sure why this problem occurs, but it seems to solve it when it comes up.
EDIT 07/29/19:
This bug has been fixed in the 2019.2 Release of PyCharm.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With