2014-08-27 37 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