(pytorchenv) PS C:\Users\DC PC\Desktop\YtsocialcontentVidGen.py> pip install…
- User
(pytorch_env) PS C:\Users\DC PC\Desktop\Ytsocialcontent_VidGen.py> pip install tokenizers==0.18.0 transformers==4.37.2 faster-whisper==1.0.2
ERROR: Ignored the following yanked versions: 0.12.0 ERROR: Could not find a version that satisfies the requirement tokenizers==0.18.0 (from versions: 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.6, 0.0.7, 0.0.8, 0.0.9, 0.0.10, 0.0.11, 0.0.12, 0.0.13, 0.1.0, 0.1.1, 0.2.0, 0.2.1, 0.3.0, 0.4.0, 0.4.1, 0.4.2, 0.5.0, 0.5.1, 0.5.2, 0.6.0, 0.7.0rc1, 0.7.0rc2, 0.7.0rc3, 0.7.0rc4, 0.7.0rc5, 0.7.0rc6, 0.7.0rc7, 0.7.0, 0.8.0.dev0, 0.8.0.dev1, 0.8.0.dev2, 0.8.0rc1, 0.8.0rc2, 0.8.0rc3, 0.8.0rc4, 0.8.0, 0.8.1rc1, 0.8.1rc2, 0.8.1, 0.9.0.dev0, 0.9.0.dev1, 0.9.0.dev2, 0.9.0.dev3, 0.9.0.dev4, 0.9.0rc1, 0.9.0rc2, 0.9.0, 0.9.1, 0.9.2, 0.9.3, 0.9.4, 0.10.0rc1, 0.10.0, 0.10.1rc1, 0.10.1, 0.10.2, 0.10.3, 0.11.0, 0.11.1, 0.11.2, 0.11.3, 0.11.4, 0.11.5, 0.11.6, 0.12.1, 0.13.0, 0.13.1, 0.13.2, 0.13.3rc1, 0.13.3, 0.13.4rc1, 0.13.4rc2, 0.13.4rc3, 0.14.0rc1, 0.14.0, 0.14.1, 0.15.0, 0.15.1, 0.15.2rc1, 0.15.2, 0.19.0, 0.19.1, 0.20.0rc1, 0.20.0)
ERROR: No matching distribution found for tokenizers==0.18.0 - Assistant
The error message indicates that the specific version
0.18.0of thetokenizerspackage is not available. The available versions as per the PyPI repository do not include0.18.0.It seems like you want a specific version of a library that doesn't exist in the available distribution. You can resolve this in a few ways:
-
Check for Typo or Error in Version Number: Double-check to see if the version number you want is correct. If you meant a different version, adjust accordingly.
-
Use the Latest Compatible Version: From the list of versions available, you might consider using the latest available version such as
0.15.2,0.19.0,0.19.1, or0.20.0. For example:pip install tokenizers==0.20.0 -
Ensure that the versions of the , , and libraries you want to install are compatible with each other. Sometimes, certain versions of packages may depend on specific versions of others.
-
- User
INFO: pip is looking at multiple versions of transformers to determine which version is compatible with other requirements. This could take a while. ERROR: Cannot install -r requirements.txt (line 14), -r requirements.txt (line 72) and tokenizers==0.20.0 because these package versions have conflicting dependencies.
The conflict is caused by: The user requested tokenizers==0.20.0 faster-whisper 1.0.2 depends on tokenizers<1 and >=0.13 transformers 4.37.2 depends on tokenizers<0.19 and >=0.14
To fix this you could try to:
- loosen the range of package versions you've specified
- remove package versions to allow pip to attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
- Assistant
The error message indicates a conflict between the version constraints of
tokenizersrequired bytransformersandfaster-whisper. Here's what you can do to resolve this conflict:-
Identify Compatible Versions:
transformers 4.37.2requirestokenizersbetween0.14and<0.19.faster-whisper 1.0.2requirestokenizersbetween0.13and<1.
The overlapping versions here are
0.14.0to , so you could choose any version of in this range that works for your needs.
-
- User
ERROR: Ignored the following yanked versions: 0.12.0 ERROR: Ignored the following versions that require a different python version: 0.36.0 Requires-Python >=3.6,<3.10; 0.37.0 Requires-Python >=3.7,<3.10; 0.38.0 Requires-Python >=3.7,<3.11; 0.38.1 Requires-Python >=3.7,<3.11; 0.52.0 Requires-Python >=3.6,<3.9; 0.52.0rc3 Requires-Python >=3.6,<3.9; 0.53.0 Requires-Python >=3.6,<3.10; 0.53.0rc1.post1 Requires-Python >=3.6,<3.10; 0.53.0rc2 Requires-Python >=3.6,<3.10; 0.53.0rc3 Requires-Python >=3.6,<3.10; 0.53.1 Requires-Python >=3.6,<3.10; 0.54.0 Requires-Python >=3.7,<3.10; 0.54.0rc2 Requires-Python >=3.7,<3.10; 0.54.0rc3 Requires-Python >=3.7,<3.10; 0.54.1 Requires-Python >=3.7,<3.10; 0.55.0 Requires-Python >=3.7,<3.11; 0.55.0rc1 Requires-Python >=3.7,<3.11; 0.55.1 Requires-Python >=3.7,<3.11; 0.55.2 Requires-Python >=3.7,<3.11; 1.10.0 Requires-Python <3.12,>=3.8; 1.10.0rc1 Requires-Python <3.12,>=3.8; 1.10.0rc2 Requires-Python <3.12,>=3.8; 1.10.1 Requires-Python <3.12,>=3.8; 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11; 1.6.2 Requires-Python >=3.7,<3.10; 1.6.3 Requires-Python >=3.7,<3.10; 1.7.0 Requires-Python >=3.7,<3.10; 1.7.1 Requires-Python >=3.7,<3.10; 1.7.2 Requires-Python >=3.7,<3.11; 1.7.3 Requires-Python >=3.7,<3.11; 1.8.0 Requires-Python >=3.8,<3.11; 1.8.0rc1 Requires-Python >=3.8,<3.11; 1.8.0rc2 Requires-Python >=3.8,<3.11; 1.8.0rc3 Requires-Python >=3.8,<3.11; 1.8.0rc4 Requires-Python >=3.8,<3.11; 1.8.1 Requires-Python >=3.8,<3.11; 1.9.0 Requires-Python >=3.8,<3.12; 1.9.0rc1 Requires-Python >=3.8,<3.12; 1.9.0rc2 Requires-Python >=3.8,<3.12; 1.9.0rc3 Requires-Python >=3.8,<3.12; 1.9.1 Requires-Python >=3.8,<3.12 ERROR: Could not find a version that satisfies the requirement tokenizers==0.18.0 (from versions: 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.6, 0.0.7, 0.0.8, 0.0.9, 0.0.10, 0.0.11, 0.0.12, 0.0.13, 0.1.0, 0.1.1, 0.2.0, 0.2.1, 0.3.0, 0.4.0, 0.4.1, 0.4.2, 0.5.0, 0.5.1, 0.5.2, 0.6.0, 0.7.0rc1, 0.7.0rc2, 0.7.0rc3, 0.7.0rc4, 0.7.0rc5, 0.7.0rc6, 0.7.0rc7, 0.7.0, 0.8.0.dev0, 0.8.0.dev1, 0.8.0.dev2, 0.8.0rc1, 0.8.0rc2, 0.8.0rc3, 0.8.0rc4, 0.8.0, 0.8.1rc1, 0.8.1rc2, 0.8.1, 0.9.0.dev0, 0.9.0.dev1, 0.9.0.dev2, 0.9.0.dev3, 0.9.0.dev4, 0.9.0rc1, 0.9.0rc2, 0.9.0, 0.9.1, 0.9.2, 0.9.3, 0.9.4, 0.10.0rc1, 0.10.0, 0.10.1rc1, 0.10.1, 0.10.2, 0.10.3, 0.11.0, 0.11.1, 0.11.2, 0.11.3, 0.11.4, 0.11.5, 0.11.6, 0.12.1, 0.13.0, 0.13.1, 0.13.2, 0.13.3rc1, 0.13.3, 0.13.4rc1, 0.13.4rc2, 0.13.4rc3, 0.14.0rc1, 0.14.0, 0.14.1, 0.15.0, 0.15.1, 0.15.2rc1, 0.15.2, 0.19.0, 0.19.1, 0.20.0rc1, 0.20.0) ERROR: No matching distribution found for tokenizers==0.18.0
- Assistant
The error message you're encountering indicates that
tokenizers==0.18.0is not available as a package version on PyPI. Additionally, there are other issues related to version constraints, particularly in relation to Python versions supported by various package releases. - User
(pytorch_env) PS C:\Users\DC PC\Desktop\Ytsocialcontent_VidGen.py> python main.py Traceback (most recent call last): File "C:\Users\DC PC\Desktop\Ytsocialcontent_VidGen.py\main.py", line 5, in from dalle import dalle_f File "C:\Users\DC PC\Desktop\Ytsocialcontent_VidGen.py\dalle.py", line 3, in from diffusers import StableDiffusionPipeline ModuleNotFoundError: No module named 'diffusers'
- Assistant
The error message indicates that your Python script is attempting to import the
StableDiffusionPipelinefrom thediffuserslibrary, but the module is not installed in your environment. Here’s how you can resolve this issue:-
Install the
diffusersLibrary: You need to install thediffuserslibrary in your current Python environment. You can do this using pip:pip install diffusers -
Verify the Environment: Make sure you are installing the library in the same environment where you are running your script. It seems like you're using a virtual environment named
pytorch_env, so you should ensure this environment is activated when you install the package.
-
- User
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. torchaudio 2.4.0+cu124 requires torch==2.4.0+cu124, but you have torch 2.2.0 which is incompatible. torchvision 0.19.0+cu124 requires torch==2.4.0+cu124, but you have torch 2.2.0 which is incompatible.
- Assistant
The error message indicates a dependency conflict between the installed version of
torchand the versions required bytorchaudioandtorchvision. Specifically,torchaudio 2.4.0+cu124and are expecting , but you have . - User
- Assistant
The error message indicates there's an issue importing
CLIPImageProcessorfrom thetransformerslibrary, which is causing thediffusersimport to fail. This often arises from version incompatibilities between thetransformersand libraries. Here's how you can resolve this: - User
says the package is already satified
- Assistant
- User
If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain. [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for tokenizers Failed to build tokenizers ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (tokenizers)
- Assistant
The error message you're encountering indicates a failure to compile the
tokenizerslibrary from source because it requires a Rust compiler. This is a common issue when there are no pre-built wheels available for your platform or Python version, requiring a source build instead.Here's how you can resolve this issue:
Steps to Resolve Rust Dependency Issue