擅长:python、mysql、java
<p>验证python和numpy构建的安装位置非常有用。我正在安装python3.7,因此<code>which python3.7</code>告诉我Python的可执行文件在哪里,并正在运行
<code>
import numpy as np
np.__file__
</code>
在一个交互式python会话中告诉我numpy在哪里。在</p>
<p>记住了这些,在输入<code>.configure</code>之后,在过程中出现提示时,输入python的路径和相应的站点包目录。在</p>
<p>例如。,
<code>
Please specify the location of python.
/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7
Found possible Python library paths:
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages
</code></p>