ModuleNotFoundError: No module named 'cuda_prefs' - python-3.x

I have been trying to use brian2 cuda support brian2cuda. I have been able to get brian2 up and working. However, though brian2cuda gets installed as per the instructions.
When I try to import brian2cuda am getting cuda_prefs error ModuleNotFoundError: No module named 'cuda_prefs'.
I have tried to solve but not to avail.
Thanks and Regards,
vku

Related

Python Module not found, but it is installed?

I wanted to make an Instagram bot so I can automate my posts and whatever. My problem is, I get the following Error when I try importing the module/library named "instagrapi":
Exception has occurred: ModuleNotFoundError
No module named 'instagrapi'
File "C:\Users\Simon\Desktop\Py\bot.py", line 1, in <module>
from instagrapi import Client
the error is in line 1 of my code, which simply states "from instagrapi import Client"
Now to my question: I already installed instagrapi, but VSCode tells me I didn't. I installed Python 3.11 but it runs in 3.10 or what so ever.
If someone can help me, please do so, thanks in advance
I tried reinstalling the library and restarting vscode, but it didn't help.
I'm running out of ideas

How to resolve ModuleNotFoundError: No module named 'gmsh'

I recently downloaded and installed gmsh for a research project. I specifically want to work on the gmsh module in python. So I started with its first tutorial, but when I trying to run it is giving the "Modulenotfounderror: No module named 'gmsh'. I've been looking for what I might've done wrong for hours but no success.
here's the screenshot of the code from spyder

Why am I getting ModuleNotFoundError: No module named 'dpkt'?

When I run
import dpkt
It gives
ModuleNotFoundError: No module named 'dpkt'
But I already installed dpkt.
install dpkt cmd
Does anyone know how I can fix this?
I am using window10, python3.
I had the same issue today. I found out that when I installing the dpkt module, it was getting installed onto an environment different than the one I was using in pyCharm.
I found the answer to this post very helpful to explain my issue: https://stackoverflow.com/a/52608375/2411380
I fixed my issue by using the terminal inside pyCharm to install dpkt, then it worked.
I also found a suggestion to use all packages installed in conda inside pyCharm: https://stackoverflow.com/a/49097897/2411380

ModuleNotFoundError: No module named pickle for py3.7

I am receiving this error from command prompt: ModuleNotFoundError: No module named 'pickle' running in python 3.7,
I have it setup like this:
import pickle as thisPickle
What can be the reason why I having this import issue, appreciate any help. Thanks.
pickle is a part of the Standard Library and is pre-included in the Python package. There should not be a reason that it does not work. Make sure that no other versions of python exist on your computer. The command prompt may be using outdated versions that still exist. Also, see if other modules install correctly on your machine.

ImportError: No module named 'PyQt4.QtWebKit'

I'm trying to setup Ghost.py and I need PyQt4 for it.
I've downloaded PyQt-x11-gpl-4.11.3 version and used configure-ng.py with Python-3.4.2, of course did make and make install.
Sadly, I'm getting an error ImportError: No module named 'PyQt4.QtWebKit' while trying to from ghost import Ghost.
Can't figure out how do I build QtWebKit.
Thank you for any useful input!

Resources