You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just installed smolagents with uv, when i run the sample test from the guide, it says transformers module not found.
Do I have to manually install it? Seems it's not included in the package.
Pls advise, thanks.
ubuntu@s:~/src$ uv add smolagents
Resolved 161 packages in 5.59s
Prepared 14 packages in 4.50s
Installed 14 packages in 219ms
+ duckduckgo-search==7.2.1
+ fsspec==2024.12.0
+ huggingface-hub==0.27.1
+ jinja2==3.1.5
+ markdown-it-py==3.0.0
+ markdownify==0.14.1
+ markupsafe==3.0.2
+ mdurl==0.1.2
+ pandas==2.2.3
+ primp==0.10.1
+ pygments==2.19.1
+ rich==13.9.4
+ smolagents==1.5.0
+ tzdata==2024.2
ubuntu@s:~/src/products$ uv run smola_test.py
Traceback (most recent call last):
File "/home/ubuntu/src/products/smola_test.py", line 3, in <module>
from smolagents import CodeAgent, HfApiModel
File "/home/ubuntu/src/.venv/lib/python3.13/site-packages/smolagents/__init__.py", line 19, in <module>
from .agents import *
File "/home/ubuntu/src/.venv/lib/python3.13/site-packages/smolagents/agents.py", line 37, in <module>
from .models import (
...<2 lines>...
)
File "/home/ubuntu/src/.venv/lib/python3.13/site-packages/smolagents/models.py", line 28, in <module>
from transformers import (
...<4 lines>...
)
ModuleNotFoundError: No module named 'transformers'
The text was updated successfully, but these errors were encountered:
The transformers module exist in the optional dependencies under pyproject.toml. But you can install it manually with 'pip install transformers' it worked for me.
I just installed smolagents with uv, when i run the sample test from the guide, it says transformers module not found.
Do I have to manually install it? Seems it's not included in the package.
Pls advise, thanks.
The text was updated successfully, but these errors were encountered: