(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__, '"'"'exec'"'"'))' bdist_wheel -d 'C: \Users\sewen\AppData\Local\Temp\pip-wheel-wftmipvi' cwd: C:\Users\sewen\AppData\Local\Temp\pip-req-build-9rbop60k\ Complete output (23 lines): Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\sewen\AppData\Local\Temp\pip-req-build-9rbop60k\setup.py", line 37, in <module> setup(**sdict) File "D:\python_learn\meiduo_project\env\lib\site-packages\setuptools\__init__.py", line 165, in setup return distutils.core.setup(**attrs) File "D:\Python\Python38\lib\distutils\core.py", line 134, in setup ok = dist.parse_command_line() File "D:\Python\Python38\lib\distutils\dist.py", line 483, in parse_command_line args = self._parse_command_opts(parser, args) File "D:\python_learn\meiduo_project\env\lib\site-packages\setuptools\dist.py", line 929, in _parse_command_opts nargs = _Distribution._parse_command_opts(self, parser, args) File "D:\Python\Python38\lib\distutils\dist.py", line 539, in _parse_command_opts cmd_class = self.get_command_class(command) File "D:\python_learn\meiduo_project\env\lib\site-packages\setuptools\dist.py", line 768, in get_command_class self.cmdclass[command] = cmdclass = ep.load() File "D:\python_learn\meiduo_project\env\lib\site-packages\pkg_resources\__init__.py", line 2461, in load return self.resolve() File "D:\python_learn\meiduo_project\env\lib\site-packages\pkg_resources\__init__.py", line 2467, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "D:\python_learn\meiduo_project\env\lib\site-packages\wheel\bdist_wheel.py", line 13, in <module> from qqemail.generator import Generator ModuleNotFoundError: No module named 'qqemail' ---------------------------------------- ERROR: Failed building wheel for fdfs-client-py Running setup.py clean for fdfs-client-py Failed to build fdfs-client-py Installing collected packages: fdfs-client-py Running setup.py install for fdfs-client-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-9 rbop60k\setup.py'"'"'; __file__='"'"'C:\Users\\sewen\AppData\ \Local\\Temp\pip-req-build-9rbop60k\setup.py'"'"';f=getattr(tokenize, '"'\ "'open'"'"', open)(__file__);code=f.read().rep lace('"'"'\r\\ '"'"', '"'"'\\ '"'" ');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C :\Users\sewen\AppData\Local\Temp\pip-record-6cn1p_it\install-record.txt' - -single-version-externally-managed --compile --install-headers 'D:\python_learn\meiduo_project\env\include\site\python3.8\fdfs-client-py' cwd: C:\Users\sewen\AppData\Local\Temp\pip-req-build-9rbop60k\ Complete output (18 lines): running install running build running build_py creating build creating build\lib.win-amd64-3.8 creating build\lib.win-amd64-3.8\fdfs_client copying fdfs_client\client.py -> build\lib.win-amd64-3.8\fdfs_client copying fdfs_client\connection.py -> build\lib.win-amd64-3.8\fdfs_client copying fdfs_client\exceptions.py -> build\lib.win-amd64-3.8\fdfs_client copying fdfs_client\fdfs_protol.py -> build\lib.win-amd64-3.8\fdfs_client copying fdfs_client\fdfs_test.py -> build\lib.win-amd64-3.8\fdfs_client copying fdfs_client\storage_client.py -> build\lib.win-amd64-3.8\fdfs_client copying fdfs_client\tracker_client.py -> build\lib.win-amd64-3.8\fdfs_client copying fdfs_client\utils.py -> build\lib.win-amd64-3.8\fdfs_client copying fdfs_client\__init__.py -> build\lib.win-amd64-3.8\fdfs_client running build_ext building 'fdfs_client.sendfile' extension error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/ ---------------------------------------- ERROR: Command errored out with exit status 1: 'D:\python_learn\meiduo_project\env\Scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[ 0] = '"'"'C:\Users\\sewen\AppD ata\Local\\Temp\pip-req-build-9rbop60k\setup.py'"'"'; __file__='"'" 'C:\Users\\sewen\AppData\Local\Temp\\pip-req-build-9rbop60k\\setup.py'\ "'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\\ '"'"', '"'\ "'\\ '"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'\ "'))' install --record 'C:\Users\sewen\AppData\Local\Temp\pip-reco rd-6cn1p_it\install-record.txt' --single-version-externally-managed --compile --install-headers 'D:\python_learn\meiduo_project\env\include\site\ python3.8\fdfs-client-py' Check the logs for full command output.
When installing fdfs_client-py-master.zip in windows, an error occurs: Microsoft Visual C++ 14.0 is required.
I encountered a problem when learning django + fdfs + nginx. The laptop’s virtual machine ubuntu was really stuck and I doubted it, so django was installed in windows and ubuntu only enabled the fdfs + nginx service. So there is a need to install fdfs client under windows. First of all, I would like to remind you that if possible, it is better to learn and develop under Linux~
Download fdfs_client-py-master.zip and pip install fdfs_client-py-master.zip reports an error
Error message:
error: Microsoft Visual C++ 14.0 is required
At this time, go to the control panel to confirm that this program is installed, or Microsoft Visual C++ 2005, etc. is installed.
Then the problem is not that the version is incorrect
Through Baidu, reading forums and other methods, I found that the cause of the error is that installing fdfs_client in Windows requires commenting or deleting some code.
Solution
1. Unzip the downloaded fdfs_client-py-master to any location and open the storage_client.py file in the fdfs_client directory.
Mask line 12 # from fdfs_client.sendfile import *
2. The decompressed setup.py in the fdfs_client-py-master directory
Block ‘ext_modules’ in the sdict dictionary ;”>
3. Compress the annotated fdfs_client-py-master file into a compressed file, the format should be .zip
4. Before pip install fdfs_client-py-master.zip, make sure mutagen and requests are installed in your virtual environment. If not, please import them first.
pip install mutagen pip install requests
5. Import it into your fdfs_client-py-master.zip compressed package directory to run successfully.
pip install fdfs_client-py-master.zip
Shows successful installation