Django:运行manage.py总是中止 [英] Django: running manage.py always aborts

查看:130
本文介绍了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总是中止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆