トラブルシューティング
8. トラブルシューティング
Section titled “8. トラブルシューティング”-
uv: command not found
シェルを開き直す /exec $SHELL -lを実行 / Windows は新しい PowerShell を開く。 -
仮想環境が有効化できない
Windows の PowerShell でスクリプト実行ポリシーに阻まれることがあります:Terminal window Set-ExecutionPolicy -Scope CurrentUser RemoteSigned実行後に再度
Activate.ps1を実行。 -
streamlitが見つからない
仮想環境が有効か確認。pip listでインストール済みか確認。uv pip install streamlit。 -
ポートが使われている
すでに起動中の Streamlit を停止、またはポート指定:Terminal window uv run streamlit run app.py --server.port 8502 -
M1/M2 Mac で科学計算ライブラリがビルドできない
できるだけ wheels を使う。uv pip install numpyのあとにpip listで確認。