I cannot install tensorflow in pycharm on windows 10, though I have tried many different things:
我无法在 Windows 10 上的 pycharm 中安装 tensorflow,尽管我尝试了很多不同的东西:
- went to settings > project interpreter and tried clicking the green plus button to install it, gave me the error: non-zero exit code (1) and told me to try installing via pip in the command line, which was successful, but I can't figure out how to make Pycharm use it when it's installed there
转到设置>项目解释器并尝试单击绿色加号按钮进行安装,给了我错误:非零退出代码(1)并告诉我尝试通过命令行中的pip安装,这是成功的,但我可以不知道如何让 Pycharm 在安装时使用它
- tried changing to a Conda environment, which still would not allow me to run tensorflow since when I input into the python command line: pip.main(['install', 'tensorflow']) it gave me another error and told me to update pip
尝试更改为 Conda 环境,该环境仍然不允许我运行 tensorflow,因为当我输入 python 命令行时: pip.main(['install', 'tensorflow']) 它给了我另一个错误并告诉我更新点子
- updated pip then tried step 2 again, but now that I have pip 10.0.1, I get the error 'pip has no attribute main'.
更新 pip 然后再次尝试第 2 步,但现在我有 pip 10.0.1,我收到错误“pip 没有属性 main”。 I tried reverted pip to 9.0.3 in the command line, but this won't change the version used in pycharm, which makes no sense to me.
我尝试在命令行中将 pip 恢复为 9.0.3,但这不会改变 pycharm 中使用的版本,这对我来说没有意义。 I reinstalled anaconda, as well as pip, and deleted and made a new project and yet it still says that it is using pip 10.0.1 which makes no sense to me
我重新安装了 anaconda 和 pip,并删除并创建了一个新项目,但它仍然说它正在使用 pip 10.0.1,这对我来说毫无意义
So in summary, I still can't install tensorflow, and I now have the wrong version of pip being used in Pycharm.
所以总而言之,我仍然无法安装tensorflow,并且我现在在Pycharm中使用了错误版本的pip。 I realize that there are many other posts about this issue but I'm pretty sure I've been to all of them and either didn't get an applicable answer or an answer that I understand.
我意识到还有很多其他关于这个问题的帖子,但我很确定我去过所有这些帖子,要么没有得到适用的答案,要么没有得到我理解的答案。