Forums

How to import folders from virtual env from my computer to venv at PythonAnywhere?

Hi, I am not sure if my question is clear: I've been workin on my web app for which I have created virtual env. I have installed a lot of things there (since this is my first app, some of them are not necessary, but I can't even say which ones). Now I want to run my app at PythonAnywhere. I have created virtual env at PE, and have no idea how to transfer all files from venv at my computer to venv at PE. I cant imagine installing everything again using pip install. Any clues?

you should create a requirements.txt file from your local virtualenv (using pip freeze), and then yes, you should pip install -r requirements.txt on PythonAnywhere to install the packages.