Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't import package
#1
I'm trying to follow a tutorial for Image comparison.
https://www.pyimagesearch.com/2014/09/15...wo-images/
But as soon as i try
from skimage.measure import structural_similarity as ssim
it throws an exception:
Quote:Traceback (most recent call last):
File "<pyshell#10>", line 1, in <module>
from skimage.measure import structural_similarity as ssim
ImportError: cannot import name 'structural_similarity' from 'skimage.measure' (C:\Users\Thomas\AppData\Local\Programs\Python\Python39\lib\site-packages\skimage\measure\__init__.py)

I have imported scikit-image with
Quote:pip install scikit-image
and it everything installed without problems.
I think it propably has to do with the different versions but I don't know how to fix it.
I hope someone can help me.
Reply


Messages In This Thread
Can't import package - by hubenhau - Jan-15-2021, 05:59 PM
RE: Can't import package - by buran - Jan-15-2021, 06:23 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to import sklearn after installing any package ilango 0 1,160 Oct-25-2021, 07:03 AM
Last Post: ilango
  import scalalib package doesn't work manu_brighter 2 2,840 Apr-17-2020, 06:36 PM
Last Post: snippsat
  Importing module from a package results in import error goghvv 2 2,340 Mar-27-2020, 07:13 PM
Last Post: goghvv
  Import all items from all modules from package DD169 3 2,053 Jan-25-2020, 12:33 PM
Last Post: buran
  package import issues groovydingo 4 3,493 Oct-03-2018, 11:26 AM
Last Post: groovydingo
  ValueError: Attempted relative import in non-package JoeB 1 11,821 Mar-08-2018, 11:01 AM
Last Post: Gribouillis
  I can't import own package of file from file. harun2525 4 3,848 Jun-07-2017, 06:03 PM
Last Post: nilamo
  PostgreSQL- import package elhetch 2 4,706 Jun-07-2017, 02:07 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020