Error installing using pip on windows 10
aniketgm opened this issue · comments
When installing using pip, I'm getting the following error:
PS ~> pip --version
pip 23.2.1 from c:\users\aniketgm\appdata\local\programs\python\python38\lib\site-packages\pip (python 3.8)
PS ~> pip install cht
Collecting cht
Using cached cht-1.2.1.tar.gz (2.7 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
╰─> [20 lines of output]
Traceback (most recent call last):
File "c:\users\aniketgm\appdata\local\programs\python\python38\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
main()
File "c:\users\aniketgm\appdata\local\programs\python\python38\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "c:\users\aniketgm\appdata\local\programs\python\python38\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\Users\aniketgm\AppData\Local\Temp\pip-build-env-wme1gahn\overlay\Lib\site-packages\setuptools\build_meta.py", line 341, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "C:\Users\aniketgm\AppData\Local\Temp\pip-build-env-wme1gahn\overlay\Lib\site-packages\setuptools\build_meta.py", line 323, in _get_build_requires
self.run_setup()
File "C:\Users\aniketgm\AppData\Local\Temp\pip-build-env-wme1gahn\overlay\Lib\site-packages\setuptools\build_meta.py", line 487, in run_setup
super(_BuildMetaLegacyBackend,
File "C:\Users\aniketgm\AppData\Local\Temp\pip-build-env-wme1gahn\overlay\Lib\site-packages\setuptools\build_meta.py", line 338, in run_setup
exec(code, locals())
File "<string>", line 4, in <module>
File "C:\Users\aniketgm\AppData\Local\Temp\pip-install-ebn8m_5q\cht_ef06123a2f214c358f8c9be6138c16f5\cht.py", line 99
print "Previous command output:\n"
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Previous command output:\n")?
[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.
You likely need to install Python 2, not Python 3 to use this pip package.
@RadoslavL Thank you for the suggestion. There are two ways on windows: I tried both and worked for me.
One as you suggested, install python2 and install using pip2 Or use scoop.