由于有多个python库不兼容,安装scikit-learn python3时出错

在尝试为Python3安装scikit-learn时遇到错误,报错信息涉及PyUnicodeUCS4_DecodeUTF8符号未定义。已尝试按照源代码安装提示操作但未成功。解决方案包括使用virtualenv创建隔离的Python3环境,并确保正确安装numpy和scipy,或者重新下载适用于Python3的scikit-learn源代码并按照构建指示进行安装。
摘要由CSDN通过智能技术生成

So I was able to install sklearn for python2 but for some reason I having issues with doing the same for python3. I am getting this error:

Traceback (most recent call last):

File "/home/ajshack_pg/sklearn/__check_build/__init__.py", line 44, in

from ._check_build import check_build # noqa

ImportError: /home/ajshack_pg/sklearn/__check_build/_check_build.so: undefined symbol: PyUnicodeUCS4_DecodeUTF8

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "", line 1, in

File "/home/ajshack_pg/sklearn/__init__.py", line 133, in

from . import __check_build

File "/home/ajshack_pg/sklearn/__check_build/__init__.py", line 46, in

raise_build_error(e)

File "/home/ajshack_pg/sklearn/__check_build/__init__.py", line

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值