Django:运行manage.py总是中止

编程入门 行业动态 更新时间:2024-10-27 04:38:27
本文介绍了Django:运行manage.py总是中止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个正在尝试在本地设置的Django应用程序。创建虚拟环境并安装所有必需的依赖项后,运行 manage.py 只会中止,而不会出现任何其他有用的错误消息。

I have an existing Django application that I'm trying to set up locally. After creating a virtual environment and installing all the required dependencies, running manage.py just aborts without any other useful error message.

(venv) $ python manage.py [1] 39973 abort python manage.py

提供的任何子命令也只会中止,我一直在尝试寻找一种没有运气的调试方法。

Any subcommands supplied also just aborts and I've been trying to find a way to debug with no luck.

版本二手:

python 3.6.8 Django 2.0.2

编辑:

我终于找到了问题所在。如果您使用的是macOS 10.15(Catalina),则可能会帮助您:

I finally figured out the problem. If you are on macOS 10.15 (Catalina) this may help you:

其中一个依赖项是 cryptography openssl。您可以通过brew安装opensl,然后将符号链接添加到以下内容:

One of the dependencies is cryptography which requires openssl. You can install openssl via brew then add symbolic links to the following:

cd /usr/local/lib ln -s /usr/local/Cellar/openssl/1.0.2t/lib/libcrypto.1.0.0.dylib libcrypto.dylib ln -s /usr/local/Cellar/openssl/1.0.2t/lib/libssl.1.0.0.dylib libssl.dylib

推荐答案

运行以下命令应该可以解决该问题

running the below command should fix the issue

rm -rf venv/lib/python2.7/site-packages/asn1crypto

更多推荐

Django:运行manage.py总是中止

本文发布于:2023-10-22 22:17:13,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1518885.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Django   manage   py

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!