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

I am trying to install mlc-ai on aws amazon-linux machine #803

Closed
vk-maurya opened this issue Aug 24, 2023 · 17 comments
Closed

I am trying to install mlc-ai on aws amazon-linux machine #803

vk-maurya opened this issue Aug 24, 2023 · 17 comments
Labels
question Question about the usage

Comments

@vk-maurya
Copy link

No matching distribution found

I am trying to install mlc-ai dependency using the below command on my aws amazon-Linux machine. but it is saying No matching distribution found for mlc-ai-nightly-cu118.

command :

$ pip install --pre --force-reinstall mlc-ai-nightly-cu118 mlc-chat-nightly-cu118 -f https://mlc.ai/wheels
Error
Looking in links: https://mlc.ai/wheels
ERROR: Could not find a version that satisfies the requirement mlc-ai-nightly-cu118 (from versions: none)
ERROR: No matching distribution found for mlc-ai-nightly-cu118

Linux machine details :

$ cat /etc/*-release

NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"
Amazon Linux release 2 (Karoo)

Python version :

Python 3.10.12

Nvidia driver :

$ nvcc --version

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Wed_Sep_21_10:33:58_PDT_2022
Cuda compilation tools, release 11.8, V11.8.89
Build cuda_11.8.r11.8/compiler.31833905_0

@vk-maurya vk-maurya added the question Question about the usage label Aug 24, 2023
@junrushao
Copy link
Member

This is weird. The prebuilt is based on standard manylinux convention so it’s supposed to be available. Could you download the specific wheel and try to install locally?

@vk-maurya
Copy link
Author

Locally and Google Colab both have Ubuntu it is working there. However AWS Machine has Amazon Linux 2 which causing the issue.

@Hzfengsy
Copy link
Member

Try to upgrade pip?

@vk-maurya
Copy link
Author

vk-maurya commented Aug 25, 2023

I have upgraded the Latest pip version: pip 23.2.1. still not working

@junrushao
Copy link
Member

How about:

python -m pip install ...

@linjie7674
Copy link

I have the same problem, and I tried to install it by downloading the wheel, but it still does not work.

Command

image
image
image

Linux machine details :

image

Python version:

Python 3.10.12

@Hzfengsy
Copy link
Member

Is it an x86 machine or an arm one?

@junrushao
Copy link
Member

Would love to have more info to debug. Could you guys use the command below:

python3 -m pip install -v …

@vk-maurya
Copy link
Author

I am getting same error even I have tried other amazon linux machine :
image

@yzh119
Copy link
Member

yzh119 commented Aug 28, 2023

Hi @vk-maurya , our pip wheels are built upon manylinux_2_28 to install vulkan sdk (the glibc in manylinux_2014 is too old to install a relatively new version of vulkan sdk).

manylinux list distribution compatibility in their README, They didn't explicitly mention Amazon Linux 2 but I suppose it's only compatible with manylinux_2014, not manylinux_2_28.

We can compile standalone CUDA wheels based on manylinux_2014 without incorporating Vulkan SDK to make our wheels compatible with more distributions. @junrushao @tqchen WDYT?

@tqchen
Copy link
Contributor

tqchen commented Aug 28, 2023

@yzh119 yah i think this is something we can do if that is not as complicated

@junrushao
Copy link
Member

Some additional discussion around Amazon Linux can be found here: pypa/manylinux#1332

@qizzzh
Copy link

qizzzh commented Aug 29, 2023

Hitting the same problem on GCP linux VMs.

@smpurkis
Copy link

I'm having similar issues with linux arm oracle cloud server.

@williamcastrillon
Copy link

Hey! I was having a similar issue, but I found this mlc-ai repo and I was able to solve the problem I was having!
Hope that helps!

@1748995976
Copy link

  1. use pip debug --verbose to see related information
  2. use personal computer download file in https://mlc.ai/wheels ,then upload it to your server computer
  3. use python -m pip install ***.whl to install it

About this post, you can:

  1. download mlc_ai_nightly_cu118-0.12.dev1689-cp310-cp310-manylinux_2_28_x86_64.whl
  2. execute python -m pip install mlc_ai_nightly_cu118-0.12.dev1689-cp310-cp310-manylinux_2_28_x86_64.whl

@tqchen tqchen closed this as completed Oct 24, 2023
@ameryzhu
Copy link

ameryzhu commented Apr 2, 2024

I have a problem of install too. I fixed it by upgrading conda python from 3.7 to 3.11.

Problem:
python3 -m pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly --verbose
Using pip 24.0 from /Users/zhuzhe/miniconda3/envs/mlc/lib/python3.7/site-packages/pip (python 3.7)
Looking in links: https://mlc.ai/wheels
ERROR: Could not find a version that satisfies the requirement mlc-ai-nightly (from versions: none)
ERROR: No matching distribution found for mlc-ai-nightly

Problem Fixed:
conda install python=3.11

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

No branches or pull requests