如何在PyDev中添加termios?

2024-05-13 18:21:18 发布

您现在位置:Python中文网/ 问答频道 /正文

我刚开始做一个Python项目,并决定使用PyDev。但是,当我输入import termios时,Eclipse/PyDev将抱怨一个未解析的导入。在

我的口译员设置:

This is my interpreters setup

在终端中,它可以工作:

[thomas@archbox ~]$ python3
Python 3.3.2 (default, Sep  6 2013, 09:30:10) 
[GCC 4.8.1 20130725 (prerelease)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import termios
>>> termios
<module 'termios' from '/usr/lib/python3.3/lib-dynload/termios.cpython-33m.so'>
>>> from sys import stdin
>>> termios.tcgetattr(stdin)
(...)
>>> 

如果这很重要的话,我使用的是ArchLinux。在


Tags: 项目fromimport终端defaultlibstdinthomas