3

I am using a virtualenv on a remote machine and want simulate the same env on my mac so that I can use pycharm for further development.

My virtualenv is in the path , "~/venv"

I have created the ~/.pycharmc with following contents(as suggested in "How do I activate a virtualenv inside PyCharm's terminal?")

source ~/venv/bin/activate

/bin/bash --rcfile ~/.pycharmrc

works fine and creates the necessary venv, but it is not working in my pycharm environment(attaching image at the end)

What am I missing ?

enter image description here

2 Answers 2

7

Go to Settings > Project Interpreter > Python Interpreters > Add

Navigate to ~/venv/bin and select your python binary. PyCharm notices that it is an virtual environment and supports it completely. Make sure to select the added environment as your projects interpreter.

Sign up to request clarification or add additional context in comments.

Comments

0

The problem was that I had copied the virtualenv folders from the remote machine. Once I installed all the dependencies and added it in the list of virtualenvs of PyCharm. It works fine now .

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.