Skip to content

problem with installing hazm #348

@AmirHossein143

Description

@AmirHossein143
  1. 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.

  1. 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.

  1. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions