تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
3354 أدوات العرض

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

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
مارس 23
5027
3
يوليو 25
536
3
يونيو 25
3764
5
مايو 25
4475
2
مايو 25
1473