[英]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
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 版本,那么:
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.anaconda command prompt
,并使用相同的代码安装 tensorflow 并检查 TensorFlow 版本。 OR或者
jupyter notebook
cell.jupyter notebook
单元中运行相同的代码来安装它。!pip install --upgrade tensorFlow --user
!pip install --upgrade tensorFlow --user
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.