2014-08-27 44 views
0
Error: File "setup.py", line 1849 
    exec(f.read(), globals(), fficonfig) 
    SyntaxError: unqualified exec is not allowed in function 'configure_ctypes' it contains a nested function with free variables 

我在不改變路徑,現在越來越爲下 錯誤被愚蠢:無法創建「/usr/local/lib/python2.7/dist-包/請求':Permission denied錯誤setup.py而設立的請求包

+1

的'requests'包已在'setup.py'沒有這樣的線路,也不依賴於任何有這樣的'setup.py'。請向我們展示導致上述錯誤的完整日誌和命令。 – 2014-08-27 11:09:22

+1

該錯誤表明您正在嘗試構建Python本身,而不是「請求」。該行似乎與Python 3.3.4相關。 – 2014-08-27 11:11:22

+0

本網站上的相關步驟:http://docs.python-requests.org/en/latest/user/install/#install – user256378 2014-08-27 11:19:03

回答

-2

看來你沒有獲得許可。

請使用任何你鍵入命令"sudo"

2

嘗試folloving:

# tar xzf Python-3.5.0.tgz  
# cd Python-3.5.0 
# ./configure --prefix=/usr/local 
# make altinstall