使用python3.6在Windows 10中安装TensorFlow时出错

时间:2018-07-21 00:18:54

标签: python python-3.x tensorflow pip

我尝试使用pip3命令在Windows中安装tensorflow,但每次都会弹出此错误消息。

例外: 追溯(最近一次通话):

File "c:\users\harsh bharath\appdata\local\programs\python\python3\lib\site-packages\pip\basecommand.py", line 215, in main status = self.run(options,args)

File "c:\users\harsh bharath\appdata\local\programs\python\python36\lib\site-packages\pip\commands\install.py", line 317, in run
    prefix=options.prefix_path,

File "c:\users\harsh bharath\appdata\local\programs\python\python36\lib\site-packages\pip\req\req_set.py", line 742, in install
    **kwargs

File "c:\users\harsh bharath\appdata\local\programs\python\python36\lib\site-packages\pip\req\req_install.py", line 831, in install
    self.move_wheel_files(self.source_dir, root=root, prefix=prefix)

File "c:\users\harsh bharath\appdata\local\programs\python\python36\lib\site-packages\pip\req\req_install.py", line 1032, in move_wheel_files
    isolated=self.isolated,

File "c:\users\harsh bharath\appdata\local\programs\python\python36\lib\site-packages\pip\wheel.py", line 479, in move_wheel_files
    generated.extend(maker.make(spec))

File "c:\users\harsh bharath\appdata\local\programs\python\python36\lib\site-packages\pip\_vendor\distlib\scripts.py", line 372, in make
    self._make_script(entry, filenames, options=options)

File "c:\users\harsh bharath\appdata\local\programs\python\python36\lib\site-packages\pip\_vendor\distlib\scripts.py", line 276, in _make_script
    self._write_script(scriptnames, shebang, script, filenames, ext)

File "c:\users\harsh bharath\appdata\local\programs\python\python36\lib\site-packages\pip\_vendor\distlib\scripts.py", line 212, in _write_script
    launcher = self._get_launcher('t')

File "c:\users\harsh bharath\appdata\local\programs\python\python36\lib\site-packages\pip\_vendor\distlib\scripts.py", line 351, in _get_launcher
    result = finder(distlib_package).find(name).bytes

File "c:\users\harsh bharath\appdata\local\programs\python\python36\lib\site-packages\pip\_vendor\distlib\resources.py", line 324, in finder
    raise DistlibException('Unable to locate finder for %r' % package)
pip._vendor.distlib.DistlibException: Unable to locate finder for 'pip._vendor.distlib'

帮我解决这个问题。

0 个答案:

没有答案