AI-Pro3 学习之旅

1. 基于tensorflow的RNN文本分类

Q1. 安装tensorflow:

https://blog.csdn.net/Cs_hnu_scw/article/details/79695347

Q2. 安装tensorflow包的时候,遇到如下问题:

在这里插入图片描述
权限问题,被拒绝访问

解决方案:
  1. 打开cmd,右键点击“以管理员身份运行”,即可成功安装
  2. 使用命令pip3 install tensorflow 代替 pip install tensorflow
Q3. 安装好Tensorflow之后,报以下错误:
numpy.core.umath failed to import
解决方案:

在命令行下输入:

pip install -U numpy -i https://pypi.tuna.tsinghua.edu.cn/simple/

原文链接:
https://blog.csdn.net/a19990412/article/details/88127579

Q4:使用sklearn中preprocessing,对文本标签进行数值化处理

在这里插入图片描述
原文:
https://www.cnblogs.com/king-lps/p/7846414.html

2. GAN

Q1:导入 skimage.io模块报错:
ImportError: cannot import name '_validate_lengths'
解决方案一:

numpy版本太高,对numpy进行了重新安装:

pip install numpy==1.15.0

原文:
https://blog.csdn.net/qq_22764813/article/details/86534227
BUT!!!
这个方法好像对我无效,反而还更加报错了:

numpy.core.umath failed to import

上面问题应该也是numpy版本问题,重新安装numpy恢复1.16.4版本

pip install -U numpy -i https://pypi.tuna.tsinghua.edu.cn/simple/

原文:
https://blog.csdn.net/a19990412/article/details/88127579

接下来尝试解决方案二:

解决方案二:

导入skimage的时候报错:cannot import name ‘_validate_lengths’ from ‘numpy.lib.arraypad’
解决方法:找到:Anaconda3/lib/python3.6/site-packages/numpy/lib/arraypad.py 954行,添加下面两个函数保存,重新加载即可消除错误 :
原文:
https://blog.csdn.net/qq_21294373/article/details/88556713

成功解决!!!

Q4:Cannot uninstall ‘’. It is a distutils installed project and thus we cannot accurately…解决办法

解决方案:在anoconda文件夹下删除对应的.egg-info文件

D:\anaconda\Lib\site-packages\ipython-5.1.0-py3.6.egg-info 文件即可
https://blog.csdn.net/qq_37928340/article/details/80393125

猜你喜欢

转载自blog.csdn.net/FannieCream/article/details/91129182