Forums

Django installation problems

I want to learn Django so I'm following this (https://help.pythonanywhere.com/pages/VirtualEnvForNewerDjango) guide to set-up version 1.8. However when I type mkvirtualenv --python=/usr/bin/python3.4 django18 into the console I get an error.

mkvirtualenv --python=/usr/bin/python3.4 django18 File "<stdin>", line 1 mkvirtualenv --python=/usr/bin/python3.4 django18 ^ SyntaxError: invalid syntax

Heeeeeeelp.

Hi huw, are you running that command in a Bash console or a Python console? Bash is what you want...

PS do check out this page if you haven't already: Following the official Django Tutorial on PythonAnywhere