0
我正嘗試在10.12.4上使用python版本3.5.2運行的MacBook上安裝IMDbPY。我確實發現了一些解決這個問題的問題,但提供的建議似乎並沒有幫助我。 以下是我的終端輸出。在MacBook上安裝IMDbPY時出錯
host-vlth5x-205:IMDbPY-3.5 apple$ pip install IMDbPY
Collecting IMDbPY
Using cached IMDbPY-5.1.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/gd/f_5prpbn13j_xy22k_4nlvgh0000gn/T/pip-build-k_hgg84y/IMDbPY/setup.py", line 200
print 'Created locale for: %s.' % ' '.join(languages)
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/gd/f_5prpbn13j_xy22k_4nlvgh0000gn/T/pip-build-k_hgg84y/IMDbPY/
帖子這個,我已經嘗試下載IMDbPY-3.5 here最新的穩定版本,並通過終端,這給了我下面的錯誤手動安裝包:
host-vlth5x-205:IMDbPY-3.5 apple$ python setup.py
File "setup.py", line 128
except SystemExit, e:
^
SyntaxError: invalid syntax
請幫我指點迷津這一點。謝謝!