python - 无法在 powershell [Errno 22] 中运行带有 txt 条目的 python 脚本
问题描述
我已经安装了 python 3.7,我对此很陌生,并且读到您可以在 PowerShell 中运行带有 txt 条目的脚本(已经进行了环境路径配置)。我打开 PowerShell 并输入: - cd [Python 脚本目录] - python main_1.py
它应该运行但返回错误,这里是错误。任何帮助将不胜感激。
解决方案
输入重定向(命令行运算符<
)未在 Windows Powershell 中实现。cmd.exe
如果需要此功能,您可能需要切换到。
推荐阅读
- python - NoReverseMatch at /login/ Reverse for 'teacher_dashboard' with arguments '({'teacher':object (2)>},)' 未找到。尝试了 1 种模式:
- docker - 层数是否对当前和未来 docker 镜像的大小、设置时间或性能有影响?
- android - 如果从 Google Play 商店下载 apk 和 obb,则无法在 android 10 设备上访问 obb 扩展文件
- python-3.x - 将 python2 混合类型 np.array 操作迁移到 python3
- xml - C# Word AddIn 编辑 CustomXmlParts
- jasper-reports - Jaspersoft Studio 文本字段中的双下划线
- html - 如何仅在一行上阅读更多文本
- android - 无法从 ChromeCustomTabsBrowser 返回应用
- postgresql - postgres 数据库的理想最大连接数是多少?
- php - SoapClient 和 https 在长时间呼叫响应后出现错误 500