导入包后,Python就会中止

时间:2017-05-03 11:00:39

标签: python python-3.x windows-subsystem-for-linux

我在WSL上使用Python 3.4.3(Ubuntu 14.04)。以前一切都很好。但是,在更新了我的所有pip包和Ubuntu包之后,每当我运行import theano时,Python就会中止。如果Python脚本只有那一行,或者我在REPL中运行它,它仍然会中止。如果我导入pandaskeras,但不导入numpyscipynltk,也会中止。

当我尝试使用GDB进行调试时,我得到了这个:

Program received signal SIGABRT, Aborted.
0x00007ffffee46c37 in __GI_raise (sig=sig@entry=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56      ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.

堆栈跟踪:

#0  0x00007ffffee46c37 in __GI_raise (sig=sig@entry=6)                               
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:56                                    
#1  0x00007ffffee4a028 in __GI_abort () at abort.c:89                                
#2  0x00007fffff1e7060 in __free_stacks (limit=limit@entry=41943040)                 
    at allocatestack.c:287                                                           
#3  0x00007fffff1e713f in queue_stack (stack=0x7ffff93f0700) at allocatestack.c:310  
#4  __deallocate_stack (pd=pd@entry=0x7ffff93f0700) at allocatestack.c:771           
#5  0x00007fffff1e8419 in __free_tcb (pd=pd@entry=0x7ffff93f0700)                    
    at pthread_create.c:226                                                          
#6  0x00007fffff1e9694 in pthread_join (threadid=140737375045376, thread_return=0x0) 
    at pthread_join.c:113                                                            
#7  0x00007ffffc7fc977 in blas_thread_shutdown_ () from /usr/lib/libopenblas.so.0    
#8  0x00007ffffeed49c2 in __libc_fork ()                                             
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/../fork.c:95                           
#9  0x0000000000572b3a in ?? ()                                                      
#10 0x00000000004866fb in PyEval_EvalFrameEx ()                                      
#11 0x000000000048e45b in PyEval_EvalCodeEx ()                                       
#12 0x000000000048a673 in PyEval_EvalFrameEx ()                                      
#13 0x000000000048f2df in ?? ()                                                      
#14 0x000000000053493d in ?? ()                                                      
#15 0x00000000004f14fa in PyObject_Call ()                                           
#16 0x0000000000507a0a in ?? ()                                                      
#17 0x0000000000535916 in ?? ()                                                      
#18 0x000000000048a487 in PyEval_EvalFrameEx ()                                      
#19 0x000000000048a19d in PyEval_EvalFrameEx ()                                      
#20 0x000000000048a19d in PyEval_EvalFrameEx ()                                      
#21 0x000000000048e45b in PyEval_EvalCodeEx ()                                       
#22 0x000000000048f15b in PyEval_EvalCode ()                                         
#23 0x0000000000566c1f in ?? ()                                                      
#24 0x000000000048b98c in PyEval_EvalFrameEx ()                                      
#25 0x000000000048e45b in PyEval_EvalCodeEx ()                                       
#26 0x000000000048a673 in PyEval_EvalFrameEx ()                                      
#27 0x000000000048a19d in PyEval_EvalFrameEx ()                                      
#28 0x000000000048a19d in PyEval_EvalFrameEx ()                                      
#29 0x000000000048a19d in PyEval_EvalFrameEx ()                                      
#30 0x000000000048a19d in PyEval_EvalFrameEx ()                                      
#31 0x000000000048f2df in ?? ()                                                      
#32 0x00000000004f14fa in PyObject_Call ()                                           
#33 0x00000000004b0a92 in _PyObject_CallMethodIdObjArgs ()                           
#34 0x00000000004b0eab in PyImport_ImportModuleLevelObject ()                        
#35 0x000000000051bca7 in ?? ()                                                      

我对GDB和Python不太熟悉,无法进一步调试。

我尝试重新安装Python和pip包,但它仍然中止。可能有什么不对?

0 个答案:

没有答案