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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:44:55+00:00 2026-06-18T11:44:55+00:00

Running Python 2.7.3, installed with HomeBrew, on a mac. Installed several packages using PIP,

  • 0

Running Python 2.7.3, installed with HomeBrew, on a mac.

Installed several packages using PIP, including virtualenv. (Using virtualenv as an example, but NONE of the packages work.)

When I try to run them in terminal, it fails as follows:

$ virtualenv venv --distribute
-bash: virtualenv: command not found

Alternatively:

$ python virtualenv.py venv
/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'virtualenv.py': [Errno 2] No such file or directory

A few other points that may help:

$ which python
/usr/local/bin/python
$ pip freeze
MySQL-python==1.2.4
...
virtualenv==1.8.4
$ echo $PATH
/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin
$ echo $PYTHONPATH
/usr/local/lib/python2.7/site-packages:

By default, the $PYTHONPATH was blank, I changed it in .bash_profile (didn’t help). VirtualEnv does exist at that path.
I also tried adding this path to the .profile $path, but that didn’t help either, so I removed it.

On the HomeBrew Python page it seems to somewhat relate to this, but I am new to Python, and can’t figure it out. Have spent some hours DuckDuckGo’ing with nothing gained.

Any help would be greatly appreciated.

EDIT: Updated to reflect actual usage.

  • 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-18T11:44:56+00:00Added an answer on June 18, 2026 at 11:44 am

    The problem was that I had not added Python to the system $PATH.

    At the end of the brew install it says (viewable by typing brew info python):

    Executable python scripts will be put in:  
       /usr/local/share/python
    so you may want to put "/usr/local/share/python" in your PATH, too.
    

    So, simply had to open .profile and paste it in, and all packages work.

    Much thanks to MistyM on the Brew IRC channel for pointing that out!

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

Sidebar

Related Questions

I installed Python Mock module using PIP. When I try to import mock running
I'm running Python 2.6.4 on Mac Snow Leopard. I installed pycurl using: sudo env
I recently installed python 2.7.2 on my Mac running OSX 10.6.8. Previously, I had
I installed igraph for python in my mac but I can't import it. First
I installed Boost with homebrew( brew install boost ) on my Mac running Lion
I am running Python 2.7 under Mac OS 10.6.4, and I just installed wxPython
I have two versions of python installed on my mac running OSX Lion. The
I have Flask, Babel and Flask-Babel installed in the global packages. When running python
I am trying to SFTP from Python running on windows and installed Paramiko as
I'm trying to get Pandas installed with Python 2.5 on a machine running Windows

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.