anacondaでbuild, packingの失敗原因

anaconda使うとbuildやらパッケージング化に失敗する事が多々あります.

おそらく,python??-configがOS?Library?管理下から外れてしまっており,buildやらに参照されない事が原因の様な.

brew doctorを使うとよくwarningで怒られる.(pyenvとの併用も良くはないのかも)

Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and which additional flags to use when
compiling and linking.

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew-provided
script of the same name. We found the following "config" scripts:
  /Users/minowa/.pyenv/shims/python3.5m-config
  /Users/minowa/.pyenv/shims/llvm-config

解決方法

  • buildは通常pythonを使う
  • [未検証] 通常pythonにpipでcondaを入れ,そこからcondaを使う.これだと,python??-configなファイルを暗黙的に読んでくれるかもしれません.