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

Is Triton unable to install in python 3.10 versions? #1057

Open
debdip opened this issue Jan 14, 2023 · 61 comments
Open

Is Triton unable to install in python 3.10 versions? #1057

debdip opened this issue Jan 14, 2023 · 61 comments

Comments

@debdip
Copy link

debdip commented Jan 14, 2023

Hello I'm using python 3.10 version and getting error while run 'pip install triton'

ERROR: Could not find a version that satisfies the requirement triton (from versions: none)
ERROR: No matching distribution found for triton

I also download triton repository and try to install from source but didn't work.

anyone can help?

@nishantsikarwar
Copy link
Contributor

nishantsikarwar commented Jan 16, 2023

@debdip

I have installed Triton successfully with python version 3.10 in Codespaces .
image

can you try again because it seem the problem is not in the setup more like some issue with your particular setup

@debdip
Copy link
Author

debdip commented Jan 16, 2023

Maybe it's with windows or the python version.
image

@nikich340
Copy link

+1 pip just can't find the package, is there a link to whl package?

@iqubik
Copy link

iqubik commented Jan 23, 2023

+1 cant install and also manually cant install. cmake error C:\sd\venv\Scripts\python.exe -m pip install -e c:\sd\triton\python

@bettyballin
Copy link

same here, getting:
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '-j288']' returned non-zero exit status 2.

@aliencaocao
Copy link

windows is not supported you have to build yourself.

@debdip
Copy link
Author

debdip commented Jan 31, 2023

Bulid is also not successful in windows 10 machine.

@digits122
Copy link

same error

@Pirog17000
Copy link

windows is not supported you have to build yourself.

any hint on how it is done? or a link to documentation about 'building' (from git I guess?)

@RichardKatz
Copy link

Not just Windows. I have attempted to install on Mac.

Pip simply can not find Triton. I tried Python 3.8, 3,9, 3.10.

Nada. The company probably could publish clear non-erroneous documentation.

This:
https://github.com/openai/triton/blob/main/docs/getting-started/installation.rst

Claims:
You can install the latest stable release of Triton from pip:

pip install triton
Binary wheels are available for CPython 3.6-3.9 and PyPy 3.6-3.7.

So do they exist?

@ptillet
Copy link
Collaborator

ptillet commented Apr 4, 2023

Note that lack of compatibility for Windows / MacOS is explicitly documented in README.md:

Compatibility
Supported Platforms:

Linux
Supported Hardware:

NVIDIA GPUs (Compute Capability 7.0+)
Under development: AMD GPUs, CPUs

You can see here https://pypi.org/project/triton/2.0.0.post1/#files that on linux 3.10 is there.

Apologies for the outdated installation.rst file. Our docs building job has been broken for a while, and we haven't had the resources to fix it yet.

@RichardKatz
Copy link

The Java world simply did not tolerate this kind of issue to just go on and on the way it has here. Here, they made the claim that they support a particular version of Python - but the reality is - they don't?

They only support it on "some" version on WSL?

@ptillet
Copy link
Collaborator

ptillet commented Apr 7, 2023

I don't understand the issue/drama here. Triton is only supported on Linux, as mentioned in README.md. PyPI page has wheels for Python 3.6 - 3.11 on Linux. We don't have any windows CI machine. We're not Java; we're a small team at OpenAI working on this project, and we have busy jobs working on compiler optimizations and stability improvements for LLMs. All the extra community management work is done in our free time. The project is open-source; if you think the documentation is inaccurate or the cibuildwheelcommand is wrong, you are free to submit a PR.

@RichardKatz
Copy link

Thanks for responding. Good explanation. And - I was able to do the build from source and make it work on Mac. The library loads up. So it's not wrong. It appears to work if we just follow the build instructions.

I appreciate the time you put into this. Thank you!

@ptillet
Copy link
Collaborator

ptillet commented Apr 7, 2023

Nice! Note that we have long-term plan to have Triton also work on Mac with Apple GPUs, but this will take time to materialize. But when the time comes, MacOS will be added as a supported platform.

@zrthxn
Copy link

zrthxn commented Apr 26, 2023

@ptillet Out of curiosity, what would be needed to get Triton to compile on macOS (for both x86_64 and arm64 platforms)? I saw that it was possible to build from source an x86 macOS machine but I've had no luck in getting it to work on arm64. I'm asking because I don't really know where to start looking for why it doesn't work.
Also, I suppose this is a separate question, what would it take to get it to support MPS hardware on M1 Macs?
If this is even a medium scale effort, I'd like to contribute here.

@AntiMoron
Copy link

AntiMoron commented May 1, 2023

image
Same here (Ubuntu 18.04).

@codeisnotcode
Copy link

codeisnotcode commented May 7, 2023

Same problem with 18.04 and I don't get why Linux torch 2.0.0 mandates triton be installed, especially if triton is not available on Windows or Mac, per above discussion.

python38 -m pip install torch
Collecting torch
Using cached https://files.pythonhosted.org/packages/89/5a/0d017d8d45cc309f9de8e5b8edc9b6b204d8c47936a3f2b84cf01650cf98/torch-2.0.0-cp38-cp38-manylinux1_x86_64.whl
Collecting nvidia-cuda-nvrtc-cu11==11.7.99; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Using cached https://files.pythonhosted.org/packages/ef/25/922c5996aada6611b79b53985af7999fc629aee1d5d001b6a22431e18fec/nvidia_cuda_nvrtc_cu11-11.7.99-2-py3-none-manylinux1_x86_64.whl
Collecting networkx (from torch)
Using cached https://files.pythonhosted.org/packages/a8/05/9d4f9b78ead6b2661d6e8ea772e111fc4a9fbd866ad0c81906c11206b55e/networkx-3.1-py3-none-any.whl
Collecting sympy (from torch)
Using cached https://files.pythonhosted.org/packages/2d/49/a2d03101e2d28ad528968144831d506344418ef1cc04839acdbe185889c2/sympy-1.11.1-py3-none-any.whl
Collecting nvidia-cudnn-cu11==8.5.0.96; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Using cached https://files.pythonhosted.org/packages/dc/30/66d4347d6e864334da5bb1c7571305e501dcb11b9155971421bb7bb5315f/nvidia_cudnn_cu11-8.5.0.96-2-py3-none-manylinux1_x86_64.whl
Collecting jinja2 (from torch)
Using cached https://files.pythonhosted.org/packages/bc/c3/f068337a370801f372f2f8f6bad74a5c140f6fda3d9de154052708dd3c65/Jinja2-3.1.2-py3-none-any.whl
Collecting nvidia-cublas-cu11==11.10.3.66; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Using cached https://files.pythonhosted.org/packages/ce/41/fdeb62b5437996e841d83d7d2714ca75b886547ee8017ee2fe6ea409d983/nvidia_cublas_cu11-11.10.3.66-py3-none-manylinux1_x86_64.whl
Collecting nvidia-cusparse-cu11==11.7.4.91; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Using cached https://files.pythonhosted.org/packages/ea/6f/6d032cc1bb7db88a989ddce3f4968419a7edeafda362847f42f614b1f845/nvidia_cusparse_cu11-11.7.4.91-py3-none-manylinux1_x86_64.whl
Collecting nvidia-cuda-cupti-cu11==11.7.101; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Using cached https://files.pythonhosted.org/packages/e6/9d/dd0cdcd800e642e3c82ee3b5987c751afd4f3fb9cc2752517f42c3bc6e49/nvidia_cuda_cupti_cu11-11.7.101-py3-none-manylinux1_x86_64.whl
Collecting nvidia-nccl-cu11==2.14.3; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Using cached https://files.pythonhosted.org/packages/55/92/914cdb650b6a5d1478f83148597a25e90ea37d739bd563c5096b0e8a5f43/nvidia_nccl_cu11-2.14.3-py3-none-manylinux1_x86_64.whl
Collecting filelock (from torch)
Using cached https://files.pythonhosted.org/packages/ad/73/b094a662ae05cdc4ec95bc54e434e307986a5de5960166b8161b7c1373ee/filelock-3.12.0-py3-none-any.whl
Collecting nvidia-cuda-runtime-cu11==11.7.99; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Using cached https://files.pythonhosted.org/packages/36/92/89cf558b514125d2ebd8344dd2f0533404b416486ff681d5434a5832a019/nvidia_cuda_runtime_cu11-11.7.99-py3-none-manylinux1_x86_64.whl
Collecting nvidia-cufft-cu11==10.9.0.58; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Using cached https://files.pythonhosted.org/packages/74/79/b912a77e38e41f15a0581a59f5c3548d1ddfdda3225936fb67c342719e7a/nvidia_cufft_cu11-10.9.0.58-py3-none-manylinux1_x86_64.whl
Collecting nvidia-cusolver-cu11==11.4.0.1; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Using cached https://files.pythonhosted.org/packages/3e/77/66149e3153b19312fb782ea367f3f950123b93916a45538b573fe373570a/nvidia_cusolver_cu11-11.4.0.1-2-py3-none-manylinux1_x86_64.whl
Collecting triton==2.0.0; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Could not find a version that satisfies the requirement triton==2.0.0; platform_system == "Linux" and platform_machine == "x86_64" (from torch) (from versions: )
No matching distribution found for triton==2.0.0; platform_system == "Linux" and platform_machine == "x86_64" (from torch)

Temporary workaround - use torch 1.9
python38 -m pip install torch==1.9

@myungjunChae
Copy link

myungjunChae commented Jul 6, 2023

Try this.

pip install [https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl](https://oo.pe/https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl)

@jameswan
Copy link

ERROR: triton-2.0.0-cp310-cp310-win_amd64.whl is not a supported wheel on this platform.

@kwonmha
Copy link

kwonmha commented Jul 18, 2023

I managed to install triton successfully.
Try upgrading pip and then run pip install triton.

@djanchew
Copy link

I managed to install triton successfully. Try upgrading pip and then run pip install triton.

Thanks!
Ubuntu 18.04
Python3.8
Trying to install stable-diffusion-webui, works after upgrade pip by python3 -m pip install --upgrade pip

@crackingtutsyt
Copy link

Try this.

pip install [https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl](https://oo.pe/https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl)

Running pip install https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl

Installed Triton on my Windows PC and I am able to use the module in python now, working perfectly. Thanks very much!

@LEXAdesigns
Copy link

Try this.

pip install [https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl](https://oo.pe/https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl)

pip install https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl

works!!!
Thank you!

@thanayut1750
Copy link

HELP!!!
image

@AndyX-Net
Copy link

AndyX-Net commented Aug 5, 2023

Same same... T_T

Windows 11 with Python 3.11.4 is currently not supported. I tried to build it myself but encountered more errors:

      running build_py
      running build_ext
      C:\Users\AndyX\AppData\Local\Temp\pip-build-env-b47ukrj_\overlay\Lib\site-packages\setuptools\command\editable_wheel.py:292: SetuptoolsDeprecationWarning: Customization incompatible with editable install
      !!

              ********************************************************************************
                              Traceback (most recent call last):
                File "C:\Users\AndyX\AppData\Local\Temp\pip-build-env-b47ukrj_\overlay\Lib\site-packages\setuptools\command\editable_wheel.py", line 298, in _safely_run
                  return self.run_command(cmd_name)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "C:\Users\AndyX\AppData\Local\Temp\pip-build-env-b47ukrj_\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
                  self.distribution.run_command(command)
                File "C:\Users\AndyX\AppData\Local\Temp\pip-build-env-b47ukrj_\overlay\Lib\site-packages\setuptools\dist.py", line 1234, in run_command
                  super().run_command(command)
                File "C:\Users\AndyX\AppData\Local\Temp\pip-build-env-b47ukrj_\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
                  cmd_obj.run()
                File "<string>", line 157, in run
                File "C:\Users\AndyX\AppData\Local\Temp\pip-build-env-b47ukrj_\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
                  self.distribution.run_command(command)
                File "C:\Users\AndyX\AppData\Local\Temp\pip-build-env-b47ukrj_\overlay\Lib\site-packages\setuptools\dist.py", line 1234, in run_command
                  super().run_command(command)
                File "C:\Users\AndyX\AppData\Local\Temp\pip-build-env-b47ukrj_\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
                  cmd_obj.run()
                File "<string>", line 193, in run
                File "<string>", line 211, in build_extension
                File "<string>", line 109, in get_thirdparty_packages
                File "D:\Program Files\Python3\Lib\urllib\request.py", line 216, in urlopen
                  return opener.open(url, data, timeout)

..........................

                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "D:\Program Files\Python3\Lib\urllib\request.py", line 503, in open
          req = Request(fullurl, data)
                ^^^^^^^^^^^^^^^^^^^^^^
        File "D:\Program Files\Python3\Lib\urllib\request.py", line 322, in __init__
          self.full_url = url
          ^^^^^^^^^^^^^
        File "D:\Program Files\Python3\Lib\urllib\request.py", line 348, in full_url
          self._parse()
        File "D:\Program Files\Python3\Lib\urllib\request.py", line 377, in _parse
          raise ValueError("unknown url type: %r" % self.full_url)
      ValueError: unknown url type: ''
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building editable for triton
Failed to build triton
ERROR: Could not build wheels for triton, which is required to install pyproject.toml-based projects

Refer link:
https://github.com/openai/triton#install-from-source

@jameswan
Copy link

Same I got the same error
(blip_env) C:\Users\james>pip install https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl
ERROR: triton-2.0.0-cp310-cp310-win_amd64.whl is not a supported wheel on this platform.

(blip_env) C:\Users\james>python -V
Python 3.11.4

So I guess no triton for those using Python 3.11

@Piscabo
Copy link

Piscabo commented Jan 11, 2024

Found one that works...
https://github.com/Dao-AILab/flash-attention/releases

That's for Linux though?

Sorry, wrong link.
https://pypi.org/project/triton-library/#files

@stratus-ss
Copy link

I just wanted to say that I am having a similar issue on Alpine Linux

Looking in indexes: https://download.pytorch.org/whl/cu121
Collecting torch==2.1.0
  Downloading https://download.pytorch.org/whl/cu121/torch-2.1.0%2Bcu121-cp311-cp311-linux_x86_64.whl (2200.6 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.2/2.2 GB 5.3 MB/s eta 0:00:00
Collecting torchvision==0.16.0
  Downloading https://download.pytorch.org/whl/cu121/torchvision-0.16.0%2Bcu121-cp311-cp311-linux_x86_64.whl (7.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.0/7.0 MB 35.2 MB/s eta 0:00:00
Collecting torchaudio==2.1.0
  Downloading https://download.pytorch.org/whl/cu121/torchaudio-2.1.0%2Bcu121-cp311-cp311-linux_x86_64.whl (3.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.3/3.3 MB 46.3 MB/s eta 0:00:00
Collecting filelock (from torch==2.1.0)
  Downloading https://download.pytorch.org/whl/filelock-3.9.0-py3-none-any.whl (9.7 kB)
Collecting typing-extensions (from torch==2.1.0)
  Downloading https://download.pytorch.org/whl/typing_extensions-4.4.0-py3-none-any.whl (26 kB)
Collecting sympy (from torch==2.1.0)
  Downloading https://download.pytorch.org/whl/sympy-1.12-py3-none-any.whl (5.7 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.7/5.7 MB 81.9 MB/s eta 0:00:00
Collecting networkx (from torch==2.1.0)
  Downloading https://download.pytorch.org/whl/networkx-3.0-py3-none-any.whl (2.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.0/2.0 MB 65.4 MB/s eta 0:00:00
Collecting jinja2 (from torch==2.1.0)
  Downloading https://download.pytorch.org/whl/Jinja2-3.1.2-py3-none-any.whl (133 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.1/133.1 kB 35.3 MB/s eta 0:00:00
Collecting fsspec (from torch==2.1.0)
  Downloading https://download.pytorch.org/whl/fsspec-2023.4.0-py3-none-any.whl (153 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 154.0/154.0 kB 40.0 MB/s eta 0:00:00
INFO: pip is looking at multiple versions of torch to determine which version is compatible with other requirements. This could take a while.
ERROR: Could not find a version that satisfies the requirement triton==2.1.0 (from torch) (from versions: none)
ERROR: No matching distribution found for triton==2.1.0

It is failing trying to do this:

RUN pip install --upgrade pip && \
    pip install torch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0 --upgrade --force-reinstall --index-url https://download.pytorch.org/whl/cu121

If i change my FROM to ubuntu, the issue is not present

@jameswan
Copy link

Try this.

pip install [https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl](https://oo.pe/https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl)

pip install https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl

works!!! Thank you!

(base) C:\Windows\system32>pip install https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl
Collecting triton==2.0.0
Downloading https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl (12.6 MB)
---------------------------------------- 12.6/12.6 MB 3.5 MB/s eta 0:00:00
Requirement already satisfied: torch in c:\programdata\anaconda3\lib\site-packages (from triton==2.0.0) (1.12.1)
Collecting cmake
Downloading cmake-3.28.1-py2.py3-none-win_amd64.whl (35.8 MB)
---------------------------------------- 35.8/35.8 MB 3.7 MB/s eta 0:00:00
Requirement already satisfied: filelock in c:\programdata\anaconda3\lib\site-packages (from triton==2.0.0) (3.9.0)
Requirement already satisfied: typing_extensions in c:\programdata\anaconda3\lib\site-packages (from torch->triton==2.0.0) (4.4.0)
Installing collected packages: cmake, triton
Successfully installed cmake-3.28.1 triton-2.0.0

(base) C:\Windows\system32>python -V
Python 3.10.9

@HyperUpscale
Copy link

HyperUpscale commented Jan 24, 2024

On Windows 10 19045
python 3.10.6

Successfully installed cmake-3.28.1 and triton-2.0.0

BUT didn't work for me:

A matching Triton is not available, some optimizations will not be enabled.
Error caught was: DLL load failed while importing libtriton: The specified module could not be found.

on windows 11 python 3.10.13 this WORKED pip install https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl

regular pip install triton did NOT

@Enferlain
Copy link

https://github.com/wkpark/triton/actions/runs/7518654030

@Jacky56
Copy link

Jacky56 commented Feb 1, 2024

https://github.com/wkpark/triton/actions/runs/7518654030

this works, download the artifact and pip install <triton>.whl

@craftogrammer
Copy link

@albertyu647
Copy link

ERROR: triton-2.0.0-cp310-cp310-win_amd64.whl is not a supported wheel on this platform.

cp310 means you need python 3.10

@Rainafter
Copy link

Rainafter commented Mar 8, 2024

On Mac M3, python 3.10.0
because it's not going to install successfully via pip3 install -r requirements/pt2.txt
I tried get it from https://github.com/openai/triton
then in

cd triton
python3 -m venv .pt2
source .pt2/bin/activate
pip install ninja cmake wheel; # build-time dependencies
# Successfully installed cmake-3.28.3 ninja-1.11.1.1 wheel-0.42.0
pip install -e python

step pip install ninja cmake wheel; # build-time dependencies success
The last step throws me error

xxxx/generative-models/triton/.pt2/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/Users/xxx/Sites/generative-models/triton/python/setup.py'"'"'; __file__='"'"'/Users/xxx/Sites/generative-models/triton/python/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output.

@shaobeichen
Copy link

On Mac M1, python 3.10.0

I haven't succeeded yet

@ifredom
Copy link

ifredom commented Mar 14, 2024

I haven't compiled it manually before.
The version I need is 2.10. Thanks to others for their 2.0.0 compilation.
So I tried to do a Google search and compile it manually, but it didn't work.

Oh, my God, what am I supposed to do with it? Is there an executable compilation method that I can compile manually.
Window10
python 3.10.11
image

@ifredom
Copy link

ifredom commented Mar 14, 2024

I haven't compiled it manually before. The version I need is 2.10. Thanks to others for their 2.0.0 compilation. So I tried to do a Google search and compile it manually, but it didn't work.

Oh, my God, what am I supposed to do with it? Is there an executable compilation method that I can compile manually. Window10 python 3.10.11 image

Thank you so much. I always tried to compile without success. I was very lucky to find the 2.10 version I needed.

https://huggingface.co/Rodeszones/CogVLM-grounding-generalist-hf-quant4/blob/main/README.md?code=true#L27

@MohammedEsamaldin
Copy link

did some one solved the isssu for windows 11 python 3.11 ??

@SuperMasterBlasterLaser

Can someone provide 2.1 version build for windows?

@VincentYeh-dev
Copy link

VincentYeh-dev commented Mar 29, 2024

OS:Ubuntu 18.04

I installed triton on Python 3.8 via below command,and I got the same error.

python3.8 -m pip install triton==2.2.0

Thus, I updated my pip version to 24.0 via below command:

python3.8 -m pip install --upgrade pip

And installed triton 2.2.0

python3.8 -m pip install triton==2.2.0

And it works.

@marsrobertson
Copy link

Following instructions from here: https://github.com/Stability-AI/generative-models?tab=readme-ov-file#2-setting-up-the-virtualenv

pip3 install -r requirements/pt2.txt

ERROR: Ignored the following versions that require a different python version: 0.55.2 Requires-Python <3.5; 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; 2.0.28 Requires-Python >3.7, <3.11; 2.0.29 Requires-Python >3.7, <3.11; 2.0.30 Requires-Python >3.7, <3.11; 2.0.31 Requires-Python >3.7, <3.11; 2.0.32 Requires-Python >3.7, <3.11; 2.0.33 Requires-Python >3.7, <3.11; 2.0.34 Requires-Python >3.7, <3.11; 2.0.35 Requires-Python >3.7, <3.11; 2.0.36 Requires-Python >3.7, <3.11; 2.0.37 Requires-Python >3.7, <3.11; 2.0.38 Requires-Python >3.7, <3.11; 2.0.39 Requires-Python >3.7, <3.11; 2.0.40 Requires-Python >3.7, <3.11
ERROR: Could not find a version that satisfies the requirement triton==2.0.0 (from versions: none)
ERROR: No matching distribution found for triton==2.0.0

Google for error message: https://stackoverflow.com/questions/77152235/python-build-error-with-stable-diffusion-repository-error-could-not-find-a-ve

This works on windows. Below versions on which it worked for me :
Python : 3.10.9
Windows : 10 pro
pip install https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl

But not on my macOS Monterey 12.6, python --version 3.11.2

ERROR: triton-2.0.0-cp310-cp310-win_amd64.whl is not a supported wheel on this platform.

Any solutions?

I just need a basic UI to generate some offline images during a lengthy ✈️... Here is some advice: https://www.reddit.com/r/StableDiffusion/comments/15m08tp/whats_the_best_ui_for_stable_diffusion_right_now/

(but all of the tools require messing with install scripts and I always sucked at resolving dependencies, not my favourite cup of tea)

@niizam
Copy link

niizam commented May 13, 2024

Could someone build 2.2.0 for windows?

@de-served
Copy link

Windows 10
Python 3.11.9
Torch 2.1.0

pip install https://huggingface.co/madbuda/triton-windows-builds/resolve/main/triton-2.1.0-cp311-cp311-win_amd64.whl

@WorkSync
Copy link

Windows 10 视窗 10 Python 3.11.9 蟒蛇 3.11.9 Torch 2.1.0 火炬 2.1.0

pip install https://huggingface.co/madbuda/triton-windows-builds/resolve/main/triton-2.1.0-cp311-cp311-win_amd64.whl

Hey,dear,this works.You did a very good job! Thanks!

ZzEeKkAa pushed a commit to ZzEeKkAa/triton that referenced this issue Aug 5, 2024
Older versions of `gh` do not support `gh run list -s`, find a
successful run with `jq` instead.
@mpickott
Copy link

Download from file from huggingface:
https://huggingface.co/datasets/DirtyBirds-Playhouse/StableDiffusion/blob/main/triton-2.1.0-cp310-cp310-win_amd64.whl

right click the downloaded file and select: copy as path

pip install

@adam-roth
Copy link

I don't understand the issue/drama here. Triton is only supported on Linux, as mentioned in README.md. PyPI page has wheels for Python 3.6 - 3.11 on Linux. We don't have any windows CI machine. We're not Java; we're a small team at OpenAI

Points taken, but at the same time you've published a python package. Python runs on Linux, Mac, and Windows. Python users on Mac and Windows aren't wrong for expecting your package to work with their python install just the same as it does for someone else's install on Linux. It's kinda detrimental to the package ecosystem as a whole if it starts accumulating things that work only on one OS but not others, imo.

Which maybe suggests that if there's not the time/resources to publish packages that work with Mac/Windows it may be better to just not publish any at all. Let everyone experience the fun of building/installing from sources. 🙂

Really though, would love to see published packages that work on all platforms that python does.

(Also tried some of the huggingface links above, not working for me; python 3.10, windows+cygwin frankenmonster)

@filispeen
Copy link

Try: pip install https://github.com/bycloud-AI/DiffBIR-Windows/raw/refs/heads/main/triton-2.0.0-cp310-cp310-win_amd64.whl

@ootsuka-repos
Copy link

pip install https://github.com/bycloud-AI/DiffBIR-Windows/raw/refs/heads/main/triton-2.0.0-cp310-cp310-win_amd64.whl

It worked with 3.10.0, thanks.

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