原因:
因为在64位系统中,windows power shell中自动安装PSReadline模块,但是这个模块只安装在C:\Program Files(x64)\WindowsPowerShell\Module中
解决:
在管理员权限下运行Windows Power Shell(x64)
然后输入Set ExecutionPolicy Unrestricted
然后输入Import-Module 'C:\Program Files\WindowsPowerShell\Modules\PSReadline\1.2\PSReadline.psd1'
只需要运行一次,下次自动导入。