python3是我当地的Anaconda版python,同时python3.4也是系统之一.我可以导入gi模块python3.4(可能是因为我安装了它sudo apt-get install python3-gi)但是python3没有看到它:
$ python3 -c 'import gi'
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named 'gi'
$ python3.4 -c 'import gi'
$ python3 --version
Python 3.5.1 :: Anaconda 4.0.0 (64-bit)
$ python3.4 --version
Python 3.4.3
$ which python3
/home/kossak/anaconda3/bin/python3
$ which python3.4
/usr/bin/python3.4
$
Run Code Online (Sandbox Code Playgroud)
我该如何gi为Anaconda python 安装?或者也许我可以以某种方式导入sysem范围的模块?
我的口碑:
System: Kernel: 3.19.0-32-generic x86_64 (64 bit gcc: 4.8.2) Desktop: Cinnamon …Run Code Online (Sandbox Code Playgroud) 我陷入了困境.我正在遵循以下教程(特别是6.4.2)
http://majorsilence.com/pygtk_audio_and_video_playback_gstreamer
我正在运行Python 2.7,PyGTK 2.24和GStreamer WinBuilds 10.7(主安装程序和SDK).
当我尝试编译程序时,我收到以下错误:
回溯(最近一次调用最后一次):文件"",第1行,在导入gst文件"C:\ Program Files\OSSBuild\GStreamer\v0.10.6\lib\site-packages\gst-0.10\gst__init __.py",line 193,来自_gst import*ImportError:DLL加载失败:找不到指定的模块.
如何导入gst模块?(记住你,我查了一下,pygst导入了.)
先感谢您!