通过Jupyter笔记本安装Tensorflow时出现问题

通过Jupyter笔记本安装Tensorflow时出现问题,tensorflow,Tensorflow,虽然当我在命令提示符下尝试python-m pip install tensorflow时,它安装了packagen,但当我尝试在Jupyter笔记本中导入Keras时,我发现了上述错误。看起来您在Windows上。以管理员身份打开命令提示符,然后键入python-m pip install tensorflow--user。让我知道这是否解决了您的问题。您需要以管理员身份运行它runas python-m pip install tensorflow WARNING: pip is being

虽然当我在命令提示符下尝试python-m pip install tensorflow时,它安装了packagen,但当我尝试在Jupyter笔记本中导入Keras时,我发现了上述错误。

看起来您在Windows上。以管理员身份打开命令提示符,然后键入
python-m pip install tensorflow--user
。让我知道这是否解决了您的问题。

您需要以管理员身份运行它
runas python-m pip install tensorflow
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
ERROR: Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'c:\\programdata\\anaconda3\\lib\\site-packages\\~-mpy\\core\\multiarray.cp37-win_amd64.pyd'
Consider using the `--user` option or check the permissions.