C:>mkdir . venvs
Access is denied.
Error occurred while processing: …
C:>mkdir.venvs
C:>mkdir.venvs
A subdirectory or file .venvs already exists.
C:>virtualenv -system-site -packages.venvs/lpthw
RuntimeError: failed to find interpreter for Builtin discover of python_spec=‘ackages.venvs/lpthw’
C:>virtualenv-system-site-packages.venvs/lpthw
‘virtualenv-system-site-packages.venvs’ is not recognized as an internal or external command,
operable program or batch file.
C:>mkdir.venvs
A subdirectory or file .venvs already exists.
C:>virtualenv -system-site -packages.venvs/lpthw
RuntimeError: failed to find interpreter for Builtin discover of python_spec=‘ackages.venvs/lpthw’
C:>mkdir.venvs
A subdirectory or file .venvs already exists.
C:>mkdir.venvs
A subdirectory or file .venvs already exists.
C:>mkdir.venvs
C:>virtualenv -system-site -packages.venvs/lpthw
RuntimeError: failed to find interpreter for Builtin discover of python_spec=‘ackages.venvs/lpthw’
Your installation of virtual enviornment was ok.
But then it seems that you tried to create a venv folder with mkdir.
That is not the way to create a venv.
I do not have Microsoft. So I had to google a little and found this:
Create a virtual environment
Open your terminal and, inside your HelloWorld project folder, use the following command to create a virtual environment named venv :
python3 -m venvvenv
To activate the virtual environment , enter:
source venv /bin/activate
This actually works in linux. So if it does not work in Microsoft you have to google what difference there is in the command.
If you want another name of your virtual enviornment you change the second venv to a name of your choise.
Example:
python3 -m venvmy_first_venv
Then I think you are ready to go on with the exercise.
Yes, follow @ulfen69 's advice.
For the record, I believe what you were trying to do should actually work, you just need to be more careful with whitespace in your commands. You typed
So I think people helped you here but I’ll point out the mistake your making for the future. Take a look at what you typed:
Access is denied.
Error occurred while processing: …
C:>mkdir.venvs
C:>mkdir.venvs
I type this:
mkdir .venvs
See the difference? It looks like you aren’t hitting space between each word. Now I think that’s either because you can’t see the spaces in the book, or your paste didn’t include them, but either way go check that you don’t do this frequently. I see you did it here too:
virtualenv -system-site -packages.venvs/lpthw
You just seem to not hit space when you should, and it looks like any time you see a . (dot) character.