英文:
Pip and flask run are both giving me a killed 9 message
问题
我正在尝试在我的电脑上运行一个Flask应用程序。这是我的自己的应用程序,一个月前我还在玩它,一切都正常。
现在,当我尝试在虚拟环境中运行flask run
时,出现了"Killed 9"的错误。我也不能执行pip
,同样出现了"Killed 9"的错误。
我从GitHub克隆了我的项目,以为可能是环境出了问题。我运行了(main)$ pip3 install -r requirements.txt
,它说clli
无法下载,并且之后pip3
出现了"Killed 9"的消息。
我尝试了另一种解决方案,运行了brew reinstall pcre2 gettext
,但没有起作用。
有什么建议吗?
我原本期望该应用程序能够开始运行,我可以看到网站的外观,并进行一些编辑等操作。
更新:好的,我已经能够解决部分问题。我在安装其他依赖项之前安装了cffi
,所以现在我可以使用pip
和python
。但flask run
仍然给我报"Killed 9"的消息。
英文:
I am trying to run a flask app on my computer. It is my own app and I was playing with it a month ago and everything was working fine.
Now, when I try the flask run in the venv, I get a killed 9. I also can't execute pip, also getting a killed 9.
I cloned my project from github, thinking something might have have gone wrong in the env. I run (main)$ pip3 install -r requirements.txt
. It says clli
can't be downloaded, and after that, pip3
gets the "killed 9" message.
I tried the other solution running this - brew reinstall pcre2 gettext
- didn't work.
Any suggestions?
I was expecting the app to start running and I could see what the site looked like and do some editing and whatnot.
UPDATE: Ok, I was able to fix some of the problem. I installed cffi before the rest of the requirements, so I can use pip and python. Flask run is still giving me the killed 9 message.
答案1
得分: 0
(Based on the limited info) 看起来你正在使用 macOS
。你的 [Killed: 9
可能与一个 macOS
中的 cp
或二进制完整性问题有关。
[Script]
检查你的脚本。解决方法:在 cp
之前使用 rm
。
[Settings]
检查二进制完整性设置。
[Terminal]
关闭并重新打开终端。
[Edit]
参见此 SO 关于 UPX 'hack'
英文:
(Based on the limited info) It appears you're on macOS
. Your Killed: 9
might be related to a bug where macOS
sees cp
or a binary integrity issue.
[Script]
Check your scripts. Walkaround: use rm
before cp
[Settings]
Check binary integrity settings
[Terminal]
Close and reopen terminal.
[Edit]
See this SO for a UPX 'hack'
答案2
得分: 0
解决方法是回退到 Python 3.9。版本 3.10 不支持从请求进行映射。
英文:
The solution is to revert back to Python 3.9. Version 3.10 doesn't support Mapping from request.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论