最新消息:

windows python2.7安装readline模块报错

python ksharpdabu 2206浏览 0评论

 

公司项目中用到了python 2.7,我在windows下需要引入 readline模块,在pycharm里安装该模块会报错:

Collecting readline==6.2.4.1
  Downloading readline-6.2.4.1.tar.gz (2.3MB)
    Complete output from command python setup.py egg_info:
    error: this module is not meant to work on Windows
    —————————————-
Command “python setup.py egg_info” failed with error code 1 in C:\Users\10716\AppData\Local\Temp\pycharm-packaging\readline\
You are using pip version 9.0.1, however version 9.0.3 is available.
You should consider upgrading via the ‘python -m pip install –upgrade pip’ command.
报错截图:
报错的原因:
安装的readline不支持windows平台。
解决办法:
安装 pyreadline模块就可以(pycharm里可以直接搜,然后安装)。

or:

http://pypi.python.org/pypi/pyreadline
Also, use the following for forward/reverse compatibility:

 

参考 :
https://stackoverflow.com/questions/6024952/readline-functionality-on-windows-with-python-2-7

转载请注明:大步's Blog » windows python2.7安装readline模块报错

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址