对聊天机器人项目还不是很满意,所以重新打开项目。遇到如下问题:

sess = tf.Session( )
找不到Session方法。

原来,由于打开了另一个项目,环境已经变了,tensorflow已经变成了2.2版本。

只得重新安装。

决定在新环境安装。python版本为3.8。

错误如下:

(venv) E:\nlp\chatbot\project\src>pip install tensorflow==1.15

Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
Collecting tensorflow==1.15
ERROR: Could not find a version that satisfies the
requirement tensorflow==1.15 (from versions: 2.2.0rc1,
2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0)
ERROR: No matching distribution found for tensorflow==1.15

解决方案1
python -m pip install --upgrade pip
pip install tensorflow==1.15
还是无法解决

最终还是转到python 3.7版本,才能安装tensorflow1.14

相关文章:

  • 2021-10-04
  • 2021-04-18
  • 2021-09-09
  • 2021-04-23
  • 2022-01-04
  • 2021-12-22
  • 2022-12-23
  • 2021-10-29
猜你喜欢
  • 2021-10-15
  • 2021-09-09
  • 2022-02-21
  • 2022-12-23
  • 2022-12-23
  • 2021-07-11
  • 2021-04-21
相关资源
相似解决方案