Trying to install MSQL using the pip install PySQL command but getting the following error:
C. Administrator: Command Prompt
Microsoft Windows [Version 10.0.19045.4598] (c) Microsoft Corporation. All rights reserved.
C:WINDOWSsystem32>pip install PySQL Collecting PySQL
Using cached pysql-0.16.tar.gz (127 kB) Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
* Getting requirements to build wheel did not run successfully.
exit code: 1
[22 lines of output]
Traceback (most recent call last):
File "C:UsersbhartAppDataLocalProgramsPythonPython312Libsite-packagespip_vendorpyproject_hooks_in_process_in_process.py", line 353, in <module> main() File "C:UsersbhartAppDataLocalProgramsPythonPython312Libsite-packagespip_vendorpyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook (**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:UsersbhartAppDataLocalProgramsPythonPython312Libsite-packagespip_vendorpyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel return hook(config_settings)
ΑΛΛΑ
File "C:UsersbhartAppDataLocalTemppip-build-env-snahbmx_overlayLibsite-packagessetuptoolsbuild_meta.py", line 327, in get_requires_for_build_wheel return self._get_build_requires (config_settings, requirements=[])
ΑΛΑΛΑΛΑΛΑΛΑΛΑΛΑΛΑΛΑΛΑΛΑΛΑΛΑΛΑΛΑΛΑΛΑΛΑΛΑΛΑΛΑΛΑΛΑΛΑΛΑΛΑΛΑΛΑΛΑ
File "C:UsersbhartAppDataLocalTemppip-build-env-snahbmx_overlayLibsite-packagessetuptoolsbuild_meta.py", line 297, in _get_build_requires
self.run_setup()
File "C:UsersbhartAppDataLocalTemppip-build-env-snahbmx_overlayLibsite-packagessetuptoolsbuild_meta.py", line 497, in run_setup
super().run_setup(setup_script_setup_script)
File "C:UsersbhartAppDataLocalTemppip-build-env-snahbmx_overlayLibsite-packagessetuptoolsbuild_meta.py", line 313, in run_setup exec(code, locals())
File "<string>", line 31
except Exception, e:
^^^^^^^^^^^^
SyntaxError: multiple exception types must be parenthesized
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
exit code: 1
> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
I tried updating the setup.py but nothing changed
New contributor
user19791140 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.