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成功不报错了,运气还蛮好的

相关推荐
Xiu Yan6 天前
Python 数据分析:Pandas DataFrame 零基础入门教程
python·jupyter·pycharm·numpy·pandas
醇氧6 天前
Git 合并冲突与`__pycache__` 的恩怨情仇
python·numpy·fastapi
Xiu Yan7 天前
Python 数据分析:Pandas Series 零基础入门教程
python·jupyter·pycharm·numpy·pandas
lpfasd1239 天前
配置文件格式对比 与 AI Coding 的选择逻辑
python·flask·numpy
jzshmyt9 天前
我用 Python 从零“生成“了一个宇宙,然后让它观察自己(v14)
人工智能·pytorch·python·numpy·matplotlib·空间计算·scipy
搞AI的金鱼10 天前
Numpy
numpy
典典分享指南10 天前
用飞书 Wiki 搭内容作战室:从零搭建团队内容协作中枢
django·flask·numpy·pyqt
梦帮科技12 天前
从提示词到可复现音乐工作流:RNOISE 2.0 的 Prompt Engineering 架构
人工智能·python·mysql·ci/cd·架构·node.js·numpy
飞Link12 天前
【Numpy】 第三部分:矩阵运算与线性代数(计算篇)
python·numpy
WiKiLeaks_successor12 天前
Scipy库里的众数函数不严谨,我把它重构了。
python·scipy