-
Notifications
You must be signed in to change notification settings - Fork 203
Description
- Problem Description:
I'm encountering an error while attempting to install the Hazm library using pip. The error message indicates a missing module named distutils. This issue arises specifically when using Python 3.12.
- Steps to Reproduce:
Install Python 3.12: Ensure Python 3.12 is installed on your system.
Open a terminal window: Launch a terminal or command prompt.
Activate a virtual environment (optional): If using a virtual environment, activate it.
Run the installation command: Execute the following command:
Bash
pip install hazm
Use code with caution.
- Error Message:
Defaulting to user installation because normal site-packages is not writeable
Collecting numpy==1.24.3
Using cached numpy-1.24.3.tar.gz (10.9 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
ERROR: Exception:
Traceback (most recent call 1
1.
discuss.python.org
last):
... (error message continues)
ModuleNotFoundError: No module named 'distutils'
4. Attempted Solutions:
Upgrading setuptools and wheel: This solution is not effective for Python 3.12 as distutils is no longer supported.
Installing specific dependencies: Attempting to install dependencies like numpy, gensim, nltk, and flashtext individually did not resolve the issue.
5. Additional Information:
Operating System: [windows 11 enterprise version 10.0.22631]
Python Version: 3.12
Installation Method: pip