请问如何在jupyter notebook内输出 jupyter notebook 和tensorflow 的版本信息。
第一个问题不知道相关的代码
第二个问题 我已经安装了tensorflow ,也配置在一个环境里了,可是jupyter notebook还是找不到
请问如何在jupyter notebook内输出 jupyter notebook 和tensorflow 的版本信息。
第一个问题不知道相关的代码
第二个问题 我已经安装了tensorflow ,也配置在一个环境里了,可是jupyter notebook还是找不到
第一个问题,在jupyter notebook内输出 jupyter notebook 版本信息,在单元格输入并运行:!jupyter --version
第二个问题,可能电脑中有多个python版本,在jupyter notebook中运行的python中的site-packages没有tensorfolw,所以无法找到,你可以输入:print(sys.version) ,print(sys.executable)两行语句查看jupyter当前运行python版本信息及执行路径。或者切换到有tensorflow的python环境中或者在对应的运行环境下重新安装tensorflow。
如有帮助望采纳。