PC/윈도우

Way of how to set Tensorflow Developement Environment

aaa23 2022. 8. 12. 19:55
반응형

Set up Tensorflow Developement Environment

 

Cusolver64 Error!!

 

The versions used in this post are certain to be compatible.

 

If Cuda Tool Kit version is not compatible with your python tensorflow command

'pip install tensorflow installs tensorflow version 2.5.0(This is compatible with Cuda toolkit 11.2)' - 22-08-12

 

 

 

To avoid these Error Case : Check your Cuda Version with python tensorflow version or follow up this post

 

https://developer.nvidia.com/cuda-11.2.0-download-archive

 

CUDA Toolkit 11.2 Downloads

Select Target Platform Click on the green buttons that describe your target platform. Only supported platforms will be shown. By downloading and using the software, you agree to fully comply with the terms and conditions of the CUDA EULA. Operating System

developer.nvidia.com

https://www.python.org/downloads/release/python-390/

 

Python Release Python 3.9.0

The official home of the Python Programming Language

www.python.org

https://www.anaconda.com/products/distribution

 

Anaconda | Anaconda Distribution

Anaconda's open-source Distribution is the easiest way to perform Python/R data science and machine learning on a single machine.

www.anaconda.com

 

After install these tools, Start Anaconda (administrator)

 

1. python -m pip install --upgrade pip

 

2. conda create -n tensorflow python=3.9

 

3.activate tensorflow

 

4. pip install tensorflow

 

AND TEST

 

(tensorflow) > pip install tensorflow (22.08.12 this command will install tensorflow 2.5.0 which is compatible with cuda 11.2)

 

(tensorflow) > python

>>> import tensorflow as tf

>>> hello = tf.constant('Hello, TensorFlow!')

>>>sess = tf.Session()

>>> print(sess.run(hello))

Hello, TensorFlow!

 

>>> a = tf.constant(10)

>>> b = tf.constant(22)

>>>print(sess.run(a+b))

32

반응형