No module named 'bindsnet.network' - python

I am going to use Bindsnet for Spiking Neural Network and I have imported it using
! pip install bindsnet in jupyter notebook.
and My Python's version is 3.6.
when I run:
from bindsnet.network import Network
It returns below error message:
ModuleNotFoundError: No module named 'bindsnet.network'
Can you please let me know how to solve this?

It turned out that using pip install was not successful so I changed the code for installation to :
!pip install bindsnet --ignore-installed
and now I can run from bindsnet.network import Network with no error.

Related

How do I install skgstat?

I am trying to install skgstat so that I can do a cross-variogram on the Iris dataset. I have ran pip install scikit-gstat in the command prompt and it says that it was installed successfully. Although, when I try to run from skgstat import Variogram in Jupyter Notebook I get a module not found error.
Is there something I am missing here?
After command "import", the name of the library should be abbreviated: "skgstat":
import skgstat

How to install the module pytorch_lightning.metrics in Raspberry pi3

I am trying to execute a python file which has pytorch with lightning and torchvision modules. But after I downloaded and successfully installed whl file of pytorch in pi3 I am getting same error again and again.
The error is
ModuleNotFoundError: No module named 'pytorch_lightning.metrics'
Help would be highly appreciated as I am stuck for more than 3 days.
I have installed the modules using pip.
I found maybe the 'pytorch_lightning.metrics' are updated to 'torchmetrics' package, try changing 'import pytorch_lightning.metrics' to 'import torchmetrics'
Use instead:
from torchmetrics.functional import accuracy
Try installing this version
!pip install pytorch-lightning==1.2.2
I solved it with the following installation:
pip install -q test_tube transformers pytorch-nlp pytorch-lightning==0.9.0
Worth trying.

cannot import name 'parabolic' from 'parabolic'

I am using Spyder with anaconda, firstly I tried to install it via anaconda but this didn't work so instead installed it via pip using:
pip install parabolic
however now when I try and call parabolic the following error occurs:
ImportError: cannot import name 'parabolic' from 'parabolic' (/Users/harry/opt/anaconda3/lib/python3.8/site-packages/parabolic/__init__.py)
does anyone have any ideas as to why this might be. For context I am trying to run the following code:
https://gist.github.com/jgomezdans/434642/8b738ff4bff7f549f6255f5da3668f910b7352a2

I am installing the Detecto library in anaconda environment but it fails while importing

As a source, I apply the guide here:
Object Detection
I applied the pip3 install detecto command as shown here and it was successfully installed. But when I run python and try to run the detecto command, I get an error. How can I solve it?
Operation:
I don't think you can import detecto directly. Use from detecto import <lib> . Try from detecto.core import Model and see if it works in your terminal

Importing universe

I am trying to use OpenAI and I got a import error about universe on Jupyter notebook :
import gym
import universe
No module named 'universe'
When it comes to working on terminal, it returns this error
No module named 'twisted.internet'
Then I also had install twisted with pip, I got this next error :
No module named 'ujson'
and after install ujson, I got a error No module named 'go_vncdriver' again.
I think that I will get other error again.
So which way to install is most convenient ?
Could I install all packages at once ?
préferably, using pip install.
I am using OSX and python3.6.
Try installing,
pip install go_vncdriver
And check again.

Categories