[ spredic @ 09.02.2016. 17:13 ] @
U proslosti sam uspevao da pokrenem ovo, ali sam promenio VPS i sad ne mogu. evo kako izgleda situacija: ./manage.py runserver 0.0.0.0:8080 Code: Traceback (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 probao sam sudo, python, python3.4, python2.7, ispred ./manage, ali bez uspeha. iako django nije najnoviji, trebalo bi da radi. (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'] svi zahtevi su ispunjeni samo nije uradjen upgrade: (env)root@mx:~/mercury# pip install -r requirements.txt Code: 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)) zna li neko kako ovo da resim? doduse kad probam python3.4 import i print sys.path, nece da izbaci. Code: ImportError: No module named 'sys.path'; 'sys' is not a package >>> print sys.path File "<stdin>", line 1 print sys.path ^ SyntaxError: Missing parentheses in call to 'print' |