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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:45:06+00:00 2026-06-03T04:45:06+00:00

I am using pip install on a mac to get my python requirements for

  • 0

I am using pip install on a mac to get my python requirements for a django website.

I got pip from MacPorts

port install pip-2.7

Now the problem is the pip installs the packages in a location which is not in my python sys.path.

I just copied this bogus location

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/) 

to a location present in my sys.path

/Library/Python/2.7/)

Of course this worked ok, but I will use pip in the future so I need a persistent solution.

The question is how can I alter my sys.path to recognize that crap location or how do I tell pip to install dependencies somewhere else ?

  • 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-03T04:45:07+00:00Added an answer on June 3, 2026 at 4:45 am

    After a few attempts, setting the PYTHONPATH environmental var worked.

    Best way to achieve this is to add the following to the ~/.bash_profile:

    export PYTHONPATH=<bogus path here>
    

    Don’t forget to open a new terminal after changing.

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

Sidebar

Related Questions

I want to install a django-app without PIP. I'm using virtualenv with django. The
im using pip requirements file for the dependencies with virtualenv. im using ubuntu10.04LTS now
First, I installed lxml without using pip (Python 2.7.2 on Mac OS 10.6.8). Then,
When installing Selenium using the following command line: pip install -U selenium I get
I'm trying to install psycopg2, using pip, on Fedora. I get the message: pg_config
I am trying to install mysql-python using: pip install mysql-python the package is being
I'm using pip with virtualenv to package and install some Python libraries. I'd imagine
I'm trying to install a package from Github, using Pip, using the following syntax
I'm using pip to install a package from a git repository: pip install -e
I'm using twitter bootstrap and django. I've got my dependencies handled with a pip

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.