[Python] Tensorflow 2 ๊ฐœ๋ฐœํ™˜๊ฒฝ ์…‹ํŒ… on Windows 11

2023. 1. 31. 21:22ยทLanguages/Python
PS C:\Users\aaa> python
Python 3.11.0 (main, Oct 24 2022, 18:26:48) [MSC v.1933 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import struct
>>> print(struct.calcsize("P")*8)
64

PS C:\Users\aaa> choco install cuda
Chocolatey v1.2.1
Installing the following packages:
cuda
By installing, you accept licenses for the packages.
Progress: Downloading cuda 12.0.0.52741... 100%

cuda v12.0.0.52741 [Approved]
cuda package files install completed. Performing other installation steps.
The package cuda wants to run 'chocolateyinstall.ps1'.
Note: If you don't run this script, the installation will fail.
Note: To confirm automatically next time, use '-y' or consider:
choco feature enable -n allowGlobalConfirmation
Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint): a

Downloading cuda
  from 'https://developer.download.nvidia.com/compute/cuda/12.0.0/local_installers/cuda_12.0.0_527.41_windows.exe'
Progress: 0% - Saving 23.36 MB of 3.41 GB

ํŒŒ์ด์ฌ์„ ๋จผ์ € ์„ค์น˜ ํ•ฉ๋‹ˆ๋‹ค.

๋งŒ์•ฝ ์„ค์น˜๊ฐ€ ์•ˆ๋˜์–ด ์žˆ์œผ๋ฉด

choco install python

 

๋‹ค์Œ pip๋ฅผ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค.

pip install --upgrade pip

 

์ค€๋น„๊ฐ€ ๋˜์—ˆ์œผ๋ฉด ์œ„ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์ฐจ๋ก€๋Œ€๋กœ ์‹คํ–‰ํ•ด์„œ

python 64๋น„ํŠธ๊ฐ€ ์ž˜ ์„ค์น˜ ๋˜์—ˆ๋Š”์ง€ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค.

๊ทธ๋ฆฌ๊ณ  cuda๋ฅผ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค.

 

choco ์„ค์น˜ ๋ฐฉ๋ฒ•์€ ์•„๋ž˜ ๋งํฌ๋ฅผ ๋ณด์‹œ๋ฉด ๋ฉ๋‹ˆ๋‹ค.

2020.06.21 - [OS/Windows] - Chocolatey ์ด๋ž€?

 

Chocolatey ์ด๋ž€?

Chocolatey์ด๋ž€? ํ”„๋กœ๊ทธ๋žจ ๊ด€๋ฆฌ์— ๋Œ€ํ•œ ๋ณต์žกํ•œ ํ”„๋กœ์„ธ์Šค ๋‹จ์ˆœํ™”, ์‹œ๊ฐ„ ๋ฐ ๋…ธ๋ ฅ ์ ˆ์•ฝ ํ•˜๋„๋ก ๋„์™€์ฃผ๋Š” ํˆด์ž…๋‹ˆ๋‹ค. Windows ์†Œํ”„ํŠธ์›จ์–ด์˜ ๋ชจ๋“  ์ธก๋ฉด์„ ์ž๋™ํ™”๋œ ์ ‘๊ทผ ๋ฐฉ์‹์„ ํ†ตํ•ด ์ด๋ฅผ ๋‹จ์ˆœํ™”ํ•ฉ๋‹ˆ๋‹ค. ๊ธฐ

codeparadise.tistory.com

2020.06.21 - [OS/Windows] - [chocolatey] ์„ค์น˜ ๋ฐฉ๋ฒ•

 

[chocolatey] ์„ค์น˜ ๋ฐฉ๋ฒ•

ํ•„์š” ์š”์†Œ Windows 7+ / Windows Server 2003+ PowerShell v2+ (minimum is v3 for install from this website due toTLS 1.2 requirement) .NET Framework 4+ (the installation will attempt to install .NET 4.0 if you do not have it installed)(minimum is 4.5 for

codeparadise.tistory.com

 

pip๋ฅผ ํ†ตํ•ด tensorflow๋ฅผ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค.

pip install tensorflow

 

๊ทธ๋ฆฌ๊ณ  tensorflow๋ฅผ python์—์„œ importํ•ด์„œ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค.

import tensorflow as tf

 

 

 

 

728x90
'Languages/Python' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€
  • [Python] ๋…ผ๋ฆฌํšŒ๋กœ ๊ตฌํ˜„ํ•˜๊ธฐ
  • [Python] ์•ˆ๋“œ๋กœ์ด๋“œ ๋งˆ์šฐ์Šคํƒญ ์ด๋ฒคํŠธ
์ง€๋‹ˆ๐Ÿงž‍โ™‚๏ธ๐Ÿฅญ
์ง€๋‹ˆ๐Ÿงž‍โ™‚๏ธ๐Ÿฅญ
์ผ์ƒ, ๊ฒŒ์ž„, ๋ง›์ง‘, ์—ฌํ–‰, ๊ฐœ๋ฐœ, IT ๋ธ”๋กœ๊ทธ๐Ÿงž
  • ์ง€๋‹ˆ๐Ÿงž‍โ™‚๏ธ๐Ÿฅญ
    ์š”์ˆ  ๋žจํ”„๐Ÿซ–
    ์ง€๋‹ˆ๐Ÿงž‍โ™‚๏ธ๐Ÿฅญ
  • ์ „์ฒด
    ์˜ค๋Š˜
    ์–ด์ œ
    • All (549)
      • Languages (57)
        • JAVA (13)
        • JSP (1)
        • C_C++ (4)
        • Html (3)
        • CSS (1)
        • JavaScript (18)
        • Python (3)
        • Kotlin (13)
        • TypeScript (1)
      • Framework (14)
        • spring (11)
        • jstl (1)
        • angular (2)
      • Tool (28)
        • Eclipse (5)
        • vsCode (3)
        • scrcpy (2)
        • Git (1)
        • IntelliJ (6)
        • Visual-studio (1)
        • UML (1)
        • Gradle (8)
      • DB (6)
        • Oracle (1)
        • MySql (3)
        • Mongo (2)
      • OS (14)
        • Linux (2)
        • Windows (12)
      • Server (8)
        • Tomcat (1)
        • Apache (1)
        • Node.js (6)
      • Programmings (25)
        • Design Pattern (2)
        • Funny (20)
        • Algorithms (3)
      • Cloud (8)
        • Docker (1)
        • Kubernetes (4)
        • Istio (1)
        • ArgoCD (2)
      • IT (5)
        • gRPC (3)
        • RESTful (3)
        • Web UI (5)
        • AI (4)
      • Book (6)
      • TIP (187)
      • Life (53)
      • Game (83)
      • Storage (22)
      • ์‹๋‹น (15)
  • ๋ธ”๋กœ๊ทธ ๋ฉ”๋‰ด

    • ํ™ˆ
    • ํƒœ๊ทธ
    • ๋ฐฉ๋ช…๋ก
    • ์‚ฌ์ดํŠธ๋งต
    • RSS
    • ๊ธฐํƒ€ ์†Œ๋“
  • ๋งํฌ

    • ๊ตฌ๊ธ€
    • ๋„ค์ด๋ฒ„
    • ์ •๋ถ€24
    • Spring Framework ๋ฆด๋ฆฌ์ฆˆ ๋…ธํŠธ
    • Kotlin ๋ฆด๋ฆฌ์ฆˆ ๋…ธํŠธ
    • ์นด์นด์˜ค ์• ๋“œํ•
    • ๋ธ”๋กœ๊ทธ ์‚ฌ์ดํŠธ๋งต
    • ๋ธ”๋กœ๊ทธ RSS
  • ๊ณต์ง€์‚ฌํ•ญ

    • ์•ˆ๋…•ํ•˜์„ธ์š”
  • ์ธ๊ธฐ ๊ธ€

  • ํƒœ๊ทธ

    ๋‰ด์Šค
    ๋ชฌ์Šคํ„ฐํ—Œํ„ฐ๋‚˜์šฐ
    ํ€˜์ŠคํŠธ
    ๋ชฌ์Šคํ„ฐํ—Œํ„ฐ์™€์ผ์ฆˆ
    ํƒœ๊ตญ
    ์˜ค๋Š˜์˜๋‰ด์Šค
    ๋‰ด์Šค ๋ธŒ๋ฆฌํ•‘
    ํ•œ๋ˆˆ์— ๋ณด๋Š” ์˜ค๋Š˜์˜ ๋‰ด์Šค
    ๋ฐ์ผ๋ฆฌ ๋‰ด์Šค
    ๋ธŒ๋ฆฌํ•‘
  • ์ตœ๊ทผ ๋Œ“๊ธ€

  • ์ตœ๊ทผ ๊ธ€

  • hELLOยท Designed By์ •์ƒ์šฐ.v4.10.3
์ง€๋‹ˆ๐Ÿงž‍โ™‚๏ธ๐Ÿฅญ
[Python] Tensorflow 2 ๊ฐœ๋ฐœํ™˜๊ฒฝ ์…‹ํŒ… on Windows 11
์ƒ๋‹จ์œผ๋กœ

ํ‹ฐ์Šคํ† ๋ฆฌํˆด๋ฐ”