|
楼主 |
发表于 2023-3-9 15:10:18
|
显示全部楼层
Collecting mysqlclient
Using cached mysqlclient-2.1.1.tar.gz (88 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Building wheels for collected packages: mysqlclient
Building wheel for mysqlclient (setup.py): started
Building wheel for mysqlclient (setup.py): finished with status 'error'
Running setup.py clean for mysqlclient
Failed to build mysqlclient
Installing collected packages: mysqlclient
Running setup.py install for mysqlclient: started
Running setup.py install for mysqlclient: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: 'D:\软件\djangoProject\venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\huawei\\AppData\\Local\\Temp\\pip-install-r2bjdi1q\\mysqlclient_23702596214441c2b124ccf5491fb7f9\\setup.py'"'"'; __file__='"'"'C:\\Users\\huawei\\AppData\\Local\\Temp\\pip-install-r2bjdi1q\\mysqlclient_23702596214441c2b124ccf5491fb7f9\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\huawei\AppData\Local\Temp\pip-wheel-z0zuqd3j'
cwd: C:\Users\huawei\AppData\Local\Temp\pip-install-r2bjdi1q\mysqlclient_23702596214441c2b124ccf5491fb7f9\
Complete output (70 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\MySQLdb
copying MySQLdb\__init__.py -> build\lib.win-amd64-3.7\MySQLdb
copying MySQLdb\_exceptions.py -> build\lib.win-amd64-3.7\MySQLdb
copying MySQLdb\connections.py -> build\lib.win-amd64-3.7\MySQLdb
copying MySQLdb\converters.py -> build\lib.win-amd64-3.7\MySQLdb
copying MySQLdb\cursors.py -> build\lib.win-amd64-3.7\MySQLdb
copying MySQLdb\release.py -> build\lib.win-amd64-3.7\MySQLdb
copying MySQLdb\times.py -> build\lib.win-amd64-3.7\MySQLdb
creating build\lib.win-amd64-3.7\MySQLdb\constants
copying MySQLdb\constants\__init__.py -> build\lib.win-amd64-3.7\MySQLdb\constants
copying MySQLdb\constants\CLIENT.py -> build\lib.win-amd64-3.7\MySQLdb\constants
copying MySQLdb\constants\CR.py -> build\lib.win-amd64-3.7\MySQLdb\constants
copying MySQLdb\constants\ER.py -> build\lib.win-amd64-3.7\MySQLdb\constants
copying MySQLdb\constants\FIELD_TYPE.py -> build\lib.win-amd64-3.7\MySQLdb\constants
copying MySQLdb\constants\FLAG.py -> build\lib.win-amd64-3.7\MySQLdb\constants
warning: build_py: byte-compiling is disabled, skipping.
running build_ext
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\huawei\AppData\Local\Temp\pip-install-r2bjdi1q\mysqlclient_23702596214441c2b124ccf5491fb7f9\setup.py", line 22, in <module>
setuptools.setup(**metadata)
File "D:\软件\djangoProject\venv\lib\site-packages\setuptools\__init__.py", line 155, in setup
return distutils.core.setup(**attrs)
File "D:\软件\djangoProject\venv\lib\site-packages\setuptools\_distutils\core.py", line 148, in setup
return run_commands(dist)
File "D:\软件\djangoProject\venv\lib\site-packages\setuptools\_distutils\core.py", line 163, in run_commands
dist.run_commands()
File "D:\软件\djangoProject\venv\lib\site-packages\setuptools\_distutils\dist.py", line 967, in run_commands
self.run_command(cmd)
File "D:\软件\djangoProject\venv\lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
cmd_obj.run()
File "D:\软件\djangoProject\venv\lib\site-packages\wheel\bdist_wheel.py", line 299, in run
self.run_command('build')
File "D:\软件\djangoProject\venv\lib\site-packages\setuptools\_distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "D:\软件\djangoProject\venv\lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
cmd_obj.run()
File "D:\软件\djangoProject\venv\lib\site-packages\setuptools\_distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "D:\软件\djangoProject\venv\lib\site-packages\setuptools\_distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "D:\软件\djangoProject\venv\lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
cmd_obj.run()
File "D:\软件\djangoProject\venv\lib\site-packages\setuptools\command\build_ext.py", line 79, in run
_build_ext.run(self)
File "D:\软件\djangoProject\venv\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 339, in run
self.build_extensions()
File "D:\软件\djangoProject\venv\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 448, in build_extensions
self._build_extensions_serial()
File "D:\软件\djangoProject\venv\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 473, in _build_extensions_serial
self.build_extension(ext)
File "D:\软件\djangoProject\venv\lib\site-packages\setuptools\command\build_ext.py", line 202, in build_extension
_build_ext.build_extension(self, ext)
File "D:\软件\djangoProject\venv\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 534, in build_extension
depends=ext.depends)
File "D:\软件\djangoProject\venv\lib\site-packages\setuptools\_distutils\_msvccompiler.py", line 327, in compile
self.initialize()
File "D:\软件\djangoProject\venv\lib\site-packages\setuptools\_distutils\_msvccompiler.py", line 224, in initialize
vc_env = _get_vc_env(plat_spec)
File "D:\软件\djangoProject\venv\lib\site-packages\setuptools\msvc.py", line 316, in msvc14_get_vc_env
return _msvc14_get_vc_env(plat_spec)
File "D:\软件\djangoProject\venv\lib\site-packages\setuptools\msvc.py", line 271, in _msvc14_get_vc_env
"Unable to find vcvarsall.bat"
setuptools._distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Failed building wheel for mysqlclient
ERROR: Command errored out with exit status 1:
command: 'D:\软件\djangoProject\venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\huawei\\AppData\\Local\\Temp\\pip-install-r2bjdi1q\\mysqlclient_23702596214441c2b124ccf5491fb7f9\\setup.py'"'"'; __file__='"'"'C:\\Users\\huawei\\AppData\\Local\\Temp\\pip-install-r2bjdi1q\\mysqlclient_23702596214441c2b124ccf5491fb7f9\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\huawei\AppData\Local\Temp\pip-record-3okmcjfl\install-record.txt' --single-version-externally-managed --compile --install-headers 'D:\软件\djangoProject\venv\include\site\python3.7\mysqlclient'
cwd: C:\Users\huawei\AppData\Local\Temp\pip-install-r2bjdi1q\mysqlclient_23702596214441c2b124ccf5491fb7f9\
Complete output (26 lines):
running install
D:\软件\djangoProject\venv\lib\site-packages\setuptools\command\install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\MySQLdb
copying MySQLdb\__init__.py -> build\lib.win-amd64-3.7\MySQLdb
copying MySQLdb\_exceptions.py -> build\lib.win-amd64-3.7\MySQLdb
copying MySQLdb\connections.py -> build\lib.win-amd64-3.7\MySQLdb
copying MySQLdb\converters.py -> build\lib.win-amd64-3.7\MySQLdb
copying MySQLdb\cursors.py -> build\lib.win-amd64-3.7\MySQLdb
copying MySQLdb\release.py -> build\lib.win-amd64-3.7\MySQLdb
copying MySQLdb\times.py -> build\lib.win-amd64-3.7\MySQLdb
creating build\lib.win-amd64-3.7\MySQLdb\constants
copying MySQLdb\constants\__init__.py -> build\lib.win-amd64-3.7\MySQLdb\constants
copying MySQLdb\constants\CLIENT.py -> build\lib.win-amd64-3.7\MySQLdb\constants
copying MySQLdb\constants\CR.py -> build\lib.win-amd64-3.7\MySQLdb\constants
copying MySQLdb\constants\ER.py -> build\lib.win-amd64-3.7\MySQLdb\constants
copying MySQLdb\constants\FIELD_TYPE.py -> build\lib.win-amd64-3.7\MySQLdb\constants
copying MySQLdb\constants\FLAG.py -> build\lib.win-amd64-3.7\MySQLdb\constants
warning: build_py: byte-compiling is disabled, skipping.
running build_ext
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Command errored out with exit status 1: 'D:\软件\djangoProject\venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\huawei\\AppData\\Local\\Temp\\pip-install-r2bjdi1q\\mysqlclient_23702596214441c2b124ccf5491fb7f9\\setup.py'"'"'; __file__='"'"'C:\\Users\\huawei\\AppData\\Local\\Temp\\pip-install-r2bjdi1q\\mysqlclient_23702596214441c2b124ccf5491fb7f9\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\huawei\AppData\Local\Temp\pip-record-3okmcjfl\install-record.txt' --single-version-externally-managed --compile --install-headers 'D:\软件\djangoProject\venv\include\site\python3.7\mysqlclient' Check the logs for full command output.
WARNING: You are using pip version 21.3.1; however, version 23.0.1 is available.
You should consider upgrading via the 'D:\软件\djangoProject\venv\Scripts\python.exe -m pip install --upgrade pip' command.
|
|