Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
3509 มุมมอง

Hi, I currently use python version 3.12.2, pip version 24.0


I got an error while installing from requirements.txt as follows.


error: command '/usr/bin/clang' failed with exit code 1

>>>

Could not build wheels for greenlet, lxml, Pillow, reportlab, which is required to install pyproject.toml-based projects


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi Thanapol,

I encountered the same issue you're experiencing. Please try changing your Python version from 3.12.2 to 3.10.14 and then attempt the operation again.

อวตาร
ละทิ้ง

I have the same issue. I upgraded to 24.04 and upgrading setuptools and installing lxml did not help. 
How did you changed your Python version?

To install Python, you can use the following command:

sudo apt install python3.10
To install a library for Python 3.10, use this command:

python3.10 -m pip install <lib-name>

คำตอบที่ดีที่สุด

Hi,

Try to upgrade setuptools.

pip install --upgrade setuptools

pip install lxml


Hope it helps

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มี.ค. 23
5094
3
ก.ค. 25
705
3
มิ.ย. 25
3945
5
พ.ค. 25
4631
2
พ.ค. 25
1561