(Dev) PS C:\Dev> pip install…
Private research annotation
Sign in to add a private research label or note.
- User
(Dev) PS C:\Dev> pip install --index-url=https://artifactory.internal.cba/api/pypi/org.python.pypi/simple/ multiprocessing Looking in indexes: https://artifactory.internal.cba/api/pypi/org.python.pypi/simple/ Collecting multiprocessing Using cached https://artifactory.internal.cba/api/pypi/org.python.pypi/packages/packages/b8/8a/38187040f36cec8f98968502992dca9b00cc5e88553e01884ba29cbe6aac/multiprocessing-2.6.2.1.tar.gz (108 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:\Dev\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in main() File "C:\Dev\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:\Dev\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\xiaoxu\AppData\Local\Temp\pip-build-env-1r4d1c3j\overlay\Lib\site-packages\setuptools\build_meta.py", line 327, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=[]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\xiaoxu\AppData\Local\Temp\pip-build-env-1r4d1c3j\overlay\Lib\site-packages\setuptools\build_meta.py", line 297, in _get_build_requires self.run_setup() File "C:\Users\xiaoxu\AppData\Local\Temp\pip-build-env-1r4d1c3j\overlay\Lib\site-packages\setuptools\build_meta.py", line 497, in run_setup super().run_setup(setup_script=setup_script) File "C:\Users\xiaoxu\AppData\Local\Temp\pip-build-env-1r4d1c3j\overlay\Lib\site-packages\setuptools\build_meta.py", line 313, in run_setup exec(code, locals()) File "", line 94 print 'Macros:' ^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)? [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.
- Assistant
The error you're encountering indicates that you're attempting to install the
multiprocessingpackage, which is actually part of the Python standard library starting from Python 2.6, and you typically don't need to install it separately viapip.However, the specific version being fetched (
multiprocessing-2.6.2.1.tar.gz) is an old and likely incompatible version ofmultiprocessingintended for use with Python 2. The error messageSyntaxError: Missing parentheses in call to 'print'suggests that the package's setup script is using Python 2 syntax, while you're running a version of Python that uses Python 3 syntax.