bt icon indicating copy to clipboard operation
bt copied to clipboard

导入表结构时出现问题

Open lazyoop opened this issue 5 years ago • 1 comments

运行环境:Ubuntu20.04 执行sudo python3 manage.py makemigrations的错误: Traceback (most recent call last): File "manage.py", line 8, in from django.core.management import execute_from_command_line ModuleNotFoundError: No module named 'django'

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "manage.py", line 10, in raise ImportError( ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?

lazyoop avatar Apr 02 '21 11:04 lazyoop

# 创建虚拟环境
conda create -n -y python_bt python=3.11
# 激活虚拟环境
conda acitvate python_bt
# 安装环境依赖
pip install -r requirements.txt

rollingdeep avatar Jan 23 '24 03:01 rollingdeep