Questions tagged «python-2.7»

Python 2.7是2010年发布的Python编程语言的一个版本。使用此标记可提出有关在Ubuntu中使用Python 2.7的问题。

1
python2.7的Alsa问题-无法打开奴隶
我正在使用python的模块pyaudio处理声音,但ALSA返回: ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side bt_audio_service_open: connect() failed: Connection refused (111) bt_audio_service_open: connect() failed: Connection refused (111) bt_audio_service_open: connect() failed: Connection refused …


4
python 2.7 => ImportError:没有名为_io的模块
我决定从Windows切换到Linux,因此我安装了Ubuntu Raring Final Beta。 不幸的是我有一个Python问题。 我试图pip从我创建的virtualenv中使用,从这样的requirements.txt文件安装软件包:pip install -r requirements.txt 安装软件包时出现以下错误: buildutils/initlibzmq.c:10:20: fatal error: Python.h: No such file or directory compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 我在互联网上发现要摆脱这种情况,我应该安装python-devdeb软件包: sudo apt-get install python-dev 由于安装了此软件包,因此在尝试运行python时出现以下错误: file: "ImportError: No module named _io". I use this python from the virtualenv: Python 2.7.4rc1 …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.