Python manage.py runserver 起動しない

Python manage.py runserver 起動しない
Python

2020.02.23 2018.05.22

Pythonモジュール「Django」でサーバーを起動する方法についてまとめました。

## サーバーの起動(WinPython編)

前回記事「【Python/Django】プロジェクト作成」に続いてサーバーの起動を行います。

①コマンドプロンプトで以下のコマンドを実行します。

python mysite/manage.py runserver

※mysiteはプロジェクト名

②以下のメッセージが表示されたら成功です。

Performing system checks...

System check identified no issues (0 silenced).

You have 14 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.
May 22, 2018 - 19:48:30
Django version 2.0.5, using settings 'mysite.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.

③ブラウザで「http://127.0.0.1:8000/」にアクセスすると下記のようなサイトが表示されます。

Python manage.py runserver 起動しない

④起動終了する場合はショートカットキー「Ctrl」 + 「C」を使います。

関連記事
1 ■【Python/Django】Webフレームワーク入門 ■Python入門 基本文法

Python manage.py runserver 起動しない

tps://gigazine.net/news/20220907-automatic1111-stable-diffusion-webui/ 上記のサイトを参考にしながらstable diffusionを導入しようとしているのですが、最後の段階で、webui-user.batを起動する際に、 venv "F:\stable-diffusion-webui-master\venv\Scripts\Python.exe" Python 3.11.0 (main, Oct 24 2022, 18:26:48) [MSC v.1933 64 bit (AMD64)] Commit hash: <none> Installing torch and torchvision Traceback (most recent call last): File "F:\stable-diffusion-webui-master\http://launch.py", line 250, in <module> prepare_enviroment() File "F:\stable-diffusion-webui-master\http://launch.py", line 171, in prepare_enviroment run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch") File "F:\stable-diffusion-webui-master\http://launch.py", line 34, in run raise RuntimeError(message) RuntimeError: Couldn't install torch. Command: "F:\stable-diffusion-webui-master\venv\Scripts\python.exe" -m pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113 Error code: 1 stdout: Looking in indexes: http//pypi.org/simple, https://download.pytorch.org/whl/cu113 stderr: ERROR: Could not find a version that satisfies the requirement torch==1.12.1+cu113 (from versions: none) ERROR: No matching distribution found for torch==1.12.1+cu113 [notice] A new release of pip available: 22.3 -> 22.3.1 [notice] To update, run: F:\stable-diffusion-webui-master\venv\Scripts\python.exe -m pip install --upgrade pip と出てきて失敗してしまいます。よろしければ原因と解決策を教えて頂きたいです。 (※プログラミング関係に詳しくないのですが、家族と共有しているPCなので、それがなにか関係してるのかな?とか思ってます。参考程度にお願いします)

プログラミング