Forums

Python Anywhere and Anaconda

How can I include all the packages I am using so my flask application can access them? I know normally we would do pip install in a bash console. However, I am using anaconda as a package manager and all of the installed packages aren't where it would normally be stored if I were just using python and pip.

do you mean you are using conda instead of pip?

there are two things you could try.

  1. find where the conda virtualenv is, and put that into the webapp config for virtualenvs path (eg: just do a which python from within the conda env)
  2. do a conda list -e > requirements.txt, and then later pip install requirements.txt etc to transfer it over