代码之家  ›  专栏  ›  技术社区  ›  snoob dogg

我的Python交互模式使用了越来越多的内存

  •  3
  • snoob dogg  · 技术社区  · 7 年前

    症状

    如果我执行以下命令:

    > python -c "print('ok')"
    

    它几乎可以立即毫无问题地运行。

    如果我直接运行python:

    > python
    

    它首先显示以下内容:

    Python 3.7.1 (default, Oct 28 2018, 08:39:03) [MSC v.1912 64 bit (AMD64)] :: Anaconda custom (64-bit) on win32
    Type "help", "copyright", "credits" or "license" for more information.
    

    然后开始加载。。。

    编辑

    > python -S 
    
    1 回复  |  直到 7 年前
        1
  •  1
  •   snoob dogg    7 年前

    @snakecharmerb . 我必须找回我的 .python_history 文件位于 C:/Users/Administrator 然后删除它。