Error installing multiprocessing

Encountered this error installing multiprocessing

pip install multiprocessing                               
Collecting multiprocessing                                     
  Downloading multiprocessing- (108 kB)          
     ━━━━━━━━━━━━━━━━━━━━━━ 108.0/108.0 kB 4.0 MB/s eta 0:00:00
  Preparing metadata ( ... error                      
  error: subprocess-exited-with-error                          
  × python egg_info did not run successfully.         
  │ exit code: 1                                               
  ╰─> [7 lines of output]
      Traceback (most recent call last):        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-ph250xqi/multiprocessing_169be8$63aca4a5e837cb69ec4612bc5/", line 94
          print 'Macros:'
      SyntaxError: Missing parentheses in call to 'print'. Did
you mean print('Macros:')?
      [end of output]

  note: This error originates from a subprocess, and is likely

Python version is:

Python 3.9.12 (main, Jun  1 2022, 11:38:51) 
[GCC 7.5.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.

Seems like a python 2/3 error
Happens even when I use pip3

There is no need to install it at all. This package has been built in to the Python standard library since Python 2.6. As far as I know the package on PyPI is a backport that is only useful for even older (obsolete) Python versions.

1 Like

Yes it is written right in the package’s short description on PyPI:

Backport of the multiprocessing package to Python 2.4 and 2.5

Though it looks like the package is missing metadata about supported Python versions. I think this should be fixed.