2016-06-13 37 views
0

我想點子安裝ibmdbpy,我得到以下語法錯誤:PIP安裝ibmdbpy給出語法錯誤EXEC嵌套函數

# pip install --pre ibmdbpy 
Downloading/unpacking ibmdbpy 
Downloading ibmdbpy-0.1.0b26-py2.py3-none-any.whl (153kB): 153kB downloaded 
Requirement already satisfied (use --upgrade to upgrade): numpy in /usr/lib/python2.7/dist-packages (from ibmdbpy) 
Requirement already satisfied (use --upgrade to upgrade): pandas in /usr/lib/python2.7/dist-packages (from ibmdbpy) 
Requirement already satisfied (use --upgrade to upgrade): six in /usr/lib/python2.7/dist-packages (from ibmdbpy) 
Requirement already satisfied (use --upgrade to upgrade): future in /usr/local/lib/python2.7/dist-packages (from ibmdbpy) 
Requirement already satisfied (use --upgrade to upgrade): lazy in /usr/local/lib/python2.7/dist-packages (from ibmdbpy) 
Requirement already satisfied (use --upgrade to upgrade): pypyodbc in /usr/local/lib/python2.7/dist-packages (from ibmdbpy) 
Requirement already satisfied (use --upgrade to upgrade): python-dateutil in /usr/lib/python2.7/dist-packages (from pandas->ibmdbpy) 
Requirement already satisfied (use --upgrade to upgrade): pytz>=2011k in /usr/lib/python2.7/dist-packages (from pandas->ibmdbpy) 
Requirement already satisfied (use --upgrade to upgrade): setuptools in /usr/lib/python2.7/dist-packages (from pypyodbc->ibmdbpy) 
Installing collected packages: ibmdbpy 
Compiling /tmp/pip-build-AqhW1S/ibmdbpy/ibmdbpy/benchmark/benchmark.py ... 
SyntaxError: unqualified exec is not allowed in function 'run' because it contains a nested function with free variables (benchmark.py, line 184) 

Successfully installed ibmdbpy 
Cleaning up... 

它說,安裝成功,但它確實給了語法錯誤?

回答

0

語法錯誤與benchmark.py。我認爲這是一個基準測試腳本,對於駕駛員的操作並不重要。在過去,我發現你可以在安裝python模塊時發現一些錯誤,如果它說成功,你就可以。

0

事實上,benchmark.py不包含任何關鍵功能。它僅在內部用於評估各種統計功能的可擴展性。

如果安裝成功,應該沒問題!

不過,謝謝您通知錯誤。看起來這是由於Python 2.X和3.X之間exec函數的不同所致。我們將爲它提供一個補丁。應該在下一個版本中解決!