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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T16:47:09+00:00 2026-06-05T16:47:09+00:00

lets say i created a virtualenv called venv (virtualenv venv) From reading tutorials, i

  • 0

lets say i created a virtualenv called venv (virtualenv venv)

From reading tutorials, i read there are 2 ways to activate virtual env:

  1. . venv/bin/activate

  2. source venv/bin/activate

I think they both accomplish the same thing, but i dont understand whats going on.

Also for number 1, doesnt the “.” just mean the current folder? but it doesnt work if i just type in “venv/bin/activate” without the “.”

any help would be great!

  • 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-05T16:47:11+00:00Added an answer on June 5, 2026 at 4:47 pm

    . and source do exactly the same thing, with the only difference being that while source is more readable, it may not be available in all shells.

    The command runs the contents of the script within the current shell, and this is important in the case of activate, because one of the things that the script does is exports and modifies environment variables within your current shell.

    If you were to run it using ./path/to/activate, the script will be run within a subshell and all environment variables that are set will be lost once the script completes and the subshell terminates.

    Also for number 1, doesn’t the “.” just mean the current folder?

    . has a different meaning depending on the context. It only means “current folder” when used as (or part of) a path.

    From http://en.wikipedia.org/wiki/Dot_%28Unix%29:

    The dot command is not to be confused with a dot file, which is a dot-prefixed hidden file or hidden directory.


    As an aside, I would suggest that you take a look at virtualenvwrapper which provides additional wrapper commands that make virtualenv much easier to use.

    Using virtualenvwrapper, switching to an evironment is done simply by calling:

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

Sidebar

Related Questions

Lets say I have created a Thread from within a control to monitor for
Lets say there is a class named Person which contains a virtual function named
Let's say I have created two objects from class foo and now want to
Let's say there's a table created as follows: create table testTable ( colA int
Lets say that I have 4 view controllers (call them FirstView,SecondView,ThirdView,FourthView) which are created
Lets say i have created a small game with XNA. Now i can change
I am trying to serialize/deserialize objects that have factory-created members. For example, lets say
Lets say I have a table called user_table: user_table id first_name last_name gender email
Lets say I have this enum defined (from Apple's UIKit framework): typedef enum {
I have just created a simple animation. Lets say that in one frame 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.