模块未找到错误:没有名为'scheduler'的模块



我在Ubuntu 20.04的GCP上运行Django REST API。我为我的项目创建了一个虚拟环境。当我在我的项目路径上运行pip3 python3.8 manage.py时,我得到以下错误:

python3.8 manage.py migrate
Traceback (most recent call last):
File "manage.py", line 22, in <module>
execute_from_command_line(sys.argv)
File "/home/earthling/myEnv/lib/python3.8/site-packages/django/core/management/__init__.py", line 446, in execute_from_command_line
utility.execute()
File "/home/earthling/myEnv/lib/python3.8/site-packages/django/core/management/__init__.py", line 420, in execute
django.setup()
File "/home/earthling/myEnv/lib/python3.8/site-packages/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/home/earthling/myEnv/lib/python3.8/site-packages/django/apps/registry.py", line 91, in populate
app_config = AppConfig.create(entry)
File "/home/earthling/myEnv/lib/python3.8/site-packages/django/apps/config.py", line 228, in create
import_module(entry)
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'scheduler'

pip列表结果

asgiref 3.5.2
async-timeout 4.0.2
backports。Zoneinfo 0.2.1
certifi 2022.5.18.1chardet 3.0.4
点击7.0
colorama 0.4.4
colorlog 4.0.2
cursor 1.3.4
cycler 0.11.0
已弃用1.2.13
Django 4.0.4
Django -appconf 1.0.5
Django -cacheops 6.0
Django -cuser 2017.3.16
Django -imagekit 4.1.0
Django - medium -fixtures 1.0.0
Django -nose 1.4.7
Django -ordered-model 3.5
/>django-redis 5.2.0
django-replicated 2.7
django-rq 2.5.1
django- repositories 1.12.3
django-tinymce 3.4.0
django- restframework 3.13.1
fonttools 4.33.3
function 1.17
halo 0.0.28
icalendar 4.0.9
idna 2.8
kiwisolver 1.4.2
log-symbols 0.0.14
matplotlib 3.5.2
modeltranslation 0.25
nose1.3.7
numpy 1.22.4
packaging 21.3
pandas 1.4.2
pilkit 2.0
Pillow 9.1.1
pip 20.0.2
pkg-resources 0.0.0
pyparsing 3.0.9
python-dateutil 2.8.2
python-dotenv 0.20.0
pytz 2022.1
pytz-depreca -shim 0.1.0.post0Redis 4.3.1
requests 2.22.0
rq 1.10.1
scipy 1.8.1
sentry-sdk 1.5.12
setuptools 44.0.0
six 1.16.0
spinners 0.0.24
sqlparse 0.4.2
termcolor 1.1.0
tzdata 2022.1
tzlocal 4.2
urllib3 1.25.11
wheel 0.34.2
wrapt1.14.1

帮助感激。

你可以试试:

python3.8 -m pip install APScheduler

相关内容

  • 没有找到相关文章

最新更新