Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7738733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T08:20:37+00:00 2026-06-01T08:20:37+00:00

I want to install Sphinx 1.1.3 for python 2.6. However, I don’t have sudo

  • 0

I want to install Sphinx 1.1.3 for python 2.6. However, I don’t have sudo rights. So instead of installing it in the default place, I want to set a different location, using –prefix. Doing the following:

-bash-3.2$ easy_install Sphinx-1.1.3-py2.6.egg --prefix=/homes/ndeklein/python2.6/site-packages/

gives me:

error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

[Errno 13] Permission denied: '/usr/lib/python2.4/site-packages/test-easy-install-18534.write-test'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

/usr/lib/python2.4/site-packages/

Am I typing something wrong with the prefix? Also, what I could use instead (which I’ve used with other packages):

python setup.py install --home=/homes/ndeklein/python2.6/site-packages/

but I can’t find the setup.py script. I’m guessing that EGGs don’t have a setup.py script, is that true?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T08:20:38+00:00Added an answer on June 1, 2026 at 8:20 am

    This website discusses non-root python installs. It might be useful to you…

    http://www.astropython.org/tutorials/user-rootsudo-free-installation-of-python-modules7/

    To quote a little bit of it:

    A user configuration file, ~/.pydistutils.cfg, will override the internal system path for python package installations, redirecting the built libraries (lib), scripts (bin) and data (share) into user owned and specified directories. You must simply tell the python installer where theses directories are located.

    The user file, ~/.pydistutils.cfg, has the following lines, using a pretty obvious syntax:

    [install]
    install_scripts = ~/usr/bin
    install_data = ~/usr/share
    install_lib = ~/usr/lib/python2.4/site-packages
    

    Of course, whatever directories you specify there should probably exist and you should put them at the front of your PYTHONPATH:

    export PYTHONPATH=~/usr/lib/python2.4/site-packages:${PYTHONPATH}
    

    It also looks like more modern python installations (compared to the things in the link) should be able to use the ~/.local directory:

    easy_install --prefix=~/.local ...
    

    There is also:

    easy_install --user ...
    

    which will install to a user-specific site directory.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to install this python package: http://pypi.python.org/pypi/netifaces/0.5 But I don't know how and
I want install Android version 1.6 SDK. I already have Android development setup with
I want to install a set of Open Type Fonts as part of my
I want to install rsync on windows xp. I have searched the web, but
I want to install latest stable version of Sphinx ( sphinxsearch.com ) on Mac
I want to install Apache Thrift into a python virtualenv. How can I do
I want to install Lifty . I have created c:\sbt\plugins\build.sbt with the following single
I want to install a Java Me application on my android phone. I have
I want to install the iPhone 4.0 SDK, but I don't want to lose
I want to install MSI package under user level and set several registry keys

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.