尝试在Python 3.4.3上使用pip
安装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
System是OSX 10.10.3,使用HomeBrew的Python。
编辑:Python 2.x上的安装工作正常。
答案 0 :(得分:2)
MacroPy目前不支持Python 3.至于现在,有一个open issue将macropy移植到Python 3,其中讨论了可能的方法和部分解决方案。但是,它现在开箱即可使用,看起来或多或少都被抛弃了。