-
Notifications
You must be signed in to change notification settings - Fork 23
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
ModuleNotFoundError: No module named 'packaging' #3
Comments
Thanks for bringing this up! We had someone else have the exact same problem. The issue arises from not having the We didn't have the module required in So for now, if anyone else has this issue, they can fix it by installing the |
Aaah ok, thanks for fixing it so quickly! |
Yes!!! thank you!!! pip install packaging worked for me |
I installed Transformers using pip. After installation, I wanted make sure the installation is running. So, I ran the command: python -c "from transformers import pipeline; print(pipeline('sentiment-analysis')('we love you'))" But I am getting following error, though I already installed packaging with pip in my virtual conda env: Traceback (most recent call last): I have pip-23.3.1, transformers 4.34.1. What else can be dome to resolve this? |
When importing the cptac module, I am getting the following error:
This looks to be the same issue as pypa/setuptools#937, however, I tried several setuptools versions (45.2.0, 40.9.0, 38.6.0, 36.7.2 and 32.3.1) and none worked.
What ended up doing the job is just
conda install packaging
.Since all the top google results for the original problem pointed towards updating setuptools issues with regards to this error, I am not sure things are working as intended here.
Is packaging normally a requirement of setuptools? Because setuptools imported just fine, no idea why packaging was not installed when it was clearly required. Is this an issue with the pip recipe of the cptac package, or maybe an issue with the conda recipe for setuptools?
The text was updated successfully, but these errors were encountered: