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 8506817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:41:45+00:00 2026-06-11T02:41:45+00:00

I recently reinstalled my OS X and my python setup is gone with it.

  • 0

I recently reinstalled my OS X and my python setup is gone with it. I can’t remember how I set it up before and now I am having a lot of trouble. I followed this guide (http://www.thisisthegreenroom.com/2011/installing-python-numpy-scipy-matplotlib-and-ipython-on-lion/#python) up to the part that makes a sym link. (CTRL+F this in the webpage: “ln -s /usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/Current”)

It didn’t produce “/usr/local/bin/python” when I put in “which python”. Instead, it gave me “/usr/bin/python”.

What am I doing wrong? This is so frustrating! How can I fix this, or is there a better step by step tutorial that allows me to install python via Homebrew and then install virtualenv on top of that python installation?

  • 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-11T02:41:47+00:00Added an answer on June 11, 2026 at 2:41 am

    FINALLY SOLVED IT!

    the PATH variable has a short circuit logic to it. It goes down each variable(folder locations like “/etc/paths”, “~/.profile”, etc). When it finds your command (“python”) in the folder it is looking at, that’s what the terminal gives you.

    To solve my problem, you have to put “/usr/local/bin”(where the homebrew python installation is) ahead of “/usr/bin”(where the default OS X python installation is.). To do this, open “/etc/paths” in terminal with:

    open /etc/paths
    

    this will open up the “paths” file in your default text editor. Now it should look something like this:

    /usr/bin
    /bin
    /usr/sbin
    /sbin
    /usr/local/bin
    

    Since the file is in a protected folder, its not going to let you edit it directly. When you edit the file, it will ask to make a duplicate.

    Save the duplicate to desktop, and move “/usr/local/bin” to the top, like this:

    /usr/local/bin
    /usr/bin
    /bin
    /usr/sbin
    /sbin
    

    Remove the actual file(“/etc/paths”) and copy your duplicate file from the desktop. Be sure to remove the .txt extension on the duplicate. If you are not sure how to do this, go to Finder > Preferences > Advanced and check Show all filename extensions. Rename the file to “paths”

    Log out and log back in to refresh it and you are done!

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

Sidebar

Related Questions

I recently reinstalled OSX, and am having a slight annoyance with XCode. Before I
i am on windows/apache/mysql/php setup. i have recently reinstalled PHP. but i found that
I've removed recently rvm and reinstalled it, that worked fine. But now, when I'm
I am developing a spree application ,I recently removed and reinstalled ruby 1.9.3, now
I've been using python for a while but I can't remember how I used
I've recently reinstalled OSX, and now, when trying to build a new version of
Recently uninstalled and reinstalled eclipse with android sdk. Now I don't see the properties
I recently upgraded to osx 10.8 (Mtn Lion) and now I am having problems
This is a general question but I'll illustrate it with Eclipse. I recently reinstalled
I've recently reinstalled WAMP and lost my old configuration. I've looked this up but

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.