locked
I cannot install Tensorflow RRS feed

  • Question

  • 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.

    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).

    To install Tensorflow, I followed the instructions on Tensorflow org webpage (I cannot post links)

    I downloaded and installed CUDA and cuDNN

    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?).

    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

    I get this error:

    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'

    I don't know what to do.

    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?

    There is an updated guide on how to use Python+Tensorflow on Windows 7 64?

    I cannot use the projects only supported on Windows 10.


    Thursday, February 8, 2018 12:51 AM

All replies

  • Hi wiburayi,

    Welcome to the MSDN forum.

    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.

    Meanwhile, I found the following information and hope that will helpful for your issue. To be honest, I am not familiar with Tensorflow and Python, sorry for this inconvenience.

    Windows support

    Python - PIP install trouble shooting - PermissionError: [WinError 5] Access is denied

    Best regards,

    Sara


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Thursday, February 8, 2018 5:34 AM