1👍
✅
I manage to solve my problem by creating the virtualenv within PyCharm to the project directory.
Now installing packages from terminal or/and within PyCharm will work for both terminal and PyCharm.
7👍
How did you add the virtual environment to PyCharm?
The correct way is:
- Open preferences
- Open Project
- Open Project Interpreter
- Select the … at the end of dropdown where you can select your interpreter.
- Choose Add local
- Select the python link in your own created virtual
environment /bin directory. - Finally, click ok, and your virtual
environment should be visible in PyCharm with all the bells and
whistles.
HTH
OK. I read your answer and obviously the work around did it for you. Still strange. Are you on 2016.1.4?
👤ejah
- [Django]-How do I properly configure my app to use the Django phonenumber field module?
- [Django]-DJANGO: Change field size of ModelMultipleChoiceField?
- [Django]-How to stay DRY with Django model field definitions
- [Django]-Django – clean_field() is not being called for updates on admin inline form
- [Django]-How to have nested url namespaces with a dynamic first part in Django
Source:stackexchange.com