[Fixed]-Sudo pip install django Syntax Error

1👍

Using sudo switches to root and it has no knowledge of your virtualenv.
Just run it without sudo. It is not needed with virtualenv.

0👍

SyntaxError: invalid syntax

Is an error you get from the python prompt not from a system shell. What’s the error message you’re getting when you run pip from the shell?

0👍

Thanks to this post.

Using the command:

sudo chown -R aquasolid:aquasolid /usr/virtu/fmenv/

Now it works like a charm.

Leave a comment