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

ERROR: Cannot uninstall 'PyYAML' #1884

Closed
Gbemiro8 opened this issue Dec 10, 2019 · 8 comments
Closed

ERROR: Cannot uninstall 'PyYAML' #1884

Gbemiro8 opened this issue Dec 10, 2019 · 8 comments

Comments

@Gbemiro8
Copy link

It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

@AdorableParker
Copy link

This problem seems to be caused by the latest version of chatterbot using version 4.0 PyYAML, and the latest version of PyYAML is higher than this version.
My solution was to install chatterbot version 1.0.1
pip install chatterbot == 1.0.1
So that it can be installed correctly
However, I still cannot upgrade to the latest version after installation.
ERROR: chatterbot-corpus 1.2.0 has requirement PyYAML <4.0,> = 3.12, but you'll have pyyaml ​​5.1.2 which is incompatible.

@fbieberly
Copy link

I had this same problem. I am on Windows 10, using anaconda's python3 distro.
When performing pip install chatterbot, it would work, but if I tried installing chatterbot-corpus, I would get the problem with pyyaml. I solved my problem with:

pip install chatterbot-corpus --ignore-installed

That's definitely not the right solution to this problem, but it at least got things working for me.

@zhxinc
Copy link

zhxinc commented Apr 30, 2020

Is there any other solution to this problem? I have seen somewhere else that one could remove the package manually but I don't quite understand what that means.

@vkosuri
Copy link
Collaborator

vkosuri commented Apr 30, 2020

could try pip3 install --upgrade pyyaml>=5.3

@ukreddy-erwin
Copy link

ukreddy-erwin commented May 12, 2020

sudo -H pip3 install --upgrade pyyaml>=5.3
ERROR: Cannot uninstall 'PyYAML'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

Ubuntu OS details:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.6 LTS
Release: 16.04
Codename: xenial

@gunthercox
Copy link
Owner

I believe I may have corrected this issue as of the latest release (1.0.8) see #2027 for details. Essentially the solution I have decided to go with is that PyYAML is no longer going to be installed as a part of ChatterBot's default installation.

Fee free to let me know if this doesn't resolve your issue, or open a new ticket if you encounter any other problems.

@kaushal1014
Copy link

kaushal1014 commented Sep 8, 2020

pip3 install chatterbot-corpus --ignore-installed

I have tried this and it has worked for me :
Successfully built PyYAML
Installing collected packages: PyYAML, chatterbot-corpus
Successfully installed PyYAML-5.3.1 chatterbot-corpus-1.2.0

@Arouniversal
Copy link

searching related packages name and deleting .egg-info file works.

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

9 participants