@font-face{ font-family:"Times New Roman"; } @font-face{ font-family:"宋体"; } @font-face{ font-family:"Calibri"; } @font-face{ font-family:"SimSun"; } p.MsoNormal{ mso-style-name:Normal; mso-style-parent:""; margin:0pt; margin-bottom:.0001pt; font-family:Calibri; mso-fareast-font-family:SimSun; mso-bidi-font-family:‘Times New Roman‘; } span.msoIns{ mso-style-type:export-only; mso-style-name:""; text-decoration:underline; text-underline:single; color:blue; } span.msoDel{ mso-style-type:export-only; mso-style-name:""; text-decoration:line-through; color:red; } @page{mso-page-border-surround-header:no; mso-page-border-surround-footer:no;}@page Section0{ margin-top:72.0000pt; margin-bottom:72.0000pt; margin-left:90.0000pt; margin-right:90.0000pt; size:595.3000pt 841.9000pt; layout-grid:18.0000pt; mso-header-margin:36.0000pt; mso-footer-margin:36.0000pt; } div.Section0{page:Section0;}
最近出现一个问题,在自己conda创建的虚拟环境pytorch中使
sudo pip install tensorflow-gpu
发现在导入tensorflow的时候提示No model,说明在pytorch环境下并没有安装成功。
那tensorflow安装到哪里了呢?
我们查看一下pip对应的安装路径(pip -V)
发现原来是在虚拟环境中pip和sudo pip对应的安装路径不一样导致的
Pip对应的是conda的环境
Sudo pip 对应的是系统的python2的环境
原文地址:https://www.cnblogs.com/tang-xiao/p/10909162.html