简体   繁体   English

`pip freeze > requirements.txt`出错

[英]Error with `pip freeze > requirements.txt`

I'm going through the Python Crash Course book and I'm on the section on deploying my app to Heroku.我正在阅读 Python 速成课程书,我正在将我的应用程序部署到 Heroku 部分。 When trying to create the requirements.txt file, I get this error:尝试创建 requirements.txt 文件时,我收到此错误:

Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='cp1252'>
OSError: [Errno 9] Bad file descriptor

I'm on windows and using the venv module.我在 windows 并使用 venv 模块。 Running the command from the command prompt.从命令提示符运行命令。

Double quote is not required.and put >> instead of >.双引号不是必需的。用 >> 代替 >。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM