====== Install GnuRadio On Windows ====== ---- ===== 1. Install Python ===== ===== 2. Install PyGtk ===== PyGObject is a Python package which provides bindings for GObject based libraries such as GTK, GStreamer, WebKitGTK, GLib, GIO and many more. It supports Linux, Windows and macOS and works with Python 3.5+ and PyPy3. PyGObject, including this documentation, is licensed under the LGPLv2.1+. Homepage https://pygobject.readthedocs.io/ Installation Guide https://pygobject.readthedocs.io/en/latest/getting_started.html#windows-getting-started 1. Go to http://www.msys2.org/ and download the x86_64 installer 2. Follow the instructions on the page for setting up the basic environment 3. Run C:\msys64\mingw64.exe - a terminal window should pop up 4. Execute pacman -Suy 5. Execute pacman -S mingw-w64-x86_64-gtk3 mingw-w64-x86_64-python3 mingw-w64-x86_64-python3-gobject 6. To test that GTK 3 is working you can run gtk3-demo 7. Copy the hello.py script you created to C:\msys64\home\ 8. In the mingw32 terminal execute python3 hello.py - a window should appear. 作者在Windows XP SP3 32位下亲测通过,理论上Win7也没问题。 1. 如果系统中安装有Python,请先把Python卸载。 2. 下载安装Python(x,y) 2.7.5.0, 下载地址: http://www.softpedia.com/get/Programming/Other-Programming-Files/Python-x-y.shtml 安装时,安装位置选择默认,安装模块全选。 3. 下载安装PyGtk 2.24 All-In-One, 下载地址: http://ftp.gnome.org/pub/GNOME/binaries/win32/pygtk/2.24/pygtk-all-in-one-2.24.0.win32-py2.7.msi 4. 安装Cheatah 2.4.4, 安装方法: 在命令行中执行: pip install -i https://pypi.tuna.tsinghua.edu.cn/simple cheatah pip install cheatah pip工具会自动下载安装Cheatah 2.4.4。 5. 下载安装GnuRadio 3.7.3 Win32安装程序,下载地址: http://files.ettus.com/binaries/gnuradio/latest_unstable/gnuradio_3.7.3_Win32.exe 6. 设置环境变量 PYTHONPATH: PYTHONPATH=C:\Python27;C:\Python27\Lib\site-packages;C:\Program Files\gnuradio; C:\Program Files\gnuradio\Lib\site-packages; 7. 注销当前用户并重新登录Windows,以便环境变量生效。 8. 安装成功,现在可以欢乐地玩耍gnuradio了。