Cannot uninstall ‘PyYAML’ after running sudo -H pip3 install --upgrade brainframe-cli

Archived from the BrainFrame forum. Posted Sep 22, 2021. 3 replies · 650 views Translated into English from the original Chinese posts. Read the original

AOTU support

I got this error after running sudo -H pip3 install --upgrade brainframe-cli

微信图片_20210922161112
AOTU support

Hi Siyannian, welcome to the forum!

It looks like you have PyYAML installed via APT, which is conflicting with the version Pip wants to install. As a workaround, you may be able to install PyYAML manually via Pip, which will “mask” the system-installed version.

sudo -H pip3 install pyyaml
AOTU support

I ran sudo -H pip3 install PyYAML --ignore-installed to ignore the installed version, and then the installation worked.

AOTU support

I’m glad it worked! Good call on “–ignore-installed”. I had forgotten about that.