我有一个使用NLTK的Python 2.7脚本,该脚本可以在命令提示符下正常运行。当我在同一台计算机上的本地Apache服务器中运行它时,它崩溃并且错误日志显示“加载scipy”时出现“ NotImplementedError:无法确定cpus数”。更详细的消息如下所示。还有其他人有同样的问题吗?
... [2018年8月9日星期四18:07:50] [错误] [客户端:: 1]在初始化scipy.interpolate.interpnd \ r中,文件“ interpnd.pyx”,第1行,引用者:http://localhost/index.html [2018年8月9日星期四18:07:50] [错误] [客户端:: 1]文件“ C:\ Anaconda2 \ lib \ site-packages \ scipy \ spatial \ __ init__.py”,第95行,位于\ r,引用:http://localhost/index.html [2018年8月9日星期四18:07:50] [错误] .ckdtree导入* \ r中的[client :: 1],引荐来源:http://localhost/index.html [2018年8月9日星期四18:07:50] [错误] [客户端:: 1]在初始化scipy.spatial.ckdtree \ r中,文件“ ckdtree.pyx”,第31行,引用者:http://localhost/index.html [2018年8月9日星期四18:07:50] [错误] [客户端:: 1]文件“ C:\ Anaconda2 \ lib \ multiprocessing \ __ init__.py”,行136,在cpu_count \ r中,引用者:{{3} } [2018年8月9日星期四18:07:50] [错误] [客户端:: 1]引发NotImplementedError('无法确定cpus数')\ r,引荐来源:http://localhost/index.html [2018年8月9日星期四18:07:50] [错误] [客户端:: 1] NotImplementedError:无法确定cpus \ r的数量,引用者:http://localhost/index.html