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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T05:08:51+00:00 2026-05-16T05:08:51+00:00

Im new to python programming.Im writing a simple command line based twitter app,and i

  • 0

Im new to python programming.Im writing a simple command line based twitter app,and i have to use external libraries like simplejson,tweepy etc.
Is there a way i can package my python program to include these libraries as well,so that when i distribute this program, the user doesnt have to install the required libraries first himself ?

Thank You

  • 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-16T05:08:51+00:00Added an answer on May 16, 2026 at 5:08 am

    Python will search for modules in the current directory, so you can just package the libraries along in a subdirectory. For example, if myprogram.py use the foo package:

    import foo
    

    this means that there’s either

    • a foo.py on your Python path; put it into the same directory as myprogram.py, or
    • a directory foo on your Python path which contains a module __init__.py; put the entire directory (.py files only, no need for .pyc files) into the same directory as myprogram.py.

    Of course, have a look at the licenses first to check whether they allow redistribution with your program in this manner.

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

Sidebar

Related Questions

I am new to Python programming... I have a .txt file....... It looks like..
I am very new to python programming and have yet to buy a textbook
Brand new to Python (and programming in general), if this is simple and/or answered
I'm fairly new to Python and programming in general. I have done a few
I have long programming background, but am new to Python, and am playing around
I am quite new to python programming (C/C++ background). I'm writing code where I
I'm new to programming, I have some basic python programming from college, I am
I am new to Python programming. I want to execute a shell command at
I'm new in python programming. just got stuck with this one problem. I have
I'm pretty new to Python programming so I have this question: How can I

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.