ImportError: cannot import name '_validate_lengths'

后端 未结 7 1891
自闭症患者
自闭症患者 2021-01-01 08:13

I have started learning Tensorflow. I am using Pycharm and my environment is Ubuntu 16.04. I am following the tutorial. I cross check the nump. It is up-to-date. I don\'t kn

相关标签:
7条回答
  • 2021-01-01 08:47

    pip install scikit-image==0.14.2 && pip install numpy==1.15

    Ref: Here

    0 讨论(0)
  • 2021-01-01 08:49

    I updated my skimage package.

    pip install --upgrade scikit-image
    

    And the problem was solved. It's a problem of version of Skimage, which is solved in 0.14.2. PLus, this version is quite stable.

        Installing collected packages: dask, scikit-image
      Found existing installation: dask 0.19.1
        Uninstalling dask-0.19.1:
          Successfully uninstalled dask-0.19.1
      Found existing installation: scikit-image 0.13.0
        Uninstalling scikit-image-0.13.0:
          Successfully uninstalled scikit-image-0.13.0
    Successfully installed dask-1.0.0 scikit-image-0.14.2
    
    0 讨论(0)
  • 2021-01-01 08:50

    scikit-image 0.14.2 worked with numpy 1.16.3. I installed numpy first and then installed scikit image

    0 讨论(0)
  • 2021-01-01 08:53

    For me the magic dependency was:

    pip install scikit-image==0.13.1
    pip install numpy==1.15
    

    For python 3.5 and python 3.6

    0 讨论(0)
  • 2021-01-01 08:57

    I had the same error, I did the following steps:

    uninstall scikit-image

    pip uninstall scikit-image
    

    or

    conda uninstall scikit-image
    

    and then

    pip install scikit-image
    

    or

    conda install -c conda-forge scikit-image
    
    0 讨论(0)
  • 2021-01-01 08:58

    Seems I also had the same issue due to two versions installed sametime.

    I solved it by uninstalling scikit-image multiple times till none was left.

    pip uninstall scikit-image
    

    Then Reinstall:

    pip uninstall scikit-image
    

    It worked for me.

    0 讨论(0)
提交回复
热议问题