- as Daniel Roseman noted - the syntax error came from using
- the permission problem is caused by trying to install into system
Python, what requires
sudo or being
Install into system Pyhton (using sudo)
$ sudo pip install mezzanine
This will spoil the system Python and is not much recommended. It would
be well acceptable if you are e.g. under Docker.
Install into user profile
$ pip install --user mezzanine
It will install the package into user scheme and will not spoil system
This is more acceptable, but can soon become messy environment to run
code in, as Python will import form user scheme, sometime from system.
Assuming you have virtualenv installed:
$ cd ~/projects
$ mkdir mezza
$ cd mezza
$ virtualenv venv
$ source venv/bin/activate
(venv)$ pip install mezzanine
$ pip freeze
(there will be a bit more lines from freeze).
This installs into virtualenv, which is easy to recreate, destroy, and
does not mess up with other environments.
virtulanevwrapper you will get set of additional
tools, which will simplify your environment a lot.