简体   繁体   English

Tensorflow 的安装版本与我在 Jupyter 上看到的不同

[英]Installed Version of Tensorflow different from what I see on Jupyter

I recently installed an upgraded version of TensorFlow through the terminal by executing the command: "pip install --upgrade tensorFlow --user".我最近通过终端安装了升级版的TensorFlow,执行命令:“pip install --upgrade tensorFlow --user”。

However, I see in my terminal: "Requirement already satisfied: tensorflow in c:\users\appdata\local\programs\python\python38\lib\site-packages (2.9.1)" , but when I check the version of tensorflow in my Jupyter, I get that the tensorflow version 2.4.0.但是,我在终端中看到:“要求已经满足:tensorflow in c:\users\appdata\local\programs\python\python38\lib\site-packages (2.9.1)”,但是当我检查 tensorflow 的版本时在我的 Jupyter 中,我得到了 tensorflow 版本 2.4.0。

Any suggestions on how to get the updated version of Tensorflow in Jupyter?有关如何在 Jupyter 中获取更新版本的 Tensorflow 的任何建议?

Edit: I also have Python 3.8.7编辑:我也有 Python 3.8.7

Jupyter Image Jupyter 图像

Terminal image终端图片

You might see the different versions in both interfaces because TensorFlow is getting installed at a different place.您可能会在两个界面中看到不同的版本,因为TensorFlow安装在不同的位置。

If you want to install an upgraded TensorFlow version on your current working jupyter notebook, then:如果您想在当前工作的 jupyter notebook 上安装升级的 TensorFlow 版本,那么:

  1. You may need to open the anaconda command prompt in the same environment where you are using jupyter notebook and install the tensorflow using same code and check the TensorFlow version.您可能需要在使用 jupyter notebook 的同一环境中打开anaconda command prompt ,并使用相同的代码安装 tensorflow 并检查 TensorFlow 版本。

OR或者

  1. You can also install it by running the same code in the same jupyter notebook cell.您也可以通过在同一个jupyter notebook单元中运行相同的代码来安装它。

!pip install --upgrade tensorFlow --user !pip install --upgrade tensorFlow --user

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Jupyter环境错误,加载与安装不同的tensorflow版本 - Jupyter environment error, loading different tensorflow version than installed 这个 tensorflow 安装有什么问题? 我已经安装了 tensorflow 的 gpu 版本 - What is wrong in this tensorflow installation? I have installed gpu version of tensorflow 我可以让人们在使用不同CUDA依赖项安装的版本之上使用其他Tensorflow-gpu版本吗? - Can I let people use a different Tensorflow-gpu version above what they had installed with different CUDA dependencies? Jupyter Notebook 版本 5.7.5 已安装但出现错误 - Jupyter Notebook version 5.7.5 has been installed but I get error 为什么我在笔记本中使用的 tensorflow 版本与我在环境中使用的版本不同? - Why is the tensorflow version I use in my notebook different from the version I use in my environment? 如何查看 pipenv 安装的软件包的当前版本? - How can I see the current version of packages installed by pipenv? Jupyter notebook python 版本与环境 python 版本不同 - Jupyter notebook python version different from environment python version Jupyter Notebook 看不到已安装的库 - Jupyter Notebook doesn't see the installed libraries 我已经在Windows中安装了TensorFlow,但是当我尝试将其导入Jupyter Notebook时出现错误 - I have installed TensorFlow in my Windows but I get an Error when I try to import it in my Jupyter Notebook 装有旧版GPU的Tensorflow - Tensorflow with an older GPU version installed
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM