我已经开始学习Tensorflow了.我正在使用Pycharm,我的环境是Ubuntu 16.04.我正在按照教程.我交叉检查了一下.它是最新的.我不知道这个错误的原因.
来自numpy.lib.arraypad import _validate_lengths
ImportError:无法导入名称'_validate_lengths'
需要提示才能解决此错误.谢谢.
import tensorflow as tf
from skimage import transform
from skimage import data
import matplotlib.pyplot as plt
import os
import numpy as np
from skimage.color import rgb2gray
import random
#listdir: This method returns a list containing the names of the entries in the directory given by path.
# Return True if path is an existing directory
def load_data(data_dir):
# Get all subdirectories of data_dir. Each represents a label.
directories = [d for …Run Code Online (Sandbox Code Playgroud)