0

I'm developing web application on raspberry pi using Django. I set up django, virtual enviroment and server on raspberry pi. Now I want to write code in pyCharm and deploy it on remote machine(raspi). I've copied all folders (virtualenviroment also) to my pc. I'm wondering- how can I 'take' this virtual enviroment from raspberry to have also working on pyCharm? I've tired:

C:\MyPath\AquaControl>activate AquaControlEnv Could not find conda environment: AquaControlEnv 

and by using

conda info --envs C:\MyPath\AquaControl>conda info --envs # conda environments: # base * C:\Users\Me\Anaconda3 

Only this one from PC is discoverable. Or I can create local virtual enviroment and this will not cause any problems with deployment on remote?

2
  • 1
    You don't copy virtual environments (especially not between different architectures). Recreate them using pip freeze > requirements.txt and pip install -r requirements.txt. Commented Oct 14, 2018 at 12:27
  • 1
    check remote interpreter in pycharm. jetbrains.com/help/pycharm/… Commented Oct 14, 2018 at 12:59

1 Answer 1

1

In case anyone will face similar problem: After executing command from Klaus.D I had another problem => packages didn't want to install. My default python version on raspberry was 2.7 but in virtual enviroment I had python 3.5 and on pyCharm I was working with Django 2.1 which needed python 3.5. I changed default version and then packages installed successfully. My workflow is: do a code on pyCharm, upload on raspi and with putty and virtualenv I run server.

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

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.