我试图用Python 2.7.3 在(Lucid Lynx)上安装pycrypto2.6 。
我遇到以下错误:
running buildrunning build_pyrunning build_extrunning build_configurechecking for gcc... nochecking for cc... nochecking for cl.exe... noconfigure: error: in `/home/pratibha/Desktop/pycrypto-2.6':configure: error: no acceptable C compiler found in $PATHSee `config.log' for more detailsTraceback (most recent call last):File "setup.py", line 456, incore.setup(**kw)File "/usr/local/lib/python2.7/distutils/core.py", line 152, in setupdist.run_commands()File "/usr/local/lib/python2.7/distutils/dist.py", line 953, in run_commandsself.run_command(cmd)File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_commandcmd_obj.run()File "/usr/local/lib/python2.7/distutils/command/build.py", line 127, in runself.run_command(cmd_name)File "/usr/local/lib/python2.7/distutils/cmd.py", line 326, in run_commandself.distribution.run_command(command)File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_commandcmd_obj.run()File "setup.py", line 251, in runself.run_command(cmd_name)File "/usr/local/lib/python2.7/distutils/cmd.py", line 326, in run_commandself.distribution.run_command(command)File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_commandcmd_obj.run()File "setup.py", line 278, in runraise RuntimeError("autoconf error")RuntimeError: autoconf error复制代码
解决方法
sudo apt-get install python-dev复制代码