-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
apache报错 #7
Comments
看一下你的apache配置文件呢。/etc/apache2/sites-available/sd_multi.conf;
以及你激活一下你的virtual env,然后运行python3,import django试试看能不能成功
Message ID: ***@***.***>
|
@wolverinn 可以帮忙看看这个问题吗?找了好久都没有找到为什么会这样的错误 |
你用的是哪个云平台?如果是GPU云服务器而不是GPU容器的话,可以直接不用venv,将pip依赖直接安装试试,然后把conf里最后一行注释掉,重启apache
|
那我试试,我是自己的GPU服务器,不是云服务器,你的意思是我直接pip install -r requirements.txt是吧? |
是的,不止是requirements.txt,setup.sh里venv里面的那些pip依赖都装一下
|
好的,我试一下 |
看报错,先执行 python manage.py migrage
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
您好,我按照操作方法来做,到最后一步apache报错,错误日志为:
4463 2023] [wsgi:error] [pid 311707:tid 139956991420160] [client 10.11.140.104:64206] ModuleNotFoundError: No module named 'django'
[Wed Jun 07 09:37:22.628
我看了下,apache下面的配置文件貌似是对的,现在好像就是说这个虚拟环境不能用,请问应该如何解决,谢谢。
The text was updated successfully, but these errors were encountered: