triton-lang / triton

Development repository for the Triton language and compiler
https://triton-lang.org/
MIT License
13.35k stars 1.64k forks source link

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

Open debdip opened 1 year ago

debdip commented 1 year ago

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?

MohammedEsamaldin commented 7 months ago

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

SuperMasterBlasterLaser commented 7 months ago

Can someone provide 2.1 version build for windows?

VincentYeh-dev commented 7 months ago

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 commented 7 months ago

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 commented 6 months ago

Could someone build 2.2.0 for windows?

de-served commented 4 months ago

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 commented 3 months ago

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!

mpickott commented 2 months ago

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 commented 1 month ago

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 commented 1 month ago

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