-
Notifications
You must be signed in to change notification settings - Fork 337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install error "ModuleNotFoundError: No module named 'jax'" #172
Comments
Create a new venv in python 3.10.x and try to install it that way:
|
Thanks @aleksmaksimovic , I think the example inside https://huggingface.co/google/timesfm-1.0-200m may need update because TimesFm doesn't support directly parameter input, but should wrap it with TimesFmHparams. From code:
Correct me if I am wrong, thanks |
not work. $ python --version
Python 3.10.10
$ python -m virtualenv venv
$ ./venv/bin/pip install 'timesfm[pax]'
$ ./venv/bin/python
>>> import timesfm
TimesFM v1.2.0. See https://github.com/google-research/timesfm/blob/master/README.md for updated APIs.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "x/venv/lib/python3.10/site-packages/timesfm/__init__.py", line 18, in <module>
from timesfm.timesfm_base import freq_map, TimesFmCheckpoint, TimesFmHparams, TimesFmBase
File "x/venv/lib/python3.10/site-packages/timesfm/timesfm_base.py", line 27, in <module>
from . import xreg_lib
File "x/venv/lib/python3.10/site-packages/timesfm/xreg_lib.py", line 20, in <module>
import jax
ModuleNotFoundError: No module named 'jax' |
The issue was resolved after switching the operating system from macOS to Linux. |
Hi guys,
If I simply install the lib with "pip install timesfm" and try the example code described in https://huggingface.co/google/timesfm-1.0-200m:
It will return an error:
Then I try to install jax manually, but it will meet another error:
Could you help for what's wrong happened? thanks.
The text was updated successfully, but these errors were encountered: