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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:52:02+00:00 2026-06-14T17:52:02+00:00

I have a module installed using pip in a virtualenv . I want to

  • 0

I have a module installed using pip in a virtualenv. I want to experiment with a single change on one line of its code, and wonder if it will work by going straight to the source file and changing that line?

If not, what is the easiest way to do so? Download the source, change it, and run python setup.py install inside the virtualenv? But would that install the module inside the virtualenv? And can I still remove it later using pip or I need to clean it up manually?

  • 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-14T17:52:03+00:00Added an answer on June 14, 2026 at 5:52 pm

    As long as the module you wish to edit is written in pure Python, changing the source code in the virtualenv’s site-packages directory should work just fine. If the module is a C-extension, then you will need to recompile the module before the changes take effect.

    Edit: Note that if you are working with the module in an interactive session, you will need to reload the module in the session (and re-instantiate any object instances based on that module) each time you make a change.

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

Sidebar

Related Questions

I'm using python and virtualenv/pip. I have a module installed via pip called test_utils
I have Mountain Lion and I installed virtualenv using this method: sudo easy_install pip
I have installed Numpy using ActivePython and when I try to import numpy module,
I have python2.7 installed using macports gcc-4.6. When I build an extension module (python
I have mechanize module installed using easy_install but when I tried to import I
I am using Opencart 1.4.9.3 and have the left side module installed for categories.
I have created a website using vbulletin i have installed CMS and BLOG modules
I have a module Namespace/Search, which was installed when I got here. I took
i have installed PrestaShop™ 1.4.7.3 i download the module BillSafe from http://www.billsafe.de/ I configure
I have installed the built in OpenERP 6.1 module crm. As a result, 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.