简体   繁体   English

使用 Nvidia GPU 在 Windows 10 中设置 TensorFlow 环境

[英]TensorFlow environment Setup in Windows 10 with Nvidia GPU

I want to implement this example.我想实现这个例子。 And thus I need to install python along with some libraries including Scikit-Learn, Numpy, Scipy, matplotlib.pyplot, Pandas, Keras, TensorFlow on my Windows 10 machine.因此,我需要在我的 Windows 10 机器上安装 python 以及一些库,包括Scikit-Learn、Numpy、Scipy、matplotlib.pyplot、Pandas、Keras、TensorFlow

Currently, I can not use my GPU with TensorFlow.目前,我无法将 GPU 与 TensorFlow 一起使用。 I tried installing CUDA.我尝试安装 CUDA。 But still having difficulties setting path variables for python.但是仍然难以为 python 设置路径变量。 I also tried installing Tensorflow with Anaconda.我还尝试使用 Anaconda 安装 Tensorflow。 But that didn't help.但这没有帮助。

May I get a suggestion on installing python and its machine-learning packages on Windows with Nvidia GPU support in a fashion that doesn't have dependency issues?我可以得到一个关于在 Windows 上安装 python 及其机器学习包的建议,并且支持 Nvidia GPU,没有依赖性问题吗?

Install python 3.6.安装 python 3.6。 Then use pip to install those packages.然后使用 pip 安装这些包。 pip should be bundled with your Python install. pip 应该与您的 Python 安装捆绑在一起。

Anaconda has caused me many issues on windows personally. Anaconda 给我个人带来了很多 Windows 问题。 Try to avoid it if possible in my opinion.在我看来,如果可能的话,尽量避免它。

I also install tensorflow recently, I find it's very smoothly.我最近也安装了tensorflow,我觉得很顺利。 As you have installed vs2015, you can then install cuda.安装好vs2015后,就可以安装cuda了。 When you install the latest cuda, it will config the environment path and config for vs2015 automatically.当你安装最新的 cuda 时,它会自动为 vs2015 配置环境路径和配置。 After this, install python3.5, then use pip install tensorflow.之后,安装python3.5,然后使用pip install tensorflow。 Then you can run the tesorflow demo, when you encounter path issue, you just add it to the path, I remeber there are very file path issue.然后你可以运行tesorflow demo,当你遇到路径问题时,你只需将它添加到路径中,我记得有很多文件路径问题。 And when you use python, sometime you'll encounter module not find.而当你使用python时,有时你会遇到module not find。 Then just install these modules with pip.然后只需使用 pip 安装这些模块。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM