-
First of all, you have to understand that there are only two possibilities for this kind of problem:1You didn't install this software properly; 2.Environment variables are not configured.
If you have both python2 and python3 installed on your computer, you may want to conveniently switch between python2 and python3 from the command line
Refer to Zhihu question: How to use pip if python3 and python2 are installed at the same time? solution, we need to use the python launcher on the computer (two core files: and.
But if you are using Python installed by Anaconda like me, there is no such Python launcher. You have to go to the Internet, put the sum under C: Windows when you're done (if you don't put it in that folder, you'll need to set the environment variables for these two files), and double-click.
It can then be tested in the command line.
If you get the above results, then congratulations, you have successfully succeeded.
But if you get Requested Python Version (2) Not Installed or Requested Python Version (3) Not Installed, congratulations to me for having the same problem, what you need is to go to the registry's hkey local machine software python pythoncore (if it's 32-bit, It is possible to modify the installation path of the wrong version under hkey local machine software wow6432node python pythoncore). For example, I've modified my execution path to look like this:
At this point, you should be able to enjoy your game, and if it doesn't already work, you may want to restart the DOS window.
-
path is the environment variable.
A path,If you don't tick this item when you install it,You can call it if you can call python input in cmd,If you report an error,You can add it manually,The specific steps are as follows:
1. Right-click on my computer--- Properties---Advanced System Settings ---Environment Variables".
2. Select 'path' and click ''
3. If there are no above two paths in the path, you can't call python in cmd.
4. Click New, then click Browse, find the python installation path and add it.
<>5. After adding, click OK in turn.
6. Open the cmd command and enter the python test
-
Steps to run a python program with cmd:
1) Open cmd.
2) Go to the disk where the file you want to run is located (e.g. drive E). Input:
e: Enter (3) Open the folder where the file you want to run is located (e.g. e:
abc\123)。Input: cd e:
ABC 123 Carriage Return.
4) Run the program. Enter: python **py (name of the program file) Enter.
-
cmd switch running directory to non-system disk and then open it on the line.,The system disk needs permission to open and then it doesn't respond.。。
-
Environment variables need to be set to run.
Here's how to set environment variables: Method.
1. My Computer->Properties->Advanced-> Environment Variables-> System Variables, find path in the system variables, double-click path, and add at the end";c:\python25"(no quotes).
Method. 2. Shortcut key (win+r): enter "cmd" in "Run", and then enter set path=%path% in the command prompt; C: Python25, then, enter python in the current cmd, and you can run.
-
python is not a workaround for internal or external commands? Hello dear! I'm glad to answer that when you output a python command in a command-line window (called a terminal in Linux), it says "'python' is not an internal or external command, nor is it a runnable program or batch file", as follows:
Right-click on the "Computer" icon, Hongbi then select "Properties" in the pop-up shortcut menu, and click the "Advanced System Settings" hyperlink in the properties dialog box, and the "System Properties" dialog box will appear. Click the Environment Variables button, the Environment Variables dialog box will pop up, in the dialog box shown in the figure, select the path variable in the System Variables bar, and then click the Variables button. The "System Variables" dialog will pop up, so we need to manually add "G:" to the top of the existing path variable value
python\python36;g:python\python36/scripts;Note,Don't drop the middle and last semicolons,In addition, change the python installation path to repair Luju to your own.,Click the OK button.,It's done setting the ring segment environment variable.。 Again, do not delete the value of the variable that originally exists in the system variable path, and the semicolon in it is output in English, otherwise an error will be generated.
Hope it helps!
-
There is an option to add to path when installing, or you can add the path to the path of the environment variable after installation, you here is c: python27
-
You didn't add the python environment variables.
-
Reason: In the DOS command window, if the file of the command needs to be executed when the command is run, if the execution file of the command is not found, it will prompt that it is not an internal or external command error.
Here's how to fix it:
Method. 1. Put the dos command execution file directly into the windows-system32 folder, re-run the dos command, and you can execute.
Method. 2. By modifying the execution path method.
1. Right-click on the computer, select Properties, click Advanced System Settings, and click Environment Variables in the pop-up System Properties box.
2. Find the variable path in the system variable of the environment variable, select it and click it.
3. Add the path of the execution command file in the system variable menu.
4. Re-open the DOS window.
Let's take a look at the python training content of dark horse programmers and why choose Qianfeng Education to learn. >>>More
The string is immutable, and the list is mutable.
That is to say, once the meaning of the string is determined, it cannot be changed, but the list can. >>>More
2. In the second step, if you want to get the brand of the phone or tool you are debugging, you can use brand. >>>More
This can be agreed upon by yourself. For example, when entering a convention, a character space is used to indicate that the item does not need to be entered. >>>More
As long as the original software is not installed in the system disk (C drive), it is still there. But the registry was deleted after redoing the system, so those software may not be able to be used, but the general game software will not be affected, and it can still enter the game normally. >>>More