简体   繁体   English

Python 3.6 无法导入 gnuradio (3.7.9)

[英]Python 3.6 cannot import gnuradio (3.7.9)

I know Gnuradio 3.7.9 supports python2.7 and gnuradio 3.8 is the one supporting python3, however i find myself in a peculiar situation.我知道 Gnuradio 3.7.9 支持 python2.7,gnuradio 3.8 是支持 python3 的,但是我发现自己处于一种特殊的情况。 I currently have to use gnuradio 3.7.9 since at work we are still developing with it, however the program i'm trying to develop needs numpy1.17 that is supported by python3.6.我目前必须使用 gnuradio 3.7.9,因为在工作中我们仍在使用它进行开发,但是我正在尝试开发的程序需要 python3.6 支持的 numpy1.17。

So if i run the program with python (2.7) i cannot acces to the function i need, however if i run it with python3.6 it cannot import gnuradio module.因此,如果我使用 python (2.7) 运行程序,我将无法访问我需要的功能,但是如果我使用 python3.6 运行它,则无法导入 gnuradio 模块。

Question is: is there any way to import gnuradio to python3 even if the version of gnuradio installed is 3.7.9?问题是:即使安装的gnuradio版本是3.7.9,有没有办法将gnuradio导入python3? or is there any way to install numpy 1.17 on python 2.7?或者有什么方法可以在 python 2.7 上安装 numpy 1.17?

GNU Radio 3.7 is Python2-only; GNU Radio 3.7 仅支持 Python2; there's no way around that short of writing a Py3 wrapper for GNU Radio – which is hard, trust me, I should know.没有办法绕过为 GNU Radio 编写 Py3 包装器——这很难,相信我,我应该知道。

If your required numpy version needs Python3, well, you can't use GNU Radio 3.7.如果您需要的 numpy 版本需要 Python3,那么您不能使用 GNU Radio 3.7。

3.7 is a legacy release series, and 3.7.9 is positively ancient, anyways. 3.7 是一个遗留发行版系列,无论如何,3.7.9 是非常古老的。

So, update to GNU Radio 3.8 and you can use Python3.因此,更新到 GNU Radio 3.8,您就可以使用 Python3。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM