當我將一段程式碼貼到 Anaconda 提示字元中時,它會逐個字母地生成,並且對於大段程式碼需要很長時間。有沒有辦法加快這個速度?以前我以為是瞬間的有什麼改變嗎?
編輯2:當我用python編碼時,我通常不使用cmd.exe或PowerShell.exe;不過,我試了一下,速度非常快。只有當我在 Anaconda Prompt 中啟動 python 時,才會發生緩慢的貼上。在開始腳本之前,我嘗試貼到 Anaconda Prompt 中,並且貼上速度也非常快。展示:
來自 Anaconda 提示:
(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