python生成错误PyUnicodeUCS4

2024-04-20 03:08:49 发布

您现在位置:Python中文网/ 问答频道 /正文

我在github上有一个文件可以在我的一台电脑上运行

您可以使用git clone -b my-feature https://github.com/DonBeo/scikit-learn.git下载它

当我在另一台电脑上运行make时,我得到以下错误:

ImportError: /home/donbeo/Documents/scikit-learn/sklearn/__check_build/_check_build.so: undefined symbol: PyUnicodeUCS4_DecodeUTF8
___________________________________________________________________________
Contents of /home/donbeo/Documents/scikit-learn/sklearn/__check_build:
_check_build.c            setup.py                  __init__.py
_check_build.pyx          __pycache__               setup.pyc
_check_build.so
___________________________________________________________________________
It seems that scikit-learn has not been built correctly.

我怎么解决这个问题? 我的理解是,这是python中的一个常见错误,但应该通过重建来解决。我如何重建图书馆,使其保持本地?在

编辑: 正如评论中所说,我的错误可能是由于各种python版本造成的

^{pr2}$

我怎么解决?在


Tags: pygitbuildgithubhomesocheck错误