我有一个正在尝试在本地设置的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总是中止
发布评论