python - Unable to install gittle library without root privileges -



python - Unable to install gittle library without root privileges -

i followed link install gittle library. when run command

$ pip install gittle

i error:

command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_victor /gittle/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-aoypet-record/install-record.txt --single-version-externally- managed --compile failed error code 1 in /tmp/pip_build_victor/gittle storing debug log failure in /home/victor/.pip/pip.log

my python version 2.7.6.

you need root privileges

since installing sistem-wide libraries, these placed in directories need root privileges writing in them (for illustration under /usr/lib). hence need either run command root:

class="lang-html prettyprint-override"># pip install gittle

or can utilize sudo:

class="lang-bash prettyprint-override">$ sudo pip install gittle what virtual environments?

the more efficient/pythonic way go using virtual environments. true if installing project-specific libraries, not required other projects. classical application of virtual environments when working on machine on don't have root privileges, @ university example.

once set virtual environment, if place in directory on have writing rights, can run:

class="lang-bash prettyprint-override">$ pip install gittle

to install gittle in case.

python installation pip root sudo

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -