This error originates from a subprocess Termux matplotlib pandas compilation error and jupyter installation issues

Article directory Notice Problem Description ~~Question complaints~~ Solution 3 steps version record 1 Clear pip cache 2 Successful installation of matplotlib matplotlib completes dependent commands 3 Successful installation of pandas Supplementary question 1: `pip install jupyter` error: solution Supplementary question 3: There is a conflict between openblas and libopenblas, causing libopenblas to fail to be […]

Pytorch specifies data loader to use subprocess

torch.utils.data.DataLoader(train_dataset, batch_size=batch_size, shuffle=True,num_workers=4, pin_memory=True) The num_workers parameter is a parameter of the DataLoader class that specifies the number of child processes used by the data loader. By increasing the number of num_workers, data can be read and preprocessed in parallel, thereby increasing the speed of data loading. Typically, increasing the number of num_workers can improve […]

Serialization module, remote execution command subprocess module and encryption module hashlib

Table of Contents 1. Serialization module 1. What is a sequence? What is serialization? 2. What is deserialization? 3. The Json module provides four methods Data characteristics of json format: everything in the dictionary becomes double quotes The data transmitted through the network must be binary 1. Write data in dictionary format to a file […]

python-re module and subprocess module

1. re module re in Chinese is a regular expression, which is a common tool for string processing. It is usually used to retrieve and replace text that matches a certain pattern. Note: Both the pattern and string to be searched can be unicode strings (str) and 8-bit strings (bytes), but unicode strings cannot be […]

Flowable-subprocess-nested subprocess

Table of Contents definition graphic mark XML content Example of use Video explanation demo Define Embedded sub-process, also known as embedded sub-process, is an activity that can contain other activities, branches, events, and so on. we pass A sub-process in the usual sense usually refers to an embedded sub-process, which is defined as defining a […]

Flowable-subprocess-transaction subprocess

Table of Contents definition graphic mark XML content Example of use video tutorial demo Define A transaction subprocess, also known as a transaction block, is an embedded subprocess used to process a group of activities that must be completed in the same transaction. to make them succeed or fail together. If an activity in the […]

python3 subprocess.run error: [Errno 2] No such file or directory: (shell=True, [bin, arg, arg, …] list method)

Article directory Problem recurrence test (Python 3.8.10) The test does not add the shell=True parameter, nor does it use [bin, arg, arg, …] to pass the list to execute the ls -l and ll -a and docker -v commands respectively, and it is found that they cannot be executed successfully Add the shell=True parameter to […]

Solve the problem that the supervisor cannot monitor the subprocess of the program

Let me talk about the problems encountered first. The beanstalk queue is used, and there are two tubes. The supervisor is used to monitor the beanstalk consumption queue (main process A). The main process A generates two sub-processes (sub-process B, sub-process C), and each sub-process A process processes the data of a tube. The supervisor […]

Python uses subprocess to execute interactive commands

It is already known that os.system can easily use python code to execute some system commands like ping and ipconfig, but it can only get whether the command execution is successful, but not the result after the command is successfully executed, as follows: >>> s = os.system(“ping www.baidu.com”) Pinging www.a.shifen.com [220.181.38.150] with 32 bytes of […]