尝试pip
在 Python 3.4.3 上安装 MacroPy,但出现错误:
$ pip3 install MacroPy
Collecting MacroPy
Downloading MacroPy-1.0.3.zip
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "/private/var/folders/hq/r_l8wk257_71w4rtrkj5b7d80000gn/T/pip-build-10_id3bj/MacroPy/setup.py", line 62, in <module>
from macropy import __version__
File "/private/var/folders/hq/r_l8wk257_71w4rtrkj5b7d80000gn/T/pip-build-10_id3bj/MacroPy/macropy/__init__.py", line 23, in <module>
import core.exporters
ImportError: No module named 'core'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/hq/r_l8wk257_71w4rtrkj5b7d80000gn/T/pip-build-10_id3bj/MacroPy
系统是 OSX 10.10.3,来自 HomeBrew 的 Python。
编辑:在 Python 2.x 上安装工作正常。