Skip to content Skip to sidebar Skip to footer

Unable To Install Gittle Library Without Root Privileges

I followed this link to install Gittle library. But when I run a command $ pip install gittle I get an error: Command /usr/bin/python -c 'import setuptools, tokenize;__file__='

Solution 1:

You Need Root Privileges

Since you are installing sistem-wide libraries, these usually will be placed in directories which need root privileges for writing in them (for example anything under /usr/lib). Hence you need to either run the command as root:

# pip install gittle

Or you can use sudo:

$ sudo pip install gittle

What About Virtual Environments?

The more efficient/pythonic way to go about this would be using virtual environments. This is especially true if you are installing project-specific libraries, which will most probably not be required by other projects. Another classical application of virtual environments is when you are working on a machine on which you don't have root privileges, say at university for example.

Once you set up a virtual environment, if you place it in a directory on which you have writing rights, you can run:

$ pip install gittle

to install gittle in this case.

Post a Comment for "Unable To Install Gittle Library Without Root Privileges"