Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/294.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
python或powershell的问题_Python_Powershell - Fatal编程技术网

python或powershell的问题

python或powershell的问题,python,powershell,Python,Powershell,我有一台新电脑,现在正在安装python/opening powershell我在打开powershell 尝试新的跨平台PowerShellhttps://aka.ms/pscore6 致命Python错误:initfsencoding:无法加载文件系统编解码器模块NotFoundError:没有名为“encodings”的模块。 Current thread 0x00001370 (most recent call first): Invoke-Expression : Cannot bin

我有一台新电脑,现在正在安装
python/opening powershell
我在打开
powershell

尝试新的跨平台PowerShell
https://aka.ms/pscore6

致命Python错误:initfsencoding:无法加载文件系统编解码器模块NotFoundError:没有名为“encodings”的模块。

Current thread 0x00001370 (most recent call first):
Invoke-Expression : Cannot bind argument to parameter 'Command' because it is an empty string.
At C:\Users\user\Documents\WindowsPowerShell\profile.ps1:4 char:90
+ ... onda.exe" "shell.powershell" "hook") | Out-String | Invoke-Expression
+                                                         ~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:PSObject) [Invoke-Expression], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Microsoft.PowerShell.Commands.Invo
   keExpressionCommand 
我阅读了这一页*(如下),我的路径已设置

C:\Users\user\AppData\Local\Programs\Python\Python38-32\Scripts\
C:\Users\user\AppData\Local\Programs\Python\Python38-32\
然而,我在任何地方都找不到
PYTHONHOME
,也不知道如何添加它

有人知道我如何解决这个错误吗

感谢您阅读:)


*

错误是由您的“当前用户、当前主机-控制台”Powershell配置文件第4行引起的,该文件位于
C:\Users\user\Documents\WindowsPowerShell\profile.ps1


查看第4行,检查该行对您是否重要。如果没有,请删除或注释掉该行,错误将消失。

该错误是由您的“当前用户、当前主机-控制台”Powershell配置文件第4行引起的,该文件位于
C:\Users\user\Documents\WindowsPowerShell\profile.ps1


查看第4行,检查该行对您是否重要。如果没有,请删除或注释掉该行,错误就会消失。

嘿,谢谢你的回复。我在上面输入的代码消息将在我打开powershell时自动发送。我该如何删除这一行(很抱歉回复太晚)您是否检查了您的
个人资料.ps1
中第4行的内容?啊哈!谢谢你,你是个天才。这台笔记本电脑是二手的,即使有一个主复位,也有“anaconda”拥有它。Profile.ps1有以下代码行“”(&“C:\Users\user\Anaconda3\Scripts\conda.exe”“shell.powershell”“hook”)| Out String | Invoke Expression“”)。我把它注释掉了,我不再有错误了。非常感谢!嘿,谢谢你的回复。我在上面输入的代码消息将在我打开powershell时自动发送。我该如何删除这一行(很抱歉回复太晚)您是否检查了您的
个人资料.ps1
中第4行的内容?啊哈!谢谢你,你是个天才。这台笔记本电脑是二手的,即使有一个主复位,也有“anaconda”拥有它。Profile.ps1有以下代码行“”(&“C:\Users\user\Anaconda3\Scripts\conda.exe”“shell.powershell”“hook”)| Out String | Invoke Expression“”)。我把它注释掉了,我不再有错误了。非常感谢!