On my PC at work which has Windows 10, I've installed Python. However when I'm trying to call from the command prompt, I get the following result (Picture 1) and I have to manually enter the path to open python (Picture 2). In order to be able to install all the libraries, what should I do in ordert to be able to directly call python as in Picture 1? I tried to add the path to the user environment as in Picture 3, as suggest below but, I still get the exact same error message as in Picture 1
Picture 1
Picture 2
Picture 3 enter image description here
2 Answers 2
see how to addpath on windows 10
https://www.architectryan.com/2018/03/17/add-to-the-path-on-windows-10/
2 Comments
I too faced this issue when i'm new to python. So, I suggest you to re-install the python while installing there will be option to add '.exe' file to the path then you can directly call python interpreter in your command prompt.
py, orpy -3.7to be precise. To install packages, runpy -m pip install <...>. You can add the installation and scripts directories toPATHif you really need a particular python.exe and pip.exe, but it becomes a maintenance chore when upgrading to a new major version, or if you need to switch between versions. Commonly in development it's better to create and activate a virtual environment, e.g.py -m venv env37and thenenv37\Scripts\activate.bat.