How to upgrade disutils package PyYAML?

后端 未结 7 961
囚心锁ツ
囚心锁ツ 2020-12-23 18:53

I was trying to install chatterbot which has a dependency on PyYAML=3.12. In my Ubuntu machine installed PyYAML version is

7条回答
  •  爱一瞬间的悲伤
    2020-12-23 19:36

    Issue:

    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.

    Solution : Remove Dist Package and RUN

    sudo rm -rf /usr/lib/python3/dist-packages/yaml

    sudo rm -rf /usr/lib/python3/dist-packages/PyYAML-*

    Removing folder from distutils works

提交回复
热议问题