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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:28:59+00:00 2026-05-23T12:28:59+00:00

I have python 2.6.7 installed in my mac (/usr/local/bin/python). Previously, I installed python-twitter library.

  • 0

I have python 2.6.7 installed in my mac (/usr/local/bin/python).
Previously, I installed python-twitter library. I follow these steps when I installed it:

  1. tar -xvf python-twitter-0.8.3.tar.gz
  2. cd python-twitter-0.8.3
  3. python setup.py build
  4. python setup.py install

But, right now, I want to modify the twitter.py file generated when I installed the module. I have tried to find it in python’s site-packages directory, but I couldn’t find it.

For your information, here is the PYTHONPATH:
/usr/local/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg
/usr/local/lib/python2.6/site-packages/oauth2-1.5.170-py2.6.egg
/usr/local/lib/python2.6/site-packages/simplejson-2.1.6-py2.6-macosx-10.4-x86_64.egg
/usr/local/lib/python2.6/site-packages/lxml-2.3-py2.6-macosx-10.4-x86_64.egg
/usr/local/lib/python2.6/site-packages/python_twitter-0.8.2-py2.6.egg
/usr/local/lib/python26.zip
/usr/local/lib/python2.6
/usr/local/lib/python2.6/plat-darwin
/usr/local/lib/python2.6/plat-mac
/usr/local/lib/python2.6/plat-mac/lib-scriptpackages
/usr/local/lib/python2.6/lib-tk
/usr/local/lib/python2.6/lib-old
/usr/local/lib/python2.6/lib-dynload
/Users/username/.local/lib/python2.6/site-packages
/usr/local/lib/python2.6/site-packages

I have used the ‘locate’ command to find it in all folders, but still couldn’t find it.

Anyone know where to find the twitter.py file?

  • 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-23T12:29:00+00:00Added an answer on May 23, 2026 at 12:29 pm

    It’s inside the .egg file, which is actually a zip archive.

    /Library/Python/2.6/site-packages-> zipinfo python_twitter-0.8.2-py2.6.egg
    Archive:  python_twitter-0.8.2-py2.6.egg   60381 bytes   8 files
    -rw-r--r--  2.0 unx   122153 b- defN 16-Apr-11 16:57 twitter.py
    -rw-r--r--  2.0 unx   128307 b- defN 28-Jun-11 09:14 twitter.pyc
    -rw-r--r--  2.0 unx        1 b- defN 28-Jun-11 09:14 EGG-INFO/dependency_links.txt
    -rw-r--r--  2.0 unx    25334 b- defN 28-Jun-11 09:14 EGG-INFO/PKG-INFO
    -rw-r--r--  2.0 unx       28 b- defN 28-Jun-11 09:14 EGG-INFO/requires.txt
    -rw-r--r--  2.0 unx      397 b- defN 28-Jun-11 09:14 EGG-INFO/SOURCES.txt
    -rw-r--r--  2.0 unx        8 b- defN 28-Jun-11 09:14 EGG-INFO/top_level.txt
    -rw-r--r--  2.0 unx        1 b- defN 28-Jun-11 09:14 EGG-INFO/zip-safe
    8 files, 276229 bytes uncompressed, 59457 bytes compressed:  78.5%
    

    If you want to make changes, the easiest thing to do is to edit the file BEFORE you run setup.py. In your case, just make your changes and re-run setup.py again.

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

Sidebar

Related Questions

I am running Mac OS X 10.5.8. I have installed Python 2.6 from the
I have python 2.6.1 installed on Mac OS X. I wanted to play around
Hi there I have downloaded the mac installer here, http://www.python.org/download/releases/3.1.2/ , & installed it.
I currently have Python 2.6.2 installed on my mac. I am writing a script
i' have downloaded boost 1.45.0, installed Python 3.1.3 on my mac. I have the
I have a Python module installed on my system and I'd like to be
I am running a windows machine have installed Python 2.5. I also used the
I am using python 2.6 on XP. I have just installed py2exe, and I
I have installed pylons based application from egg, so it sits somewhere under /usr/lib/python2.5/site-packages.
I have an install of python 2.5 that fink placed in /sw/bin/. I use

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.