PokemonGo-Bot
PokemonGo-Bot copied to clipboard
I'm having trouble activating venv
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
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:
- Change your working directory to where you installed the virtual environment when you typed
python -m env venv:
cd "C:\Users\daniyal11\Desktop\django"
- 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
- Continue on your way through the rest of the guide. To deactivate venv, just type:
deactivate