I created a virtual environment and installed scikitimage but when i use jupyter notebook it says no modules named skimage.
I installed scikitimage without using virtual enviroment but still jupyter can't find it.
from skimage import color, io
def load(image_path):
out = image_path
out = skimage.io.imread(image_path)
pass
image1 = load(image1_path)
NameError Traceback (most recent call last)
<ipython-input-3-08b9c4b0aed1> in <module>
----> 1 image1 = load(image1_path)
2 image2 = load(image2_path)
3
4 display(image1)
5 display(image2)
~\Suleman\imageOperations.py in load(image_path)
21 ### YOUR CODE HERE
22 # Use skimage io.imread
---> 23 out = skimage.io.imread(image_path)
24 pass
25 ### END YOUR CODE
NameError: name 'skimage' is not defined
first of all you need to uninstall scikit-image
.Then
install it via shell/command prompt:
pip install scikit-image
If you are running Anaconda or miniconda, open anaconda prompt then run this
conda install -c conda-forge scikit-image
if these steps aren't working upgrade your pip using
python -m pip install –upgrade pip
then follow again from step 1 to 3 that I have mentioned
If these aren't work uninstall scikit-image
from both pip
and conda
then try this in anaconda prompt
conda config --add channels conda-forge
conda install scikit-image
conda search scikit-image --channel conda-forge
pip install scikit-image
in the CMD windowpy
in the CMD windowimport skimage
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.