-
-
Notifications
You must be signed in to change notification settings - Fork 611
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
库冲突 #104
Comments
第一步安装后再单独安装torch |
我试过,但是会提示另外的版本冲突 alize NumPy: module compiled against API version 0x10 but this version of numpy is 0xf (Triggered internally at /Users/runner/work/pytorch/pytorch/pytorch/torch/csrc/utils/tensor_numpy.cpp:84.) |
命令后边加上 --no-deps |
试过了不行的,不确定是不是只有mac有这个问题 |
我换了台window可以,估计是mac不太兼容 |
安装时可以加上这个参数 |
在linux上也是冲突 |
按照 --no-deps安装 安装完毕后再单独 pip install torch |
mac m1直接使用pip install -r requirements.txt --no-deps
安装会ModuleNotFoundError: No module named 'torch',
而用pip install -r requirements.txt 则会冲突
The conflict is caused by:
The user requested numpy==1.22.0
altair 5.2.0 depends on numpy
blis 0.7.11 depends on numpy>=1.19.0; python_version >= "3.9"
contourpy 1.2.0 depends on numpy<2.0 and >=1.20
ctranslate2 4.0.0 depends on numpy
encodec 0.1.1 depends on numpy
gradio 4.19.2 depends on numpy~=1.0
gruut 2.2.3 depends on numpy<2.0.0 and >=1.19.0
librosa 0.10.0 depends on numpy>=1.20.3
matplotlib 3.8.2 depends on numpy<2 and >=1.21
numba 0.58.1 depends on numpy<1.27 and >=1.22
onnxruntime 1.17.1 depends on numpy>=1.24.2
To fix this you could try to:
手动安装
pip install torch
又会alize NumPy: module compiled against API version 0x10 but this version of numpy is 0xf (Triggered internally at /Users/runner/work/pytorch/pytorch/pytorch/torch/csrc/utils/tensor_numpy.cpp:84.)
device: torch.device = torch.device(torch._C._get_default_device()), # torch.device('cpu'),
RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xf
Traceback (most recent call last):
File "/Users/voidcat/Cat/ODev/shuziren/clone-voice/code_dev.py", line 6, in
from TTS.api import TTS
File "/Users/voidcat/miniconda3/envs/clone_voice/lib/python3.11/site-packages/TTS/api.py", line 9, in
from TTS.cs_api import CS_API
File "/Users/voidcat/miniconda3/envs/clone_voice/lib/python3.11/site-packages/TTS/cs_api.py", line 10, in
from scipy.io import wavfile
File "/Users/voidcat/miniconda3/envs/clone_voice/lib/python3.11/site-packages/scipy/io/init.py", line 97, in
from .matlab import loadmat, savemat, whosmat
File "/Users/voidcat/miniconda3/envs/clone_voice/lib/python3.11/site-packages/scipy/io/matlab/init.py", line 45, in
from ._mio import loadmat, savemat, whosmat
File "/Users/voidcat/miniconda3/envs/clone_voice/lib/python3.11/site-packages/scipy/io/matlab/_mio.py", line 9, in
from ._mio4 import MatFile4Reader, MatFile4Writer
File "/Users/voidcat/miniconda3/envs/clone_voice/lib/python3.11/site-packages/scipy/io/matlab/_mio4.py", line 8, in
import scipy.sparse
File "/Users/voidcat/miniconda3/envs/clone_voice/lib/python3.11/site-packages/scipy/sparse/init.py", line 274, in
from ._csr import *
File "/Users/voidcat/miniconda3/envs/clone_voice/lib/python3.11/site-packages/scipy/sparse/_csr.py", line 11, in
from ._sparsetools import (csr_tocsc, csr_tobsr, csr_count_blocks,
ImportError: numpy.core.multiarray failed to import
The text was updated successfully, but these errors were encountered: