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

  • SEARCH
  • Home
  • 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 8837323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:41:42+00:00 2026-06-14T09:41:42+00:00

I am trying to install a new module with easy_install. When I run a

  • 0

I am trying to install a new module with easy_install.

When I run a command like

sudo easy_install foo

foo gets installed to ~/Library/Python/2.7/site-packages/.

This seems to be wrong since I can’t use any of the installed modules from within my python shell.

From what I have understood after reading through some SO posts related to easy_install issues the correct directory should be /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
, since my python shell uses /usr/local/bin/python which is symbolically linked to said directory.

How do I tell easy_install to use this directory rather then the current one?

Thank you,

Julian

EDIT: I reran the setuptools installation with the option -d /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages. The output was as follows:

Processing setuptools-0.6c11-py2.7.egg
Removing /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg
Copying setuptools-0.6c11-py2.7.egg to /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
setuptools 0.6c11 is already the active version in easy-install.pth
Installing easy_install script to /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
Installing easy_install-2.7 script to /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages

Installed /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg
Processing dependencies for setuptools==0.6c11
Finished processing dependencies for setuptools==0.6c11

The output of e.g. sudo easy_install mechanize is

Searching for mechanize
Best match: mechanize 0.2.5
Processing mechanize-0.2.5-py2.7.egg
mechanize 0.2.5 is already the active version in easy-install.pth

Using /Users/julian/Library/Python/2.7/site-packages/mechanize-0.2.5-py2.7.egg
Processing dependencies for mechanize
Finished processing dependencies for mechanize

It seems that easy_install is still using the wrong directory?! Help is highly appreciated. Thank you.

  • 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-14T09:41:44+00:00Added an answer on June 14, 2026 at 9:41 am

    It turns out that I was having an issue with my PATH. Moving /usr/local/share/python to the top of my PATH and reinstalling python through homebrew fixed my problems.

    In case the problem persists, definitely try running brew doctor and follow the advice there!

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

Sidebar

Related Questions

I'm new to Python and am trying to install this module: http://www.catonmat.net/blog/python-library-for-google-search/ There is
I'm new to python and is trying to install the pyimage module. http://code.google.com/p/pyimage/ I'm
I am trying to install a python module with the standard python setup.py install
I am trying to install the python-oath2 library in my Python virtual environment running
I'm new to Perl and am trying to install the Net::SFTP module by running
I am trying to install ZODB on a new machine. I would like to
When I am trying to install Sequoyah in Eclipse from Help -> Install New
I have a new install of Ubuntu and trying to use the php's mail()
I'm very new to Linux and programming on Linux. I'm trying to install OpenAL
I'm new to Android development. My OS is WinXP. I'm trying to install two

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.