2021年2月7日星期日

PyTouchBar: no module named Foundation

I installed PyTouchBar using pip3
When I tried to import it, however, it gives me this error.

$ python3  >>> import PyTouchBar  Traceback (most recent call last):    File "<stdin>", line 1, in <module>    File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/PyTouchBar/__init__.py", line 5, in <module>      from .TouchBar import *    File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/PyTouchBar/TouchBar.py", line 13, in <module>      from Foundation import *  ModuleNotFoundError: No module named 'Foundation'  

On Python 2, Foundation works perfectly, by the way.
Could someone tell me how to fix this? Thanks in advance!

https://stackoverflow.com/questions/66095424/pytouchbar-no-module-named-foundation February 08, 2021 at 11:05AM

没有评论:

发表评论