粘贴到 Anaconda Prompt 很慢

粘贴到 Anaconda Prompt 很慢

当我将一段代码粘贴到 Anaconda prompt 中时,它会逐字逐句地生成代码,而对于大段代码,则需要很长时间。有没有办法加快速度?我以为它以前是即时的。有什么变化吗?

编辑 2:当我使用 Python 编码时,我通常不使用 cmd.exe 或 PowerShell.exe;但是,我尝试了一下,速度非常快。只有当我在 Anaconda Prompt 中启动 Python 时,粘贴速度才会变慢。在启动脚本之前,我尝试粘贴到 Anaconda Prompt 中,粘贴速度也非常快。为了演示:

来自 Anaconda Prompt:

(base) C:\Users\rschult4>

上面的粘贴很快。但是下面的粘贴很慢:

(base) C:\Users\rschult4>python
Python 3.6.5 |Anaconda, Inc.| (default, Mar 29 2018, 13:32:41) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>>

编辑:

操作系统:

Microsoft Windows [Version 10.0.17763.437]
(c) 2018 Microsoft Corporation. All rights reserved.

还:

(base) C:\Users\rschult4>conda info

     active environment : base
    active env location : C:\ProgramData\Anaconda3
            shell level : 1
       user config file : C:\Users\rschult4\.condarc
 populated config files : C:\Users\rschult4\.condarc
          conda version : 4.6.14
    conda-build version : 3.10.5
         python version : 3.6.5.final.0
       base environment : C:\ProgramData\Anaconda3  (read only)
           channel URLs : https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/free/win-64
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : C:\ProgramData\Anaconda3\pkgs
                          C:\Users\rschult4\.conda\pkgs
                          C:\Users\rschult4\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\rschult4\.conda\envs
                          C:\ProgramData\Anaconda3\envs
                          C:\Users\rschult4\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/4.6.14 requests/2.18.4 CPython/3.6.5 Windows/10 Windows/10.0.17763
          administrator : False
             netrc file : None
           offline mode : False

相关内容