python joblib Parallel on Windows not working even “if __name__ == '__main__':” is added

后端 未结 2 1363
情话喂你
情话喂你 2021-02-09 00:11

I\'m running parallel processing in Python on Windows. Here\'s my code:

from joblib import Parallel, delayed

def f(x): 
    return sqrt(x)

if __name__ == \'__m         


        
2条回答
  •  孤街浪徒
    2021-02-09 00:30

    Joblib is working on my Windows 10 when I am using the version 1.19.5 of numpy. I upgraded all outdated package; to do that you can run the following command:

    pip list --outdated
    pip install --upgrade
    

    or you use pip_upgrade_outdated which upgrades all outdated packages by doing pip install pip-upgrade-outdated and pip-upgrade-outdated according this this site

提交回复
热议问题