Cov txheej txheem:

Kuv yuav manually nruab TensorFlow li cas?
Kuv yuav manually nruab TensorFlow li cas?

Video: Kuv yuav manually nruab TensorFlow li cas?

Video: Kuv yuav manually nruab TensorFlow li cas?
Video: Machine Learning with Python! Train, Test, Split for Evaluating Models 2024, Hlis ntuj nqeg
Anonim

Kuv tuaj yeem nruab TensorFlow li cas los ntawm cov pob ntawv rub tawm los ntawm

  1. --trusted-host pip nruab tensorflow --trusted-host pypi.
  2. conda tsim conda tsim -n tensorflow pip python = 3.6 qhib tensorflow pib nruab --tsis quav ntsej- ntsia --upgrade tensorflow .

Raws li txoj cai, Kuv yuav nruab TensorFlow li cas?

Nruab TensorFlow CPU rau Python

  1. Qhib lub qhov rais Anaconda / Command Prompt tshiab thiab qhib lub tensorflow_cpu ib puag ncig (yog tias koj tsis tau ua li ntawd lawm)
  2. Thaum qhib, ntaus cov hauv qab no ntawm kab hais kom ua: pip install --ignore-installed --upgrade tensorflow==1.
  3. Tos kom lub installation tiav.

Ib tug kuj yuav nug, Kuv yuav ua li cas rau nruab TensorFlow ntawm Windows 10?

  1. Kauj ruam 1: Xyuas cov software koj yuav tsum tau rau nruab.
  2. Kauj ruam 2: Download Visual Studio Express.
  3. Kauj ruam 3: Download CUDA Toolkit rau Windows 10.
  4. Kauj ruam 4: Download Windows 10 CUDA thaj ua rau thaj.
  5. Kauj ruam 5: Download tau thiab nruab cuDNN.
  6. Kauj ruam 6: Nruab Python (yog tias koj tsis tau muaj nws)
  7. Kauj ruam 7: Nruab Tensorflow nrog GPU txhawb.

Hais txog qhov no, kuv yuav ua li cas rub tawm TensorFlow?

Tsim. yml cov ntaub ntawv rau nruab Tensorflow thiab dependencies

  1. Nrhiav txoj kev ntawm Anaconda.
  2. Teem lub chaw ua haujlwm rau Anaconda.
  3. Tsim cov ntaub ntawv yml (Rau cov neeg siv MacOS, TensorFlow tau teeb tsa ntawm no)
  4. Kho cov ntaub ntawv yml.
  5. Sau cov ntaub ntawv yml.
  6. Qhib Anaconda.
  7. Nruab TensorFlow (Windows neeg siv nkaus xwb)

Puas yog Python 3.7 txhawb TensorFlow?

TensorFlow kos npe rau Python 3 Nqe lus thiab 2.0 yuav txhawb nqa Python 3.5i ib 3.7 (Tau qhov teeb meem 25429). Yog li xyuas kom tseeb tias koj muaj Python version 2.7 lossis 3.6. Yog tias koj muaj ntau yam Python versions nyob rau hauv koj lub hauv paus ib puag ncig, koj tuaj yeem qhia qhov Python version thaum tsim ib puag ncig virtual.

Pom zoo: