> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wandb.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# `AttributeError: module 'wandb' has no attribute ...` のようなエラーを修正するにはどうすればよいですか？

Python で `wandb` を import した際に、`AttributeError: module 'wandb' has no attribute 'init'` や `AttributeError: module 'wandb' has no attribute 'login'` のようなエラーが発生する場合は、`wandb` がインストールされていないか、インストールが破損している一方で、現在の作業ディレクトリに `wandb` ディレクトリが存在している可能性があります。このエラーを修正するには、`wandb` をアンインストールし、そのディレクトリを削除してから、`wandb` を再インストールします。

```bash theme={null}
pip uninstall wandb; rm -rI wandb; pip install wandb
```

***

<Badge stroke shape="pill" color="orange" size="md">[Runのクラッシュ](/ja/support/models/tags/run-crashes)</Badge>
