building ‘fdfs_client.sendfile’ extension error: Microsoft Visual C++ 14.0 is required. Get it w…

(env) D:\python_learn\meiduo_project>pip install fdfs_client-py-master.zip Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Processing d:\python_learn\meiduo_project\fdfs_client-py-master.zip Building wheels for collected packages: fdfs-client-py Building wheel for fdfs-client-py (setup.py) … error ERROR: Command errored out with exit status 1: command: ‘D:\python_learn\meiduo_project\env\Scripts\python.exe’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘”\ ‘”‘C:\Users\\sewen\AppData\Local\Temp\pip-req-build-9rb op60k\setup.py'”‘”‘; __file__='”‘”‘C:\Users\\sewen\AppData\ \Local\\Temp\pip-req-build-9rbop60k\setup.py'”‘”‘;f=getattr(tokenize, ‘”‘\ “‘open'”‘”‘, open)(__file__);code=f.read().repla ce(‘”‘”‘\r\\ ‘”‘”‘, ‘”‘”‘\\ ‘”‘” ‘);f.close();exec(compile(code, __file__, […]

C language file descriptor operation under Linux (dup / dup2 / sendfile / splice / tee)

The philosophy of Linux is that everything is a file, and files are manipulated through file descriptors. This article sorts out the operation of the dup / dup2 / sendfile / splice / tee function on the file descriptor. Directory 1. dup 2.dup2 3. sendfile 4.splice 5. tee 1.dup #include int dup(int fd); Duplicate an […]