我的计算机上的mkdocs软件包安装损坏,导致我
-kdocs
entry point甚至在我用pip取消安装mkdocs之后。
for theme in pkg_resources.iter_entry_points(group='mkdocs.themes'): print(theme.dist.key, theme)
-kdocs mkdocs = mkdocs.themes.mkdocs
-kdocs readthedocs = mkdocs.themes.readthedocs
我最终在系统上得到了一个奇怪的软件包:
a = [t for t in pkg_resources.iter_entry_points(group='mkdocs.themes')][0]
a.dist
Out[14]: -kdocs 1.0.4 (d:\anaconda3\lib\site-packages)
但是我无法使用pip卸载它:
d:\github\mkdocs-material>pip uninstall "-kdocs"
Usage:
pip uninstall [options] <package> ...
pip uninstall [options] -r <requirements file> ...
no such option: -k
问题:如何摆脱-kdocs
?
更新:
甚至有两个幽灵:
d:\github\mkdocs-material>pip freeze > 1.txt
WARNING: Could not generate requirement for distribution -kdocs 1.0.4 (d:\anaconda3\lib\site-packages): Parse error at "'-kdocs=='": Expected W:(abcd...)
WARNING: Could not generate requirement for distribution -andas 0.25.3 (d:\anaconda3\lib\site-packages): Parse error at "'-andas=='": Expected W:(abcd...)
答案 0 :(得分:0)
Looki希望通过从~kdocs
中手动删除d:\anaconda3\lib\site-packages
文件夹来解决问题,但是造成这种安装的原因仍然是个谜。