python : undefined symbol: PyUnicodeUCS2_DecodeUTF8

前端 未结 1 693
轮回少年
轮回少年 2020-12-20 20:01

I get a problem when I try to exec my main file in python (I\'m on Ubuntu 12.04 with python 2.7). I get this error :

michael@michael-laptop-ubuntu:~/rubyWork         


        
相关标签:
1条回答
  • 2020-12-20 20:29

    You are using a different Python interpreter for running your code than the one used to compile scipy. This usually occurs with a Python installation compiled with Unicode UCS2 support running modules compiled against a Python installation with Unicode UCS4 support (or vis versa). You need to recompile/reinstall the scipy installation with exact the Python interpreter used for running your code.

    0 讨论(0)
提交回复
热议问题