PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

I'm having trouble activating venv

Open CAPTAINdani opened this issue 1 year ago • 1 comments

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

CAPTAINdani avatar Jun 23 '24 09:06 CAPTAINdani

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

JackTheTripperr avatar Jul 14 '24 19:07 JackTheTripperr