deeplabcut中遇到地区不匹配

deeplabcut中遇到地区不匹配

错误提示如下

Traceback (most recent call last):
  File "C:\Users\Photometry\anaconda3\envs\DEEPLABCUT\lib\site-packages\deeplabcut\gui\label_frames.py", line 213, in check_labelF
    check_labels(self.config, visualizeindividuals=False)
  File "C:\Users\Photometry\anaconda3\envs\DEEPLABCUT\lib\site-packages\deeplabcut\generate_training_dataset\trainingsetmanipulation.py", line 355, in check_labels
    visualization.make_labeled_images_from_dataframe(
  File "C:\Users\Photometry\anaconda3\envs\DEEPLABCUT\lib\site-packages\deeplabcut\utils\visualization.py", line 320, in make_labeled_images_from_dataframe
    fig, ax = prepare_figure_axes(w, h, scale, dpi)
  File "C:\Users\Photometry\anaconda3\envs\DEEPLABCUT\lib\site-packages\deeplabcut\utils\visualization.py", line 210, in prepare_figure_axes
    fig = plt.figure(
  File "C:\Users\Photometry\anaconda3\envs\DEEPLABCUT\lib\site-packages\matplotlib\_api\deprecation.py", line 454, in wrapper
    return func(*args, **kwargs)
  File "C:\Users\Photometry\anaconda3\envs\DEEPLABCUT\lib\site-packages\matplotlib\pyplot.py", line 771, in figure
    manager = new_figure_manager(
  File "C:\Users\Photometry\anaconda3\envs\DEEPLABCUT\lib\site-packages\matplotlib\pyplot.py", line 347, in new_figure_manager
    return _get_backend_mod().new_figure_manager(*args, **kwargs)
  File "C:\Users\Photometry\anaconda3\envs\DEEPLABCUT\lib\site-packages\matplotlib\backend_bases.py", line 3505, in new_figure_manager
    return cls.new_figure_manager_given_figure(num, fig)
  File "C:\Users\Photometry\anaconda3\envs\DEEPLABCUT\lib\site-packages\matplotlib\backend_bases.py", line 3510, in new_figure_manager_given_figure
    return cls.FigureCanvas.new_manager(figure, num)
  File "C:\Users\Photometry\anaconda3\envs\DEEPLABCUT\lib\site-packages\matplotlib\backend_bases.py", line 1703, in new_manager
    return cls.manager_class.create_with_canvas(cls, figure, num)
  File "C:\Users\Photometry\anaconda3\envs\DEEPLABCUT\lib\site-packages\matplotlib\backends\backend_wx.py", line 1006, in create_with_canvas
    frame = FigureFrameWx(num, figure, canvas_class=canvas_class)
  File "C:\Users\Photometry\anaconda3\envs\DEEPLABCUT\lib\site-packages\matplotlib\backends\backend_wx.py", line 913, in __init__
    _set_frame_icon(self)
  File "C:\Users\Photometry\anaconda3\envs\DEEPLABCUT\lib\site-packages\matplotlib\backends\backend_wx.py", line 1059, in _set_frame_icon
    icon = wx.Icon(_load_bitmap(image))
  File "C:\Users\Photometry\anaconda3\envs\DEEPLABCUT\lib\site-packages\matplotlib\backends\backend_wx.py", line 1053, in _load_bitmap
    return wx.Bitmap(str(cbook._get_data_path('images', filename)))
wx._core.wxAssertionError: C++ assertion "strcmp(setlocale(LC_ALL, NULL), "C") == 0" failed at ..\..\src\common\intl.cpp(1579) in wxLocale::GetInfo(): You probably called setlocale() directly instead of using wxLocale and now there is a mismatch between C/C++ and Windows locale.
Things are going to break, please only change locale by creating wxLocale objects to avoid this!

解决办法

将系统区域改成China
在这里插入图片描述
然后重新启动就可以。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值