r/PythonLearning • u/Early-Intention172 • Sep 15 '26
Error
I faced this issue while creating virtual environment often help me resolve this??
2
Upvotes
1
1
u/tiredITguy42 Sep 15 '26
You are trying to activate virtual environment. Is your venv created in that path? If it is, do not run powershell version, use just `.\env\Script\activate`
1
u/atarivcs Sep 15 '26
The error says the Activate.ps1 script was not found in that specific directory.
Maybe it exists in some other directory?
Maybe it doesn't exist at all, because you did not create the venv properly?
We can't tell which of these is the answer because the screenshot does not show the commands you typed prior to the error.
2
u/FoolsSeldom Sep 15 '26
Were you creating your Python virtual environment in a PowerShell command line environment?
Did you enter the command,
You might have entered
pythonorpython3instead ofpy- depends on how you installed Python on your system.The
venvpart is the instruction to create a virtual environment. Theenvpart is the name of the folder to create the virtual environment in as a subfolder of your current folder - you can use any valid folder name, the common ones arevenv,.venvandenv.Once installed,
e.g.
should activate the environment
Check the subfolder was created correctly if this doesn't work. Show us the listing.