tensorflow1.3以上+ numpy+scipy+gensim可行搭配版本

今天也菜的很有水平:)


最近 在做NE的学习,做代码复现的时候看到了清华大学的OpenNe项目,然后调环境,这里给出我配成功的搭配。

复制代码
numpy==1.14.0
networkx==2.0
scipy==1.0.0
tensorflow==1.5.0
gensim==3.1.0
scikit-learn==0.19.0
1.遇到的问题attributeError: module 'tensorflow.python.ops.nn' has no attribute 'leaky_relu'

可以通过把tensorflow1.3升级到1.5.0解决

2. 遇到问题from future import annotations

^
SyntaxError: future feature annotations is not defined

可以通过降低smart_open版本解决,我随便试了一个smart_open1.10.0成功不报错了,运气还蛮好的

相关推荐
咚咚王者17 小时前
人工智能之数据分析 numpy:第七章 数组迭代排序筛选
人工智能·数据分析·numpy
weixin_468466851 天前
模拟退火算法求解聚类问题python代码示例
python·numpy·聚类·模拟退火算法·fcm·智能优化·模糊聚类
咚咚王者1 天前
人工智能之数据分析 numpy:第三章 Ndarray 对象和数组创建
人工智能·数据分析·numpy
醒过来摸鱼2 天前
9.12 sinc插值
python·线性代数·算法·numpy
小兔崽子去哪了2 天前
Numpy、Panads
python·numpy·pandas
醒过来摸鱼3 天前
9.8 贝塞尔曲线
线性代数·算法·numpy
咚咚王者3 天前
人工智能之数据分析 numpy:第五章 索引与切片
人工智能·数据分析·numpy
阿巴~阿巴~3 天前
NumPy数值分析:从基础到高效运算
人工智能·python·numpy
咚咚王者4 天前
人工智能之数据分析 numpy:第一章 学习链路
人工智能·数据分析·numpy