llSourcell / Doctor-Dignity

Doctor Dignity is an LLM that can pass the US Medical Licensing Exam. It works offline, it's cross-platform, & your health data stays private.
Apache License 2.0
3.83k stars 406 forks source link

[Question] No module named 'tvm' #29

Closed yuehengwu closed 10 months ago

yuehengwu commented 10 months ago

❓ General Questions

When I run the python prepare_model_lib.py script, an error occurs:

Traceback (most recent call last):
  File "/Users/wyh/Desktop/Programs/DoctorGPT/ios/prepare_model_lib.py", line 3, in <module>
    from tvm.contrib import cc
ModuleNotFoundError: No module named 'tvm'

I tried :

pip install --pre --force-reinstall mlc-ai-nightly mlc-chat-nightly -f https://mlc.ai/wheels

and got this:

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x10d1ca4b0>, 'Connection to mlc.ai timed out. (connect timeout=15)')': /wheels
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x10df43470>, 'Connection to mlc.ai timed out. (connect timeout=15)')': /wheels
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x10df43680>, 'Connection to mlc.ai timed out. (connect timeout=15)')': /wheels
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x10df438c0>, 'Connection to mlc.ai timed out. (connect timeout=15)')': /wheels
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x10df43ad0>, 'Connection to mlc.ai timed out. (connect timeout=15)')': /wheels
ERROR: Could not find a version that satisfies the requirement mlc-ai-nightly (from versions: none)
ERROR: No matching distribution found for mlc-ai-nightly

python version:

python --version
pip --version
which python
which pip3

Python 3.11.4
pip 23.2.1 from /Users/wyh/anaconda3/lib/python3.11/site-packages/pip (python 3.11)
/Users/wyh/anaconda3/bin/python
/Users/wyh/anaconda3/bin/pip3

MacOS Ventura 13.5.2

SamuelCheng123 commented 10 months ago

Hi there, can you tell me how you resolved it later?