[Django]-PyCharm doesn't recognise my VirtualEnv installed modules

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:

  1. Open preferences
  2. Open Project
  3. Open Project Interpreter
  4. Select the … at the end of dropdown where you can select your interpreter.
  5. Choose Add local
  6. Select the python link in your own created virtual
    environment /bin directory.
  7. 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

Leave a comment