Alexey Kitov
Alexey Kitov

Reputation: 9

I can't run the script and make a virtual environment

I'm trying to install a virtual environment in order to work with libraries, but it absolutely does not work

python : The name "python" is not recognized as the name of a cmdlet, function, script file, or executable program. Check the spelling of the name, as well as the presence and correctness of the path, and then try again. line:1 sign:1

Upvotes: 0

Views: 991

Answers (2)

Oleksii Tambovtsev
Oleksii Tambovtsev

Reputation: 2834

You need to add the path to your environment variables.

You should go to Control Panel>System and Security>System>Advanced System Settings>Environment Variables

Then select edit PATH and append the path to your python executable:

C:\Users\{your_user}\AppData\Local\Programs\Python\{your_python_executable}

Upvotes: 0

Dustin
Dustin

Reputation: 108

On Windows, you need to add Python to your PATH. Try this How to add Python to PATH

And check if Python is installed correctly and restart your PC on this Question restarting the PC helped

Upvotes: 1

Related Questions