Using jupyter notebook to run the below python code:
import matplotlib.pyplot as plt
from plotTools import *
It gives the below feedback.
ModuleNotFoundError Traceback (most recent call last)
from plotTools import *
ModuleNotFoundError: No module named 'plotTools'
In order to be sure that 'plotTools' is installed and up to date, the status was checked by using:
pip install -U plotTools
This also gives:
Requirement already up-to-date: plotTools in c:\users\mathewa\anaconda3\lib\site-packages (0.2.0)
So, what else needs to be done?
Thanks
Related
I get an error when I import the emoji into my Jupyter notebook.
This is the error I'm getting.
ModuleNotFoundError Traceback (most recent call last)
/var/folders/8v/gry0pxmn7tq64rhkjv504zr00000gn/T/ipykernel_12578/2329533640.py in <module>
2 import pandas as pd
3 import numpy as np
----> 4 import emoji
5 from collections import Counter
6 import matplotlib.pyplot as plt
ModuleNotFoundError: No module named 'emoji'
I am using MacOs. How do I solve this?
Did you install the library?
For the installation process via pip:
pip install emoji --upgrade
or via git:
git clone https://github.com/carpedm20/emoji.git
cd emoji
python setup.py install
That being done, you can import emoji into your code.
For further information you can read the installation process on the documentation here.
When i run a python program, it shows the error message
sam#MSI:~/circuit-training$ python3 -m circuit_training.learning.ppo_reverb_server --root_dir=${ROOT_DIR} --port=${REVERB_PORT}
Traceback (most recent call last):
from circuit_training.learning import ppo_reverb_server_lib
File "/home/sam/circuit-training/circuit_training/learning/ppo_reverb_server_lib.py", line 20, in
import reverb
ModuleNotFoundError: No module named 'reverb'
To solve it, I install the packages by using pip install reverb, and it shows
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: reverb in /home/sam/.local/lib/python3.8/site-packages (2.0.1)
It seems like i already have this package, but when i import reverb, it still saying that ModuleNotFoundError: No module named 'reverb'
Is it because import cannot find the package path?
I am still a beginner in Python.
I use Jupyter Notebook and want to import XlsxWriter, but it doesnt seem to work.
This is what I do in the Notebook which i usually open through the pycharm terminal:
import numpy as np
import pandas as pd
import sys
!{sys.executable} -m pip install --user XlsxWriter
import XlsxWriter
However i get the following error message:
Requirement already satisfied: XlsxWriter in c:\users\rober\appdata\local\programs\python\python310\lib\site-packages (3.0.3)
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
Input In [8], in <cell line: 6>()
3 import sys
4 get_ipython().system('{sys.executable} -m pip install --user XlsxWriter')
----> 6 import XlsxWriter
ModuleNotFoundError: No module named 'XlsxWriter'
Does anyone have an idea what is the problem here?
A simple Script using XlsxWriter in PyCharm works perfectly fine.
you need to install xlsxwriter first
pip install xlsxwriter
ref : https://bobbyhadz.com/blog/python-no-module-named-xlsxwriter
This is a commmon question, but nothing worked for me so far.
I have seen this answer too Python 3 on Mac : ModuleNotFoundError: No module named 'mglearn'
!pip install mglearn
!pip install sklearn
!pip install -U scikit-learn
import mglearn
import sklearn
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-1-fe22f30497b9> in <module>
----> 1 import mglearn
2 import sklearn
ModuleNotFoundError: No module named 'mglearn'
I checked other questions but failed to solve it. I have macOS Catalina 10.15.7
import sys
!{sys.executable} -m pip install mglearn
Try using this. This assures that you are using the pip version associated with the environment.
while installing opencv in did that ln -s command and now numpy module is not working if i try to install numpy it shows this
$ pip install numpy
Requirement already satisfied: numpy in /Users/deepakpatel/miniconda3/lib/python3.6/site-packages (1.15.0)
but when i try to import that module in python programs its not working it shows this
import numpy
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'numpy'
so i need some help with this guys
if you need more info just comment down below