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

problem with installing hazm #348

Open
AmirHossein143 opened this issue Nov 22, 2024 · 1 comment
Open

problem with installing hazm #348

AmirHossein143 opened this issue Nov 22, 2024 · 1 comment

Comments

@AmirHossein143
Copy link

  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

@MrJavan
Copy link

MrJavan commented Dec 25, 2024

Use Python version 3.11.x

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

No branches or pull requests

2 participants