business-science / modeltime.gluonts

GluonTS Deep Learning with Modeltime
https://business-science.github.io/modeltime.gluonts/
Other
38 stars 11 forks source link

because these package versions have conflicting dependencies. #59

Open he024454933 opened 6 months ago

he024454933 commented 6 months ago

D:\下載\app\self-operating-computer-main\self-operating-computer-main>pip install -r requirements-audio.txt Collecting whisper-mic (from -r requirements-audio.txt (line 1)) Using cached whisper_mic-1.3.1-py3-none-any.whl.metadata (4.1 kB) Collecting attrs (from whisper-mic->-r requirements-audio.txt (line 1)) Using cached attrs-23.1.0-py3-none-any.whl (61 kB) Collecting click (from whisper-mic->-r requirements-audio.txt (line 1)) Using cached click-8.1.7-py3-none-any.whl.metadata (3.0 kB) Collecting ffmpeg-python (from whisper-mic->-r requirements-audio.txt (line 1)) Using cached ffmpeg_python-0.2.0-py3-none-any.whl (25 kB) Collecting more-itertools (from whisper-mic->-r requirements-audio.txt (line 1)) Using cached more_itertools-10.1.0-py3-none-any.whl.metadata (33 kB) Requirement already satisfied: numpy in c:\users\ks913\appdata\local\programs\python\python312\lib\site-packages (from whisper-mic->-r requirements-audio.txt (line 1)) (1.26.0) Collecting openai-whisper (from whisper-mic->-r requirements-audio.txt (line 1)) Using cached openai-whisper-20231117.tar.gz (798 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting pyaudio (from whisper-mic->-r requirements-audio.txt (line 1)) Using cached PyAudio-0.2.14-cp312-cp312-win_amd64.whl.metadata (2.7 kB) Collecting pydantic (from whisper-mic->-r requirements-audio.txt (line 1)) Using cached pydantic-2.5.2-py3-none-any.whl.metadata (65 kB) Collecting pydub (from whisper-mic->-r requirements-audio.txt (line 1)) Using cached pydub-0.25.1-py2.py3-none-any.whl (32 kB) Collecting pynput (from whisper-mic->-r requirements-audio.txt (line 1)) Using cached pynput-1.7.6-py2.py3-none-any.whl (89 kB) Requirement already satisfied: requests in c:\users\ks913\appdata\local\programs\python\python312\lib\site-packages (from whisper-mic->-r requirements-audio.txt (line 1)) (2.31.0) Collecting rich (from whisper-mic->-r requirements-audio.txt (line 1)) Using cached rich-13.7.0-py3-none-any.whl.metadata (18 kB) Collecting speechrecognition (from whisper-mic->-r requirements-audio.txt (line 1)) Using cached SpeechRecognition-3.10.1-py2.py3-none-any.whl.metadata (28 kB) Collecting tdqm (from whisper-mic->-r requirements-audio.txt (line 1)) Using cached tdqm-0.0.1.tar.gz (1.4 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done INFO: pip is looking at multiple versions of whisper-mic to determine which version is compatible with other requirements. This could take a while. Collecting whisper-mic (from -r requirements-audio.txt (line 1)) Using cached whisper_mic-1.3.0-py3-none-any.whl.metadata (4.1 kB) Using cached whisper_mic-1.2.1-py3-none-any.whl.metadata (4.1 kB) Using cached whisper_mic-1.2.0-py3-none-any.whl.metadata (4.1 kB) Using cached whisper_mic-1.1.1-py3-none-any.whl.metadata (4.0 kB) Collecting transformers (from whisper-mic->-r requirements-audio.txt (line 1)) Using cached transformers-4.36.0-py3-none-any.whl.metadata (126 kB) Collecting whisper-mic (from -r requirements-audio.txt (line 1)) Using cached whisper_mic-1.1.0-py3-none-any.whl.metadata (4.0 kB) Using cached whisper_mic-1.0.1-py3-none-any.whl.metadata (3.9 kB) Using cached whisper_mic-1.0.0-py3-none-any.whl.metadata (3.6 kB) INFO: pip is still looking at multiple versions of whisper-mic to determine which version is compatible with other requirements. This could take a while. Using cached whisper_mic-0.0.1-py3-none-any.whl (4.4 kB) ERROR: Cannot install -r requirements-audio.txt (line 1) because these package versions have conflicting dependencies.

The conflict is caused by: whisper-mic 1.3.1 depends on torch whisper-mic 1.3.0 depends on torch whisper-mic 1.2.1 depends on torch whisper-mic 1.2.0 depends on torch whisper-mic 1.1.1 depends on torch whisper-mic 1.1.0 depends on torch whisper-mic 1.0.1 depends on torch whisper-mic 1.0.0 depends on torch whisper-mic 0.0.1 depends on torch

To fix this you could try to:

  1. loosen the range of package versions you've specified
  2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

he024454933 commented 6 months ago

what's the problem

mdancho84 commented 4 months ago

Please follow the installation instructions here:

https://business-science.github.io/modeltime.gluonts/articles/managing-envs.html

There are several methods. You can create a custom env with this code:


reticulate::py_install(
    envname  = "my_gluonts_env",
    python_version = "3.7",
    packages = c(
        "mxnet~=1.7",
        "gluonts==0.8.0",
        "pandas==1.0.5",
        "numpy",
        "pathlib==1.0.1",
        "ujson==4.0.2"
    ),
    method = "conda",
    pip = TRUE
)