Hi,
in the past I succeeded to start python server but now I changed VPS and I can't do it.
here is what I get, i tried to find an answer with google but no success:
./manage.py runserver 0.0.0.0:8080Traceback (most recent call last):
File "./manage.py", line 8, in <module>
from django.core.management import execute_from_command_line
ImportError: No module named django.core.management
I
tried sudo, python, python3.4, python2.7, before ./manage, but no
success. even if django is not upgraded, it should work, but it is not.
(env)root@mx:~/mercury# pip freeze|grep -i django
Django==1.8.3
(env)root@mx:~/mercury# python
Python 2.7.9 (default, Mar 1 2015, 12:57:24)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> import sys.path
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named path
>>> print sys.path
['', '/root/env/lib/python2.7', '/root/env/lib/python2.7/plat-x86_64-linux-gnu', '/root/env/lib/python2.7/lib-tk', '/root/env/lib/python2.7/lib-old', '/root/env/lib/python2.7/lib-dynload', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/root/env/local/lib/python2.7/site-packages', '/root/env/lib/python2.7/site-packages']
all requirements are met just it is not upgraded:
(env)root@mx:~/mercury# pip install -r requirements.txt
Requirement already satisfied (use --upgrade to upgrade): Django==1.8.3 in /root/env/lib/python3.4/site-packages (from -r requirements.txt (line 1))
Requirement already satisfied (use --upgrade to upgrade): mysqlclient==1.3.6 in /root/env/lib/python3.4/site-packages (from -r requirements.txt (line 2))
Requirement already satisfied (use --upgrade to upgrade): pycrypto==2.6.1 in /root/env/lib/python3.4/site-packages (from -r requirements.txt (line 3))
any help?