admin管理员组文章数量:1122846
AttributeError: module 'turbojpeg' has no attribute 'TurboJPEG' on Mac.
The full error is:
AttributeError Traceback (most recent call last)
Cell In[5], line 8
6 from PIL import Image
7 from huggingface_hub import hf_hub_download
----> 8 from sgblur.src.blur.blur import blurPicture
9 from turbojpeg import TurboJPEG
11 # Set paths
File ~/Desktop/Pyronear/sgblur/src/blur/blur.py:11
8 import json, uuid
9 import requests
---> 11 jpeg = turbojpeg.TurboJPEG()
13 crop_save_dir = '/data/crops'
15 def blurPicture(picture, keep):
AttributeError: module 'turbojpeg' has no attribute 'TurboJPEG'. I installed it with this link:
I tried to uninstall install in several ways. On windows this looks different:
Indeed: Fatemeh-MA commented on Aug 8, 2019 I think I found the solution, I had the same problem. you need to use "libjpeg-turbo-vc" version instead of "libjpeg-turbo-gcc". it works for me. best luck
But there is no such version for mac. Even chatgpt is looping on this question.
There might be something with python version (tried 3.11 and a brew link to 3.13 as well) or numpy version.
It is to use this algorithm on mac:
本文标签: AttributeError module 39turbojpeg39 has no attribute 39TurboJPEG39 on MacStack Overflow
版权声明:本文标题:AttributeError: module 'turbojpeg' has no attribute 'TurboJPEG' on Mac - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736281868a1926459.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论