"ModuleNotFoundError Traceback (most recent call last)
Cell In[3], line 4
2 import numpy as np
3 import matplotlib.pyplot as plt
----> 4 from lab_utils_uni import plt_house_x, plt_contour_wgrad, plt_divergence, plt_gradients
ModuleNotFoundError: No module named 'lab_utils_uni
But, when I try to Install “lab_utils_uni” module I got following error
“ERROR: Could not find a version that satisfies the requirement lab_utils_uni (from versions: none)
ERROR: No matching distribution found for lab_utils_uni”
I also updated pip version. But there is also same error on command prompt
plz guide me to solve above problems
I want to practice the code of lab interface in my Jupyter for my self…
Is there need to use module “lab_utils_uni”?
with out “lab_utils_uni”,How can I use plt_gradients() contour and other?
How can I use “lab_utils_uni” in my Jupyter notebook?
as there also an error has been occurred
I copied the code from lab and paste it in my Jupyter notebook.
When I execute the code I got the error “Plt_gradient is not defined”
As Plt_gradient is the part of “lab_utils_uni”
When I tried to Install the “lab_utils_uni” with the help of pip on CMD I got the error ,which I discussed with you in my post…
In short, “lab_utils_uni” is not installing with the help of pip…
How I can Install or Import “lab_utils_uni”
Open the lab from Coursera again, follow the steps in method 2 in this link. Then you will be able to download the lab and all public files provided by the course, including the lab_utils_uni.py.
Next time, you do not need to copy and paste the code into your local jupyter notebook. Instead, follow the above steps to download the whole file structure. The structure makes sure the correct relative locations between files.
Lastly, I recommend you to run all labs on Cousera. Many learners have their own reasons of running the labs in their own environment, but the thing is, the labs are designed to run on Cousera, so if something is not running in your local environment and you do not know how to fix it, you might need to do the labs back on Cousera.
You can’t pip install that script file. You can only pip install package that’s publicly available on pip, and you cannot pip install that script file because it is not a publicly available package. To get that script file, you need to follow the steps I shared with you in my last reply.
There is no official way for how to practice Cousera lab in your local environment, so I am afraid that it is on you to figure it out.
In Future for Project
How will I use lab_utils_uni and it’s related function or there will be no need?
Or after installing these all files can I used these in my local Jupyter notebook
and how?
Plz give detail more specifically