flask - Moved my project dir, where did my dependencies go? -
i moved project directory new location. now, when try , run application locally, receive "importerror: no module named flask"
here work flow:
$ mv my_project/ ~/new_dir/ $ cd ~/new_dir/my_project $ source venv/bin/activate (venv)$ python my_app traceback (most recent call last): file "my_app.py", line 1, in <module> flask import flask, request importerror: no module named flask
i realize path issue, want understand why happens , how fix it. i'm more interested in explanation quick solution.
flask still in venv/lib/python2.7/site-packages/ directory, python not finding it. never explicitly added previous location of site-packages path, i'm assuming pip and/or venv did behind scenes magic me. what's going on?
thanks!
Comments
Post a Comment