Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I'm having trouble activating venv #6323

Open
CAPTAINdani opened this issue Jun 23, 2024 · 1 comment
Open

I'm having trouble activating venv #6323

CAPTAINdani opened this issue Jun 23, 2024 · 1 comment

Comments

@CAPTAINdani
Copy link

Screenshot 2024-06-23 124250

The inside of this photo is exactly the code that I typed and I made such a big error

source : The term 'source' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

  • source env/bin/activate
  •   + CategoryInfo          : ObjectNotFound: (source:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
    

I got this error

@JackTheTripperr
Copy link

The issue issue you're running into has to do with the fact that you are using Windows. Here are the steps you need to take to accomplish what you were trying to do:

  1. Change your working directory to where you installed the virtual environment when you typed python -m env venv:

cd "C:\Users\daniyal11\Desktop\django"

  1. Here is where you ran into issues. The guide you were following assumes you're working in a Linux environment. Activating your virtual environment is slightly different on windows:

env\scripts\activate

  1. Continue on your way through the rest of the guide. To deactivate venv, just type:

deactivate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants