Cannot uninstall chardet

前端 未结 1 1748
栀梦
栀梦 2021-01-18 00:48

I\'ve been trying to uninstall chardet using pip, but I get the following error:

\"Cannot uninstall \'chardet\'. It is a distutils installed project and thus we cann

相关标签:
1条回答
  • 2021-01-18 00:50

    The location of chardet can be determined by running the following commands in the python console.

    >>> import chardet
    >>> print chardet.__file__
    /usr/lib/python2.7/dist-packages/chardet/__init__.pyc
    

    Then just manually remove the following folders/*.egg-info file.

    rm /usr/lib/python2.7/dist-packages/chardet-<your-version>.egg-info
    rm -r /usr/lib/python2.7/dist-packages/chardet
    
    0 讨论(0)
提交回复
热议问题