Skip to content
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

cant install couldnt find scipy.tar.gz #792

Open
YousefMohamed101 opened this issue Jun 14, 2024 · 7 comments
Open

cant install couldnt find scipy.tar.gz #792

YousefMohamed101 opened this issue Jun 14, 2024 · 7 comments

Comments

@YousefMohamed101
Copy link

Hey guys i try to install i followed the steps but i get this error.

error: Couldn't find a setup script in C:\Users\PC\AppData\Local\Temp\easy_install-idorpf4c\scipy-1.14.0rc1.tar.gz

@robinstn
Copy link

I have the same issue
Downloading https://files.pythonhosted.org/packages/a1/ee/e1023e41c2c9f9ac7b9d2bafd445b6036d2a2226000028c8c3202eee5234/scipy-1.14.0rc1.tar.gz#sha256=1e04538267216e6e4e738514c0f2ce01a811e97aa9bc1982d35be91aa055f384
Best match: scipy 1.14.0rc1
Processing scipy-1.14.0rc1.tar.gz
error: Couldn't find a setup script in C:\Users\MyPC\AppData\Local\Temp\easy_install-jf58hedo\scipy-1.14.0rc1.tar.gz

@jason-c-kwan
Copy link

I think I figured out how to fix this. What you do is to edit setup.py. Look for this block:

    install_requires=[
        'tqdm',
        'rotary_embedding_torch',
        'inflect',
        'progressbar',
        'einops',
        'unidecode',
        'scipy',
        'librosa',
        'transformers==4.31.0',
        'tokenizers',
        # 'deepspeed==0.8.3',
    ],

and change it so that now we specify the latest non-release candidate of scipy:

    install_requires=[
        'tqdm',
        'rotary_embedding_torch',
        'inflect',
        'progressbar',
        'einops',
        'unidecode',
        'scipy==1.13.1',
        'librosa',
        'transformers==4.31.0',
        'tokenizers',
        # 'deepspeed==0.8.3',
    ],

Although, I did test this on linux, and it seems like you guys are using Windows. I was getting the same error, though.

@vootox
Copy link

vootox commented Jun 19, 2024

I think I figured out how to fix this. What you do is to edit setup.py. Look for this block:

    install_requires=[
        'tqdm',
        'rotary_embedding_torch',
        'inflect',
        'progressbar',
        'einops',
        'unidecode',
        'scipy',
        'librosa',
        'transformers==4.31.0',
        'tokenizers',
        # 'deepspeed==0.8.3',
    ],

and change it so that now we specify the latest non-release candidate of scipy:

    install_requires=[
        'tqdm',
        'rotary_embedding_torch',
        'inflect',
        'progressbar',
        'einops',
        'unidecode',
        'scipy==1.13.1',
        'librosa',
        'transformers==4.31.0',
        'tokenizers',
        # 'deepspeed==0.8.3',
    ],

Although, I did test this on linux, and it seems like you guys are using Windows. I was getting the same error, though.

I'm on Windows and this worked for me too, thanks for posting.

@YousefMohamed101
Copy link
Author

I think I figured out how to fix this. What you do is to edit setup.py. Look for this block:

    install_requires=[
        'tqdm',
        'rotary_embedding_torch',
        'inflect',
        'progressbar',
        'einops',
        'unidecode',
        'scipy',
        'librosa',
        'transformers==4.31.0',
        'tokenizers',
        # 'deepspeed==0.8.3',
    ],

and change it so that now we specify the latest non-release candidate of scipy:

    install_requires=[
        'tqdm',
        'rotary_embedding_torch',
        'inflect',
        'progressbar',
        'einops',
        'unidecode',
        'scipy==1.13.1',
        'librosa',
        'transformers==4.31.0',
        'tokenizers',
        # 'deepspeed==0.8.3',
    ],

Although, I did test this on linux, and it seems like you guys are using Windows. I was getting the same error, though.

this worked for me thank you very much

@Xeraster
Copy link

Xeraster commented Jul 2, 2024

This solved the spicy error for me but now I have a new error:

Processing dependencies for tortoise-tts==3.0.0
error: tokenizers 0.15.1 is installed but tokenizers!=0.11.3,<0.14,>=0.11.1 is required by {'transformers'}

I changed "tokenizers" to "tokenizers==0.11.1". The installation finally finishes but the program doesn't actually work. For example if I try "python tortoise/socket_server.py ", I get the following output:

Traceback (most recent call last):
  File "/media/hdd/documents_hdd/tortise-tts/tortoise-tts/tortoise/socket_server.py", line 1, in <module>
    import spacy
ModuleNotFoundError: No module named 'spacy'

so then I tried adding:
'spacy',
to my setup.py file. Now I get this:

File "/media/hdd/documents_hdd/tortise-tts/tortoise-tts/tortoise/socket_server.py", line 4, in <module>
    from tortoise.api_fast import TextToSpeech
  File "/home/scott/miniconda3/envs/tortoise/lib/python3.9/site-packages/tortoise_tts-3.0.0-py3.9.egg/tortoise/api_fast.py", line 14, in <module>
    from tortoise.models.autoregressive import UnifiedVoice
  File "/home/scott/miniconda3/envs/tortoise/lib/python3.9/site-packages/tortoise_tts-3.0.0-py3.9.egg/tortoise/models/autoregressive.py", line 6, in <module>
    from transformers import GPT2Config, GPT2PreTrainedModel, LogitsProcessorList
  File "/home/scott/miniconda3/envs/tortoise/lib/python3.9/site-packages/transformers/__init__.py", line 26, in <module>
    from . import dependency_versions_check
  File "/home/scott/miniconda3/envs/tortoise/lib/python3.9/site-packages/transformers/dependency_versions_check.py", line 41, in <module>
    require_version_core(deps[pkg])
  File "/home/scott/miniconda3/envs/tortoise/lib/python3.9/site-packages/transformers/utils/versions.py", line 123, in require_version_core
    return require_version(requirement, hint)
  File "/home/scott/miniconda3/envs/tortoise/lib/python3.9/site-packages/transformers/utils/versions.py", line 117, in require_version
    _compare_versions(op, got_ver, want_ver, requirement, pkg, hint)
  File "/home/scott/miniconda3/envs/tortoise/lib/python3.9/site-packages/transformers/utils/versions.py", line 50, in _compare_versions
    raise ImportError(
ImportError: tokenizers>=0.11.1,!=0.11.3,<0.14 is required for a normal functioning of this module, but found tokenizers==0.15.1.
Try: pip install transformers -U or pip install -e '.[dev]' if you're working with git main

Does anybody know how to fix this? How do I manually uninstall tokenizers 15? Where are those files stored? Can I manually installed these dependencies in conda? "pip install [package]" doesn't work.

@mardoyyy
Copy link

mardoyyy commented Jul 3, 2024

This solved the spicy error for me but now I have a new error:

Processing dependencies for tortoise-tts==3.0.0
error: tokenizers 0.15.1 is installed but tokenizers!=0.11.3,<0.14,>=0.11.1 is required by {'transformers'}

I changed "tokenizers" to "tokenizers==0.11.1". The installation finally finishes but the program doesn't actually work. For example if I try "python tortoise/socket_server.py ", I get the following output:

Traceback (most recent call last):
  File "/media/hdd/documents_hdd/tortise-tts/tortoise-tts/tortoise/socket_server.py", line 1, in <module>
    import spacy
ModuleNotFoundError: No module named 'spacy'

so then I tried adding: 'spacy', to my setup.py file. Now I get this:

File "/media/hdd/documents_hdd/tortise-tts/tortoise-tts/tortoise/socket_server.py", line 4, in <module>
    from tortoise.api_fast import TextToSpeech
  File "/home/scott/miniconda3/envs/tortoise/lib/python3.9/site-packages/tortoise_tts-3.0.0-py3.9.egg/tortoise/api_fast.py", line 14, in <module>
    from tortoise.models.autoregressive import UnifiedVoice
  File "/home/scott/miniconda3/envs/tortoise/lib/python3.9/site-packages/tortoise_tts-3.0.0-py3.9.egg/tortoise/models/autoregressive.py", line 6, in <module>
    from transformers import GPT2Config, GPT2PreTrainedModel, LogitsProcessorList
  File "/home/scott/miniconda3/envs/tortoise/lib/python3.9/site-packages/transformers/__init__.py", line 26, in <module>
    from . import dependency_versions_check
  File "/home/scott/miniconda3/envs/tortoise/lib/python3.9/site-packages/transformers/dependency_versions_check.py", line 41, in <module>
    require_version_core(deps[pkg])
  File "/home/scott/miniconda3/envs/tortoise/lib/python3.9/site-packages/transformers/utils/versions.py", line 123, in require_version_core
    return require_version(requirement, hint)
  File "/home/scott/miniconda3/envs/tortoise/lib/python3.9/site-packages/transformers/utils/versions.py", line 117, in require_version
    _compare_versions(op, got_ver, want_ver, requirement, pkg, hint)
  File "/home/scott/miniconda3/envs/tortoise/lib/python3.9/site-packages/transformers/utils/versions.py", line 50, in _compare_versions
    raise ImportError(
ImportError: tokenizers>=0.11.1,!=0.11.3,<0.14 is required for a normal functioning of this module, but found tokenizers==0.15.1.
Try: pip install transformers -U or pip install -e '.[dev]' if you're working with git main

Does anybody know how to fix this? How do I manually uninstall tokenizers 15? Where are those files stored? Can I manually installed these dependencies in conda? "pip install [package]" doesn't work.

just run this man

pip install tokenizers==0.11.1

hope you'll good

@rose07
Copy link

rose07 commented Jul 24, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants