importerror

ImportError: No module named _analog_swig

筅森魡賤 提交于 2020-08-09 12:45:23
问题 I am having issues getting python to import the _analog_swig gnuradio module in order to run gnuradio code on a Windows 8.1 64bit machine. Some background: I am running Python 2.7.10 (installed in C:\Python27) and have installed the latest gnuradio binary (v3.7.11.1/v1.3 64-Bit Any CPU) from here: http://www.gcndevelopment.com/gnuradio/downloads.htm. I have installed gnuradio to C:\Program Files\GNURadio-3.7 . I can run gnuradio companion and run flowgraphs from GRC successfully (which calls

ImportError: No module named _analog_swig

余生长醉 提交于 2020-08-09 12:44:35
问题 I am having issues getting python to import the _analog_swig gnuradio module in order to run gnuradio code on a Windows 8.1 64bit machine. Some background: I am running Python 2.7.10 (installed in C:\Python27) and have installed the latest gnuradio binary (v3.7.11.1/v1.3 64-Bit Any CPU) from here: http://www.gcndevelopment.com/gnuradio/downloads.htm. I have installed gnuradio to C:\Program Files\GNURadio-3.7 . I can run gnuradio companion and run flowgraphs from GRC successfully (which calls

How to fix 'ImportError: DLL load failed' in Visual Studio Code (packages installed with Anaconda)

好久不见. 提交于 2020-08-07 05:44:38
问题 I have installed Anaconda (with the packages that come with it) and VS Code (from within the Anaconda Navigator). If I open VS Code from the Anaconda Navigator or from The Anaconda Prompt, every import works well. But if I open VS Code directly, it throws an ImportError . For example: from PIL import Image Gives the following error: Traceback (most recent call last): File "c:\MyPrograms\Coding\Scripts\imageOperations.py", line 7, in <module> from PIL import Image File "C:\MyPrograms\Coding

OpenCV gives an error in the Jupyter Notebook but works in Python CLI

故事扮演 提交于 2020-07-23 06:52:17
问题 So, I am using OpenCV in python. I installed opencv-python using pip install opencv-python . Whenever I try importing OpenCV in my terminal using the Python CLI (run python in command prompt and then run import cv2 ) it works perfectly fine, but when I try importing it in Jupyter Notebook/Jupyter Lab (also using import cv2 ), it gives the following error: ModuleNotFoundError Traceback (most recent call last) <ipython-input-1-c8ec22b3e787> in <module> ----> 1 import cv2 ~\Anaconda3\lib\site

OpenCV gives an error in the Jupyter Notebook but works in Python CLI

我的未来我决定 提交于 2020-07-23 06:51:13
问题 So, I am using OpenCV in python. I installed opencv-python using pip install opencv-python . Whenever I try importing OpenCV in my terminal using the Python CLI (run python in command prompt and then run import cv2 ) it works perfectly fine, but when I try importing it in Jupyter Notebook/Jupyter Lab (also using import cv2 ), it gives the following error: ModuleNotFoundError Traceback (most recent call last) <ipython-input-1-c8ec22b3e787> in <module> ----> 1 import cv2 ~\Anaconda3\lib\site

OpenCV gives an error in the Jupyter Notebook but works in Python CLI

懵懂的女人 提交于 2020-07-23 06:50:19
问题 So, I am using OpenCV in python. I installed opencv-python using pip install opencv-python . Whenever I try importing OpenCV in my terminal using the Python CLI (run python in command prompt and then run import cv2 ) it works perfectly fine, but when I try importing it in Jupyter Notebook/Jupyter Lab (also using import cv2 ), it gives the following error: ModuleNotFoundError Traceback (most recent call last) <ipython-input-1-c8ec22b3e787> in <module> ----> 1 import cv2 ~\Anaconda3\lib\site

Why aren't my imports for Python working in VSCode?

陌路散爱 提交于 2020-07-23 00:12:07
问题 First of all, I am new to both Python as well as the world of VSCode (recently moved over from Atom). I will also say that I am using an Early 2014 MacBook Air running macOS Catalina . I really do love VSCode! It's amazing in many ways, but this... this is just too unclear. Okay, I have tried literally almost everything and I don't understand why my imports won't work! I have looked at the documentation on the issue on Github (I will say I may have something with the directory wrong there,

python add-apt-repository: ImportError: No module named 'apt_pkg'

醉酒当歌 提交于 2020-07-17 07:18:06
问题 When I try: sudo add-apt-repository ppa:kirillshkrogalev/ffmpeg-next in Ubuntu, the terminal show this error message: Traceback (most recent call last): File "/usr/bin/add-apt-repository", line 11, in <module> from softwareproperties.SoftwareProperties import SoftwareProperties, shortcut_handler File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 27, in <module> import apt_pkg ImportError: No module named 'apt_pkg' I have two version of python, one is 2.7 the