Solve the problem of python running startup error

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:

  1. cd www directory
  2. 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

Solve the problem of python running startup error
Solve the problem of python compiling and installing ssl
Solve the problem of convex hull based on python
Completely solve the problem of slow downloading of Python packages
End the method of running python
Solve the conflict of multiple versions of python
Solve the conflict of multiple versions of python
Solve the problem of installing VMwareTools on Ubuntu 18.04
Solve the problem of installing Theano on Ubuntu19
Detailed explanation of the remaining problem based on python (%)
Consolidate the foundation of Python(7)
Consolidate the foundation of Python(6)
Consolidate the foundation of Python (3)
[Share] Solve the problem of failed installation of Vitis 2019.2 on Ubuntu 16.04
The usage of wheel in python
Python handles the 4 wheels of Chinese
Python simulation of the landlord deal
What is the use of Python
The premise of Python string pooling
Secrets of the new features of Python 3.8
The father of Python joins Microsoft
The operation of python access hdfs
The usage of tuples in python
Understanding the meaning of rb in python
Can Python implement the structure of the stack?
What are the required parameters of python
Logistic regression at the bottom of python
The usage of Ajax in Python3 crawler
Python solves the Tower of Hanoi game
What is the scope of python variables
Python implements the sum of fractional sequences
Two days of learning the basics of Python
What is the id function of python
Where is the pip path of python3
Centos 8.1.1911 solves the problem of yum reinstallation
The essence of Python language: Itertools library
What are the advantages of python language
The specific method of python instantiation object
python3 realizes the function of mask drawing
What is the prospect of python development
What is the function body of python
The specific method of python import library
What is the function of adb in python
Detailed explanation of the principle of Python super() method
The difference between the syntax of java and python
Solve the problem that Centos8 cannot install docker
Python realizes the development of student management system
Use the command to solve the Ubuntu projector problem:
Python implements the shuffling of the cards in Doudizhu
The meaning and usage of lists in python
Can the value of the python dictionary be modified?
Python implements the source code of the snake game
Detailed explanation of the usage of Python decimal module
How about learning python at the age of 27?
The consequences of uninstalling python in ubuntu, very
Python writes the game implementation of fishing master
linux+ubuntu solve python
7 features of Python3.9
2.1 The Python Interpreter (python interpreter)
[898] python get the intersection of two lists | union | difference
Detailed explanation of the principle of Python function parameter classification