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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T07:51:33+00:00 2026-06-10T07:51:33+00:00

I started a virtualenv session, and inside a directory dir , I have the

  • 0

I started a virtualenv session, and inside a directory dir, I have the following directory hierarchy:

| venv -- the virtual environment
| app_dir
  main.py
  | dir1
  | dir2
  | dir2

I’ve installed flask for this environment, which main.py uses. When I run $ python main.py, it will run through flask. My question here is – does app_dir and venv have to be sibling directories? Or can I have app_dir somewhere else? If so, how does main.py recognise flask to be in venv?

  • 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-10T07:51:35+00:00Added an answer on June 10, 2026 at 7:51 am

    Just to be extra thorough, this is what you need to do to get your virtualenv working. After you install your virtualenv you just need to source it so that your current shell uses the virtualenv

    In order to source the virtualenv you’d do this:

    $ source venv/bin/activate
    

    So, as long as you source the correct virtualenv. Your app_dir and venv directories could be anywhere on your system.

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

Sidebar

Related Questions

I just started using virtualenv, and it was working normally until yesterday. Now, and
Started using Visual Studio 2012 RC since yesterday, We have one WCF solution. Whenever
Started Googling today to research implementing Zend_Translate in a Zend 1.6.x project i have
Started practicing with XML and C# and I have an error message of There
I've started using npm for JavaScript package management recently. Although I do have a
Started to learn some shell scripting. I have a perl script that runs on
I recently started a Django project and I quickly realized that virtualenv will be
I started develop a distributed application and we have a big dilemma! We need
I just started using virtualenv in python. I'm installing several package(?) using pip on
I started using codeigniter for my project. I have user authentication system for my

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.