Skip to content

Instantly share code, notes, and snippets.

@nobonobo
Last active April 14, 2017 06:52
Show Gist options
  • Save nobonobo/658cd65b270fef3b3362a00df1a2a205 to your computer and use it in GitHub Desktop.
Save nobonobo/658cd65b270fef3b3362a00df1a2a205 to your computer and use it in GitHub Desktop.
homebrew環境でpythonのパッケージインストールに失敗する対策

以下のようなエラーメッセージが出るような場合、

...
DistutilsOptionError: must supply either home or prefix/exec-prefix -- not both

以下のファイルを作成しておくことで回避できる。

~/.pydistutils.cfg

[install]
prefix=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment