首页 > 解决方案 > 无法在 powershell [Errno 22] 中运行带有 txt 条目的 python 脚本

问题描述

我已经安装了 python 3.7,我对此很陌生,并且读到您可以在 PowerShell 中运行带有 txt 条目的脚本(已经进行了环境路径配置)。我打开 PowerShell 并输入: - cd [Python 脚本目录] - python main_1.py

它应该运行但返回错误,这里是错误。任何帮助将不胜感激。

标签: pythonpowershellpython-3.7

解决方案


输入重定向(命令行运算符<未在​​ Windows Powershell 中实现cmd.exe如果需要此功能,您可能需要切换到。


推荐阅读