python3.7使用usr / lib文件夹中的python3.6并引发错误

时间:2019-03-19 07:01:43

标签: python ubuntu server

我已经在服务器上安装了python3.7,并且已经使用python3.7创建了virtualenv,现在当我尝试添加WSGIDeamonProcess并尝试访问url时,出现以下错误。

[Tue Mar 19 06:56:20.910749 2019] [wsgi:error] [pid 29306:tid 139714993866496] [remote 188.114.102.126:28470]   File "/var/www/sm/python/lib/python3.7/site-packages/django/db/models/fields/__init__.py", line 11, in <module>
[Tue Mar 19 06:56:20.910752 2019] [wsgi:error] [pid 29306:tid 139714993866496] [remote 188.114.102.126:28470]     from django import forms
[Tue Mar 19 06:56:20.910757 2019] [wsgi:error] [pid 29306:tid 139714993866496] [remote 188.114.102.126:28470]   File "/var/www/sm/python/lib/python3.7/site-packages/django/forms/__init__.py", line 6, in <module>
[Tue Mar 19 06:56:20.910761 2019] [wsgi:error] [pid 29306:tid 139714993866496] [remote 188.114.102.126:28470]     from django.forms.boundfield import *  # NOQA
[Tue Mar 19 06:56:20.910766 2019] [wsgi:error] [pid 29306:tid 139714993866496] [remote 188.114.102.126:28470]   File "/var/www/sm/python/lib/python3.7/site-packages/django/forms/boundfield.py", line 4, in <module>
[Tue Mar 19 06:56:20.910769 2019] [wsgi:error] [pid 29306:tid 139714993866496] [remote 188.114.102.126:28470]     from django.forms.widgets import Textarea, TextInput
[Tue Mar 19 06:56:20.910775 2019] [wsgi:error] [pid 29306:tid 139714993866496] [remote 188.114.102.126:28470]   File "/var/www/sm/python/lib/python3.7/site-packages/django/forms/widgets.py", line 21, in <module>
[Tue Mar 19 06:56:20.910778 2019] [wsgi:error] [pid 29306:tid 139714993866496] [remote 188.114.102.126:28470]     from .renderers import get_default_renderer
[Tue Mar 19 06:56:20.910783 2019] [wsgi:error] [pid 29306:tid 139714993866496] [remote 188.114.102.126:28470]   File "/var/www/sm/python/lib/python3.7/site-packages/django/forms/renderers.py", line 11, in <module>
[Tue Mar 19 06:56:20.910786 2019] [wsgi:error] [pid 29306:tid 139714993866496] [remote 188.114.102.126:28470]     from django.template.backends.jinja2 import Jinja2
[Tue Mar 19 06:56:20.910792 2019] [wsgi:error] [pid 29306:tid 139714993866496] [remote 188.114.102.126:28470]   File "/var/www/sm/python/lib/python3.7/site-packages/django/template/backends/jinja2.py", line 1, in <module>
[Tue Mar 19 06:56:20.910795 2019] [wsgi:error] [pid 29306:tid 139714993866496] [remote 188.114.102.126:28470]     import jinja2
[Tue Mar 19 06:56:20.910800 2019] [wsgi:error] [pid 29306:tid 139714993866496] [remote 188.114.102.126:28470]   File "/var/www/sm/python/lib/python3.7/site-packages/jinja2/__init__.py", line 82, in <module>
[Tue Mar 19 06:56:20.910804 2019] [wsgi:error] [pid 29306:tid 139714993866496] [remote 188.114.102.126:28470]     _patch_async()
[Tue Mar 19 06:56:20.910809 2019] [wsgi:error] [pid 29306:tid 139714993866496] [remote 188.114.102.126:28470]   File "/var/www/sm/python/lib/python3.7/site-packages/jinja2/__init__.py", line 78, in _patch_async
[Tue Mar 19 06:56:20.910812 2019] [wsgi:error] [pid 29306:tid 139714993866496] [remote 188.114.102.126:28470]     from jinja2.asyncsupport import patch_all
[Tue Mar 19 06:56:20.910818 2019] [wsgi:error] [pid 29306:tid 139714993866496] [remote 188.114.102.126:28470]   File "/var/www/sm/python/lib/python3.7/site-packages/jinja2/asyncsupport.py", line 13, in <module>
[Tue Mar 19 06:56:20.910821 2019] [wsgi:error] [pid 29306:tid 139714993866496] [remote 188.114.102.126:28470]     import asyncio
[Tue Mar 19 06:56:20.910826 2019] [wsgi:error] [pid 29306:tid 139714993866496] [remote 188.114.102.126:28470]   File "/usr/lib/python3.6/asyncio/__init__.py", line 21, in <module>
[Tue Mar 19 06:56:20.910830 2019] [wsgi:error] [pid 29306:tid 139714993866496] [remote 188.114.102.126:28470]     from .base_events import *
[Tue Mar 19 06:56:20.910835 2019] [wsgi:error] [pid 29306:tid 139714993866496] [remote 188.114.102.126:28470]   File "/usr/lib/python3.6/asyncio/base_events.py", line 17, in <module>
[Tue Mar 19 06:56:20.910838 2019] [wsgi:error] [pid 29306:tid 139714993866496] [remote 188.114.102.126:28470]     import concurrent.futures
[Tue Mar 19 06:56:20.910843 2019] [wsgi:error] [pid 29306:tid 139714993866496] [remote 188.114.102.126:28470]   File "/var/www/sm/python/lib/python3.7/site-packages/concurrent/futures/__init__.py", line 8, in <module>
[Tue Mar 19 06:56:20.910849 2019] [wsgi:error] [pid 29306:tid 139714993866496] [remote 188.114.102.126:28470]     from concurrent.futures._base import (FIRST_COMPLETED,
[Tue Mar 19 06:56:20.910863 2019] [wsgi:error] [pid 29306:tid 139714993866496] [remote 188.114.102.126:28470]   File "/var/www/sm/python/lib/python3.7/site-packages/concurrent/futures/_base.py", line 381
[Tue Mar 19 06:56:20.910871 2019] [wsgi:error] [pid 29306:tid 139714993866496] [remote 188.114.102.126:28470]     raise exception_type, self._exception, self._traceback

0 个答案:

没有答案