VS2017+python3.6+Tensorflow環境搭建
第一步:
安裝VS2017(參考Opencv那一篇部落格),勾選Python選項
第二步:
配置環境變數
第三步:
用管理員開啟Power shell
輸入:pip3 install --upgrade tensorflow
第四步:
驗證是否成功
新建python程式
輸入程式碼:
#coding:utf-8
import tensorflow as tf
w1 = tf.Variable(tf.random_normal([2,3],stddev=1,seed=1))
w2 = tf.Variable(tf.random_normal([3,1],stddev=1,seed=1))
x = tf.constant([[0.7,0.9]])
a = tf.matmul(x,w1)
y = tf.matmul(a,w2)
sess = tf.Session()
init_op = tf.initialize_all_variables()
sess.run(init_op)
print(sess.run(y))
sess.close()
執行結果:
(其中的提示是因為沒有正對CPU進行優化,需要編譯tensorflow才可以,後期送上解決教程)
相關推薦
VS2017+python3.6+Tensorflow環境搭建
第一步: 安裝VS2017(參考Opencv那一篇部落格),勾選Python選項 第二步: 配置環境變數 第三步: 用管理員開啟Power shell 輸入:pip3 install --upgrade tensorflow 第四步: 驗證是否成功 新建python程式
[Tensorflow]環境搭建vs2017+win10+py3.6+cuda9.1+cudnn7+tf1.5
一、安裝cuda 9.1+VS2017一路下一步即可,環境變數cuda會自動配好。安裝完後,在主目錄搜尋deviceQuery.exe,跑一跑測試下就好了(成功最下一句是:RESULT PASS)。vs2017和cuda 9.1同時安裝的,雖然cuda暫時提示找不到vs,但是
為VS2017打包安裝的Python3.6新增環境變數
1.首先找到Python環境變數路徑找到python互動式環境的快捷方式,並找到其執行程式的資料夾的路徑筆者的路徑為 C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_642.把路徑新增至環境變數
Appium 1.6.4 環境搭建流程(Java, Android+IOS, Windows+Mac)
經典 客戶 dev utf-8 4.6.1 新版本 -m works odi Appium1.6.4已經出來一段時間了,快速給大家串一下怎麽搭建,貼了下載鏈接 1 基礎環境: Windows + Mac: Java JDK 1.8+ (需配置環境變量),Appium1
python3.6虛擬環境以及flask的安裝(常見問題)
python 虛擬環境 flask準備基於python進行web應用開發Python3.3以上的版本通過venv模塊原生支持虛擬環境,可以代替Python之前的virtualenv。該venv模塊提供了創建輕量級“虛擬環境”,提供與系統Python的隔離支持。每一個虛擬環境都有其自己的Python二進制(允許
python3.6.1環境配置出現Requirement already up-to-date: pip in c:python36libsite-packages決解方案
下載 date 保持 keyword require edits 文件夾 分號 file 本文轉載於:http://qoogle.cn/?id=39 前提: windows下同時安裝python2和python3, 應將python2和python3直接安裝在 C盤下面
Tensorflow環境搭建
.html min post com flow nac ref bsp con 1. 安裝Anacoda Win10下用Anaconda安裝TensorFlow Anaconda使用總結 2. 配置Python環境 如何在已安裝Python條件下,安裝Anaconda,,並
Appium1.6.5環境搭建
appium 環境搭建 (2)安裝過程: 安裝JDK並設置環境變量 a.在命令行中輸入 java -version 顯示如下,則可忽略此操作(java版本1.6以上都可以) attachments-2017-08-STL7JFMY59941b1ef244a.b.如無上述操作則安裝:點擊安裝即可 a
Mysql Cluster 7.6.4 環境搭建
數據庫 MySQL MySQL Cluster 介紹???? MySQL Cluster是一個基於NDB Cluster存儲引擎的完整的分布式數據庫系統。不僅僅具有高可用性,而且可以自動切分數據,冗余數據等高級功能。和Oracle Real Cluster Application不太一樣的是,MySQ
windows7系統VS2017下的OpenCV環境搭建
一、下載VS2017社群版 該版本可免費使用 二、OpenCV3.4.1下載及安裝 1、下載地址:https://i.cnblogs.com/EditPosts.aspx?opt=1,Download下選擇“win pack”版; 2、將下載的opencv-3.4.1-vc14_vc15.
python3.6+Tensorflow 識別數字+字母驗證,-----------------------玉米都督
最近幾天大哥給 個任務需求 爬取國家自然科學基金全網資料 傳送門在這裡, 開的多執行緒 https://blog.csdn.net/qq_39443687/article/details/83894985 需要注意的是cookie
Tensorflow環境搭建(Windows10)
這兩天都沒更新部落格了,原因無它,就是因為這兩天的業餘時間就用來搭建Google大名鼎鼎的深度學習框架了。踩了不少坑啊,因此一定要記錄一下環境的搭建過程。 環境 首先,先看看我的環境: Windows10:GTX960M顯示卡(如果裝Tensorflow的gpu版本的
Anaconda+TensorFlow環境搭建
一、安裝Anaconda3 我們從官網下載(https://www.anaconda.com/download/#windows)下載anaconda3,509M下載要一會。 出現問題,發現32位windows無法使用tensorflow,所以該用ubuntu下使用。https
Docker Images: Centos7 + Python3.6 + Tensorflow + Opencv + Dlib
本文件主要是構建影象處理相關專案的 docker 映象,包含:基礎映象 Centos7 ,以及所涉及的 Python3.6 + Tensorflow + Opencv + Dlib 等開發環境。 Docker Images: Centos7 + Python3.6 + Te
Centos 6.x python3.6 Django 環境設定
Django 概述Django 中提供了開發網站經常用到的模組,常見的程式碼都為你寫好了,通過減少重複的程式碼,Django 使你能夠專注於 web 應用上有 趣的關鍵性的東西。為了達到這個目標,Django 提供了通用Web開發模式的高度抽象,提供了頻繁進行的程式設計作業的快速解決方法,以及為
Centos 7.5 python3.6.1Django 環境設定
一、Django 概述 Django 中提供了開發網站經常用到的模組,常見的程式碼都為你寫好了,通過減少重複的程式碼,Django 使你能夠專注於 web 應用上有 趣的關鍵性的東西。為了達到這個目標,Django 提供了通用Web開發模式的高度抽象,提供了頻繁進行的程式設計作業的快速解決方法,以及為“如何
Centos 7.5 python3.6.1Django 環境設置
entos python36 creating global configure tabstop 源配置 高速 usr 一、Django 概述 Django 中提供了開發網站經常用到的模塊,常見的代碼都為你寫好了,通過減少重復的代碼,Django 使你能夠專註於 web 應
MIT-6.828 環境搭建
MIT 6.828是作業系統中最經典的一門課程。完成所有的lab就相當於完成了一個迷你的作業系統。我跟的是2018年的課程,課程首頁在6.828課程官網。當然所有資料都是英文的,所以難度也不低,這裡推薦幾本非常有用的參考書:《x86組合語言-從真實模式到保護模式》,《程式設計師的自我修養-連結、裝載與庫》,《
Anaconda安裝 & Tensorflow環境搭建
Anaconda安裝 管理員身份開啟安裝包:Anaconda安裝包下載,清華映象 不建議安裝在C盤 選擇將Anaconda設定為system python(另一個選項安裝包會註明不推薦) TensorFlow環境搭建 管理員身份開啟Anacond
Windows10+python3.6+tensorflow-gpu
首先簡單介紹一下,由於本人在深度學習階段需要使用Google的tensorflow框架來訓練神經網路,經過一番瞭解,TensorFlow有兩種版本,一種是CPU版的,還有一種是GPU版的。考慮到後期要訓練的引數會很多,我電腦的顯示卡為NVIDIA GeForce GTX 96