通过Jupyter Notebook安装Tensorflow时出现问题

时间:2020-09-23 05:46:23

标签: 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.

尽管当我在命令提示符中尝试python -m pip install tensorflow时它安装了packagen,但是当我尝试在Jupyter笔记本中导入Keras时,却遇到了错误。

1 个答案:

答案 0 :(得分:0)

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