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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:59:11+00:00 2026-05-26T04:59:11+00:00

While trying to build my python by adding numpy to it I managed to

  • 0

While trying to build my python by adding numpy to it I managed to have created problems somewhere. Now, even though I have numpy and other packages like BeautifulSoup installed, I’m unable to import them from within my mac’s default python. Previously I was able to import them.

Where should I initially look for potential problems? My bash profile? .profile? Somewhere in python? Any help would be appreciated. I’m very new to installing packages as well as path variables so any guidance as to where the error might be would be helpful.

EDIT


After following John Keyes’ advice and printing python’s path this was the result:

['','/Library/Python/2.7/site-packages/pip-1.0.2-py2.7.egg',
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip',
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin',
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac',
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages',
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk',
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old',
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload',
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages',
'/Library/Python/2.7/site-packages',
'/Library/Python/2.7/site-packages/setuptools-0.6c11-py2.7.egg-info']

Should these paths include my installed packages (such as numpy and beautiful soup) listed?

EDIT 2


This is my bash profile. From the comments on my question it seems like these may be the issue, so I thought I’d include them below. How can I change them so that my python build will go back to installing things in the right place?

export PATH=/usr/local/bin:/usr/local/share/python:/usr/local/sbin:$PATH


# Setting PATH for Python 2.7
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
export PATH
  • 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-05-26T04:59:12+00:00Added an answer on May 26, 2026 at 4:59 am

    As I understand you have build a custom python which is not same with your default python installation.

    You should either use the newly installed python or specify the path of numpy to the default installation. There are 2 ways of doing the second choice:

    Asume that your numpy module is located at /Users/Me/python/modules directory.

    1. Set an environment variable for external modules from commandline:

      setenv PYTHONPATH /Users/Me/python/modules
      

      To make this permanent for your user you could add this line to your .bashrc file.

    2. In your code you could add the same directory to your path:

      import sys
      sys.path.append('/Users/Me/python/modules')
      import numpy
      ...
      

    I hope this will help.

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

Sidebar

Related Questions

While trying to use LINQ to SQL I encountered several problems. I have table
I've been whacking on this regex for a while, trying to build something that
While trying to make one of my python applications a bit more robust in
I'm completely new to Python and while trying various random bits and pieces I've
Got this error today while trying to build a project with checkstyle. This works
I am trying to implement the adaptive huffman code, but while trying to build
I am trying to build a Python deamon which listen to a queue (Redis
I ran into a weird problem while trying to build a Traits GUI that
I'm trying to build an user login/authentication client for a RESTful webservice created by
I'm trying to build a proof of concept Csla 3.7/Silverlight 3 app and have

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.