How to fix ModuleNotFoundError: No module named 'nest' when importing nest in Python?
NickName:Arthu83 Ask DateTime:2019-06-18T02:50:58

How to fix ModuleNotFoundError: No module named 'nest' when importing nest in Python?

I've installed pyNN and nest but I can't import it. When I run it in the terminal it works, and the program starts. However, if I try to import inside python:

cd ~
python
import nest

It raises an error

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/anaconda3/lib/python3.7/site- 
packages/pyNN/nest/__init__.py", line 16, in <module>
    import nest
ModuleNotFoundError: No module named 'nest'

How can I fix it?

Edit: I installed pyNN and nest via homebrew (on macOS Mojave).

Copyright Notice:Content Author:「Arthu83」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/56637228/how-to-fix-modulenotfounderror-no-module-named-nest-when-importing-nest-in-py

More about “How to fix ModuleNotFoundError: No module named 'nest' when importing nest in Python?” related questions

How to fix ModuleNotFoundError : No module named

I am using pytest framework (python /pycharm). when I run the tests directly by clicking on the folder -right click and select run pytest in abc - it works fine BUT when I am trying to run it via

Show Detail

ModuleNotFoundError: No module named 'basicblock'

I have been trying to fix this error for so long. Does anyone know how to fix No module named &quot;basicblock&quot;? File &quot;C:\Users\Admin\Downloads\deob.py&quot;, line 6, in &lt;module&gt; ...

Show Detail

ModuleNotFoundError: no module named src

This is the folder structure of my project in python (version 3.9.13): src modules __init__.py fileA.py main.py tests __init__.py test_main.py test_fileA.py...

Show Detail

How to fix "ModuleNotFoundError: No module named '__builtin__' " in pycharm

How to fix the error: ModuleNotFoundError: No module named '__builtin__' in Pycharm while importing all identifiers in the dir() function? import __builtin__ print(dir(__builtin__))

Show Detail

Error importing a file: ModuleNotFoundError: No module named

I know there are a lot of questions asking the same I'm now asking, but I've tried most of their answers and they doesn't fix my problem. I have a file named fileA.py where I need to call and import

Show Detail

No module named 'tensorflow.keras' ModuleNotFoundError:

My system information : Windows version : 11 Python version : 3.10.7 Tensorflow : 2.11.0 pip : 22.3.1 I have checked the previous questions which are similar to mine but they...

Show Detail

How to fix following error on windows 10 get modulenotfounderror no module named slugify?

I have installed pip3 python-slugify and pip3 list does show python-slugify 5.0.2; path on installation is added to Environment variable PATH but despite of it when try to execute: from slugify imp...

Show Detail

ModuleNotFoundError: No module named: openCV

I have installed opencv for example, and when importing in sublimetext or in a terminal I jump "ModuleNotFoundError: No module named". If I do it from the python idle, it does not

Show Detail

How to fix "No module named RPi" ModuleNotFoundError?

from tkinter import * import RPi.GPIO as GPIO When i try to run it this is the response I get: File &quot;C:/Users/jb/AppData/Local/Programs/Python/Python310/GUI Automationmfana.py&quot;, line 6, ...

Show Detail

ModuleNotFoundError: no module named Python Error

import numpy as np from numpy.random import default_rng import matplotlib.pyplot as plt import line from python import display ---------------------------------------------------------------------...

Show Detail