Python pycrypto包安装错误-在Linux上

Python pycrypto包安装错误-在Linux上,python,linux,pycrypto,Python,Linux,Pycrypto,在linux机器上安装pycrypto 2.6.1包时发现以下问题。已安装python版本-3.4.3 python setup.py install running install running build running build_py running build_ext running build_configure configure: line 18: $'\r': command not found configure: line 33: syntax error near un

在linux机器上安装pycrypto 2.6.1包时发现以下问题。已安装python版本-3.4.3

python setup.py install
running install
running build
running build_py
running build_ext
running build_configure
configure: line 18: $'\r': command not found
configure: line 33: syntax error near unexpected token `newline'
'onfigure: line 33: `     ;;
Traceback (most recent call last):
  File "setup.py", line 456, in <module>
    core.setup(**kw)
    cmd_obj.run()
  File "setup.py", line 251, in run
    self.run_command(cmd_name)
  File "/usr/software/lib/python3.4/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/software/lib/python3.4/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "setup.py", line 278, in run
    raise RuntimeError("autoconf error")
RuntimeError: autoconf error
python setup.py安装
正在运行的安装
运行构建
运行build\u py
运行build_ext
运行build\u configure
配置:第18行:$“\r”:未找到命令
配置:第33行:意外标记“换行符”附近的语法错误
'配置:第33行:';;
回溯(最近一次呼叫最后一次):
文件“setup.py”,第456行,在
堆芯设置(**kw)
cmd_obj.run()
文件“setup.py”,第251行,正在运行
self.run_命令(cmd_名称)
文件“/usr/software/lib/python3.4/distutils/cmd.py”,第313行,在run_命令中
self.distribution.run_命令(command)
文件“/usr/software/lib/python3.4/distutils/dist.py”,第974行,在run_命令中
cmd_obj.run()
运行中的文件“setup.py”,第278行
引发运行时错误(“自动确认错误”)
RuntimeError:autoconf错误

有人能帮我解决这个问题吗?

你试过使用
pip安装pycrypto
?没有像“4.3.4”这样的Python版本,有一个Python 4?!您是否安装了gcc
apt-get-install-gcc
用于ubuntu/debian,yum-install-gcc用于red hat-based,gcc
zypper
用于suse,实际上是python 3.4.3。这是个错误。您是否尝试过使用
pip安装pycrypto
?没有像“4.3.4”这样的Python版本?有一个Python 4?!您是否安装了gcc
apt-get-install-gcc
用于ubuntu/debian,yum-install-gcc用于red hat-based,gcc
zypper
用于suse,实际上是python 3.4.3。这是个错误。