我无法安装Tensorflow [英] I cannot install Tensorflow
问题描述
我有VS社区2017,在Windows 7 64位上运行(带有i7 920和支持CUDA的卡),我想安装Tensorflow和Python。
I have VS Community 2017, running on Windows 7 64 bit, (with an i7 920 and a CUDA capable card) an I want to install Tensorflow, and Python.
随着VS 2017的安装,它安装了Anaconda3,它让我启动Pyton项目(但我无法创建一个"机器学习"项目,因为显然它只支持在Windows 10上,所以我需要创建一个空白Pyton项目)。
With the installation of VS 2017, it was installed Anaconda3, and it let me start Pyton projects (but I cannot create a "Machine Learning" project, because apparently it is only supported on Windows 10, so I need to create a blank Pyton project).
要安装Tensorflow,我按照Tensorflow org网页上的说明操作(我无法发布链接)
To install Tensorflow, I followed the instructions on Tensorflow org webpage (I cannot post links)
我下载并安装了CUDA和cuDNN
I downloaded and installed CUDA and cuDNN
我安装了Python 3.6。 2,但我不确定它是否是正确的(如果VS已经允许创建Python项目,我是否需要安装它?)。
I installed Python 3.6.2, but I'm not sure if it is the right thing (Do I need to install it if VS already allows creating Python projects?).
我在Anaconda3终端上运行了这个命令,显然它工作正常
I ran this command, on the Anaconda3 terminal, and apparently it worked fine
Conda create -n tensorflow pip python=3.5
C:> activate tensorflow
但是当我运行此命令时:
but when I run this command:
(tensorflow)C:> pip install --ignore-installed --upgrade tensorflow-gpu
我收到此错误:
Installing collected packages: six, html5lib, markdown, numpy, werkzeug, setupto
ols, protobuf, bleach, wheel, tensorflow-tensorboard, absl-py, tensorflow-gpu
Exception:
Traceback (most recent call last):
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Anaconda3_64\lib\s
ite-packages\pip\basecommand.py", line 215, in main
status = self.run(options, args)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Anaconda3_64\lib\s
ite-packages\pip\commands\install.py", line 342, in run
prefix=options.prefix_path,
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Anaconda3_64\lib\s
ite-packages\pip\req\req_set.py", line 784, in install
**kwargs
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Anaconda3_64\lib\s
ite-packages\pip\req\req_install.py", line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Anaconda3_64\lib\s
ite-packages\pip\req\req_install.py", line 1064, in move_wheel_files
isolated=self.isolated,
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Anaconda3_64\lib\s
ite-packages\pip\wheel.py", line 345, in move_wheel_files
clobber(source, lib_dir, True)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Anaconda3_64\lib\s
ite-packages\pip\wheel.py", line 323, in clobber
shutil.copyfile(srcfile, destfile)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Anaconda3_64\lib\s
hutil.py", line 121, in copyfile
with open(dst, 'wb') as fdst:
PermissionError: [Errno 13] Permission denied: 'C:\\Program Files (x86)\\Microso
ft Visual Studio\\Shared\\Anaconda3_64\\Lib\\site-packages\\six.py'
我不知道该怎么做。
我在互联网上发现了很多矛盾的信息。一些建议安装过时的Python版本,他们说新版本不起作用。
I found many contradictory information on Internet. Some advice to install outdated versions of Python, and they say that newer don't work.
请问,请给我一个线索?
May you please, give me a clue?
有关如何在Windows 7 64上使用Python + Tensorflow的更新指南?
There is an updated guide on how to use Python+Tensorflow on Windows 7 64?
推荐答案
嗨wiburayi,
欢迎来到MSDN论坛。
请参阅您的描述,您的问题与Tensorflow有关。我们的
论坛将讨论Visual Studio WPF / SL Designer,Visual Studio Guidance Automation Toolkit ,开发人员文档和帮助系统以及Visual Studio编辑器,请重定向到
Tensorflow社区页面:
https: //www.tensorflow.org/community/welcome 并询问或回答有关TensorFlow的技术问题,请使用 堆栈
溢出 。例如,询问或搜索Stack Overflow,了解您在安装过程中遇到的特定错误消息。
Refer to your description, your issue is about the Tensorflow. Our forum is to discuss the Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor, please redirect to the Tensorflow community page: https://www.tensorflow.org/community/welcome and ask or answer technical questions about TensorFlow, use Stack Overflow. For example, ask or search Stack Overflow about a particular error message you encountered during installation.
与此同时,我发现了以下信息并希望这对您的问题有所帮助。老实说,我对Tensorflow和Python并不熟悉,对此给您带来的不便很抱歉。
Python - PIP安装故障排除 - PermissionError:
[WinError 5]访问被拒绝
祝你好运,
Sara
这篇关于我无法安装Tensorflow的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!