It looks like you're using Windows Command prompt, either within Windows Terminal or Command Console.
In order to change drives at the Command prompt, you either have to enter just the drive letter by itself D:
followed by an approriate cd
command, or include the /D
option in your cd
command.
Example:
C:\Users\Max>D:
D:\>cd "Python Projects\Translator GPT\"
D:\Python Projects\Translator GPT>
or
C:\Users\Max>cd /D "D:Python Projects\Translator GPT\"
D:\Python Projects\Translator GPT>
Once you're in the working directory for your project, call the activation script
D:\Python Projects\Translator GPT>venv\Scripts\activate.bat
(venv) D:\Python Projects\Translator GPT>
If you work in Powershell instead of Command Console, the /D
option for the cd
command is not required. Then the activation script Activate.ps1 is called by using the &
(call) command
PS C:\Users\Max\>cd "D:\Python Projects\Translator GPT"
PS D:\Python Projects\Translator GPT\> & venv/Scripts/Activate.ps1
(venv) PS D:\Python Projects\Translator GPT\>
You may want to look at setting up VSCode or another IDE for working with Python, as it can handle activating the venv for you automatically whenever you reopen the workspace.
Instead of using ChatGPT, I would suggest finding an actual tutorial for the version of Python you're running or reading the official documentation. ChatGPT just gathers info from other sources and doesn't always put it back together into a correct answer - it just looks correct if you don't know enough to know why its wrong.
Some detailed discussion on the various virtual env options in Python:
What is the difference between venv, pyvenv, pyenv, virtualenv, virtualenvwrapper, pipenv, etc?