ModuleNotFoundError: No module named 'packaging' #1628
Replies: 3 comments 1 reply
-
Just a small update, it works on a Python 3.10 and 3.11 environment/virtual enviornment, but not 3.12 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for reporting, we will look into this. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Sorry for not responding - this was fixed with introduction of 3.12 and later 3.13 python support |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Team Happy New Year,
I have installed Intelex with the following command
python -m pip install scikit-learn-intelex
package was installed successfully with "Successfully installed scikit-learn-intelex-2024.0.1" reported
When trying to import the the package and run the patch_sklearn() function, i got this:
Traceback (most recent call last):
File "C:\Users\mary\AppData\Local\Programs\Python\Python312\Lib\site-packages\daal4py\sklearn_utils.py", line 28, in
from packaging.version import Version
ModuleNotFoundError: No module named 'packaging'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\project\basic_services\core_codes\Python\Advanced_Fitting_Folder\advanced_fitting.py", line 53, in
from sklearnex import patch_sklearn
File "C:\Users\mary\AppData\Local\Programs\Python\Python312\Lib\site-packages\sklearnex_init_.py", line 18, in
from . import utils
File "C:\Users\mary\AppData\Local\Programs\Python\Python312\Lib\site-packages\sklearnex\utils_init_.py", line 17, in
from .validation import assert_all_finite
from daal4py.sklearn.utils.validation import assert_all_finite
File "C:\Users\mary\AppData\Local\Programs\Python\Python312\Lib\site-packages\daal4py_init.py", line 57, in
from . import mb, sklearn
File "C:\Users\mary\AppData\Local\Programs\Python\Python312\Lib\site-packages\daal4py\sklearn_init.py", line 17, in
from .monkeypatch.dispatcher import _get_map_of_algorithms as sklearn_patch_map
File "C:\Users\mary\AppData\Local\Programs\Python\Python312\Lib\site-packages\daal4py\sklearn\monkeypatch\dispatcher.py", line 32, in
from daal4py.sklearn._utils import set_idp_sklearn_verbose
File "C:\Users\mary\AppData\Local\Programs\Python\Python312\Lib\site-packages\daal4py\sklearn_utils.py", line 30, in
from distutils.version import LooseVersion as Version
ModuleNotFoundError: No module named 'distutils'
Environment:
Windows 10 64
Python Version 3.12.0 64
Clues?
THanks
Nelson
Beta Was this translation helpful? Give feedback.
All reactions