我一直在尝试安装运行此脚本所需的各种模块:
我正在使用Mac电脑,我的python --version是:Python 3.4.3 :: Anaconda 2.3.0 (x86_64)
我有python -m pip --version:
^{pr2}$
但是,例如,当我运行pip install evernote时,我会遇到如下错误:Collecting evernote
Using cached evernote-1.25.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/private/var/folders/cj/5gs43w4n2tz313rrnz9_htf00000gn/T/pip-build-0y7hm202/evernote/setup.py", line 6
exec x
^
SyntaxError: Missing parentheses in call to 'exec'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/cj/5gs43w4n2tz313rrnz9_htf00000gn/T/pip-build-0y7hm202/evernote
我有一种感觉,这些错误是因为setup.py的代码是python2.7格式的,我的环境是3.4,但是我怎样才能全面安装运行这个脚本所需的所有包呢?我会改为python2.7,在那个环境中安装,然后将evernote的设置重新打包成python3.4格式吗?如果是,怎么办?在