python报错ImportError: [joblib] Attempting to do parallel computing without protecting,,今天学习的时候跑一个
python报错ImportError: [joblib] Attempting to do parallel computing without protecting,,今天学习的时候跑一个
今天学习的时候跑一个KMean算法,使用Anaconda下的spyder编辑器,直接运行就一直卡住在哪里,如果直接写在IPython console面板里,结果很快就能出来。
另存为.py文件直接在cmd里面执行才发现问题所在,importError 报错。
百度了下问题,很快找到答案,参考https://blog.csdn.net/u010004460/article/details/53889234,添加if __name__==‘__main__‘:,成功搞定。
python报错ImportError: [joblib] Attempting to do parallel computing without protecting
相关内容
- python批量启动关闭程序,,#!/usr/bin
- python ---求100以内的质数有哪些,,#coding=ut
- Python代码规范(PEP8)问题及解决,pythonpep8,安装了PyC
- python - 定时清理ES 索引,python清理es索引,只保留三天
- Python--妯″潡涔媡ime銆乺andom銆乷s銆乭ashlib,python--ha
- python机器学习scikit-learn的安装,,在安装scikit-
- 03-第一个脚本程序以及输入输出_Python编程之路,,上节
- python之if __name__ == '__main__',__name___main__,概
- Python踩坑之路-Python-3.6 安装pycrypto 2.6.1各种疑难杂症及
- Python文件操作,看这篇就足够,,本文为译文,原文链接
评论关闭