This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Multiprocessing module update fails with pip3
Type: Stage: resolved
Components: Installation Versions: Python 3.7
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: Dr_Zaszus, cheryl.sabella, steven.daprano
Priority: normal Keywords:

Created on 2018-09-28 16:26 by Dr_Zaszus, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (5)
msg326643 - (view) Author: Dr_Zaszus (Dr_Zaszus) Date: 2018-09-28 16:26
pip3 install --upgrade multiprocessing 

fails with a python2 error in 'setup.py': 
       print 'Macros:'
                     ^
   SyntaxError: Missing parentheses in call to 'print'. Did you mean print('Macros:')?
msg326646 - (view) Author: Steven D'Aprano (steven.daprano) * (Python committer) Date: 2018-09-28 16:39
``pip3 search multiprocessing`` says:

multiprocessing (2.6.2.1)            - Backport of the multiprocessing package to Python 2.4 and 2.5

so you are trying to install a Python 2.4/2.5 package into Python 3.7, which naturally cannot work.

In Python 2.6+ multiprocessing is a std lib module and you don't need to use pip to install it. I'm not sure if pip works with Python 2.4 or 2.5, but if it does, you'll need to use the 2.4/2.5 version of pip to do the update, not pip3.

I'm going to close this as not a bug. If you disagree, please give reasons why you think it should be reopened.
msg326647 - (view) Author: Dr_Zaszus (Dr_Zaszus) Date: 2018-09-28 16:47
No, you are right, thank you. But just to be clear, how do I update multiprocessing in python3 then?
msg326677 - (view) Author: Cheryl Sabella (cheryl.sabella) * (Python committer) Date: 2018-09-29 13:52
As Steven said,
> In Python 2.6+ multiprocessing is a std lib module

This means that multiprocessing will be current with the version of Python 3 that you have installed.  If you're currently on 3.7.0, when 3.7.1 is released and you install it, you will get all the updates to multiprocessing (if there were any).
msg326736 - (view) Author: Dr_Zaszus (Dr_Zaszus) Date: 2018-09-30 17:59
Thank you! It's clear now.
History
Date User Action Args
2022-04-11 14:59:06adminsetgithub: 79016
2018-09-30 17:59:59Dr_Zaszussetmessages: + msg326736
2018-09-29 13:52:54cheryl.sabellasetnosy: + cheryl.sabella
messages: + msg326677
2018-09-28 16:47:50Dr_Zaszussetmessages: + msg326647
2018-09-28 16:39:28steven.dapranosetstatus: open -> closed

nosy: + steven.daprano
messages: + msg326646

resolution: not a bug
stage: resolved
2018-09-28 16:26:40Dr_Zaszuscreate