I created a virtual env on my own system, then I upload it on pythonanywhere. Now I can use
source command and activate it, but when I use
python command in activated mode, the python of the pythonanywhere's server runs instead of my venv's python. How can I solve it?
(.vi) 20:52 ~/project $ which python /usr/bin/python (.vi) 20:52 ~/project $ python Python 2.7.12 (default, Dec 4 2017, 14:50:18) [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> exit() (.vi) 20:52 ~/project $
I expected when I run
which python command, It shows
~/project/.vi/..../python3.7. I had installed python3.7 on my virtual env and when I run
python command I see the console of python2 on bash.
Is there any other ways to carry my installed libraries with my script? Is it a good way to use the virtual envs?