Python is free, open source, and it runs on Windows, Mac, and Linux, as well as many other operating systems. Many professional software engineers use Python every day to do their job, for both large projects and small ones. Python is a programming language that is easy to learn, yet powerful and flexible. This tutorial is for Windows users who want to get their computer set up for developing with Python. Now you can run python.How to Set Up a Python Development Environment on Windows In our example, we have added the following value: C:\Python34Ĭlose all windows. Position your cursor at the end of the Variable value line and add the path to the python.exe file, preceeded with the semicolon character ( ). In the System variable window, find the Path variable and click Edit: Go to the Advanced tab and click the Environment Variables button: This should open up the System Properties window. To add the path to the python.exe file to the Path variable, start the Run box and enter sysdm.cpl: To run python.exe, you need to specify the full path to the executable: C:\>C:\Python34\python -version 'python' is not recognized as an internal or external command,Īs you can see from the output above, the command was not found. By adding the path to the Python executable, you will be able to access python.exe by typing the python keyword (you won’t need to specify the full path to the program).Ĭonsider what happens if we enter the python command in the command prompt and the path to that executable is not added to the Path variable: C:\>python The Path variable lists the directories that will be searched for executables when you type a command in the command prompt. If you’ve installed Python in Windows using the default installation options, the path to the Python executable wasn’t added to the Windows Path variable.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |