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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -