I was using scikit-image 0.18 version. To use seam_carve(), I have to downgrade it to 0.14.2 version.
Here was what I did:
- Firstly remove existing newer version 0.18
conda remove scikit-image
The following packages will be REMOVED:
scikit-image-0.18.1-py38hf11a4ad_0
Proceed ([y]/n)? y
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
- after removing previous newer version, then I re-install scikit-image 0.14.2
pip install scikit-image==0.14.2
Requirement already satisfied: decorator>=4.3.0 in c:\users\test\miniconda3\envs\skimage14\lib\site-packages (from networkx>=1.8->scikit-image==0.14.2) (4.4.2)
The above said I have already have 0.14.2 version. The reason is that: before I removed newer version before, I was using
pip install --upgrade scikit-image==0.14.2
It didn't work, that is why I started to use step 1 to uninstall it.
- then I tried to test which version is installed now
>>> import skimage
>>> print(skimage.__version__)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'skimage' has no attribute '__version__'
skimage can be imported, but why I cannot check its version by using skimage.version
Thanks for your help