Question one:
python startup error api-ms-win-crt-process-l1-1-0.dll is missing
solve:
Download the api-ms-win-crt-process-l1-1-0.dll file and drop it into the C:\Windows\SysWOW64 (64-bit operating system), C:\Windows\System32 (32-bit operating system) directory
**Question 2: **
Python runtime error code (0xc000007b)
solve:
Download the directxrepair tool to repair the system files, restart the computer manually after the repair is successful
Supplementary knowledge: Python3 opens its own http service
Open web service
1. Basic way
Python comes with a simple server program, which can easily open the service.
In python3, the original SimpleHTTPServer command is changed to http.server, and the method of use is as follows:
- cd www directory
- python -m http.server
If it is successfully turned on, it will output "Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) …", indicating that the service is enabled on port 8000 of the machine.
If you need to run in the background, you can add the "&" symbol after the command, Ctrl+C will not close the service, as follows:
python -m http.server &
If you want to keep the service, add nohup before the command to ignore all hangup signals, as follows:
nohup python -m http.server 8001
2. Designated port
If you do not use the default port, you can add port parameters when you turn it on, such as:
python -m http.server 8001
The http service will be opened on port 8001.
Use web services
You can use http://0.0.0.0:8000/ to view the webpage files in the www directory. If there is no index.html, the files in the directory will be displayed.
You can also use the ifconfig command to view the local IP and use it.
The above article to solve the problem of python running startup error is all the content shared by the editor, I hope to give you a reference.
Recommended Posts