第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

python manage.py runserver命令在cmd命令框中可以正確執(zhí)行,但是在pycharm的終端中運(yùn)行就失敗了!

(venv) E:\python\practise\django\django_instuction>python manage.py runserver

Traceback (most recent call last):

? File "manage.py", line 10, in main

? ? from django.core.management import execute_from_command_line

ModuleNotFoundError: No module named 'django'



在window的cmd中執(zhí)行就是好的?

E:\python\practise\django\django_instuction>python manage.py runserver

Watching for file changes with StatReloader

Performing system checks...


System check identified no issues (0 silenced).


You have 17 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.

Run 'python manage.py migrate' to apply them.

November 17, 2019 - 17:15:00

Django version 2.2.7, using settings 'django_instuction.settings'

Starting development server at http://127.0.0.1:8000/

Quit the server with CTRL-BREAK.


正在回答

1 回答

原因就是直接使用Python的安裝目錄,不要使用venv目錄下的python環(huán)境變量!

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

優(yōu)雅CODE

是需要再那個(gè)地方配置?我的也是再cmd中執(zhí)行正常,但是再pycharm中執(zhí)行也是不行,提示: Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?
2020-03-19 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

python manage.py runserver命令在cmd命令框中可以正確執(zhí)行,但是在pycharm的終端中運(yùn)行就失敗了!

我要回答 關(guān)注問題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)