ubuntu+anaconda+tensorflow 及相关问题
配置tensorflow部分参考:https://blog.csdn.net/XUTIAN1129/article/details/78997633
装完anaconda, source ~/.bashrc后, 可以直接 pip install tensorflow-gpu , 珍爱生命,远离bazel。但想要c/c++调用tf的时候远离不了,还是得bazel编译安装tf-gpu
对于:
>>> import tensorflow as tf
/home/aimhabo/anaconda2/lib/python2.7/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_converters
重装numpy并没什么用,不过这警告暂时没啥实际负面效果。
Intel MKL FATAL ERROR: Cannot load libmkl_avx.so or libmkl_def.so.:
在终端里调用python xxx.py之前,输入export LD_PRELOAD=libmkl_rt.so
opencv 中找不到 eigen:
1、sudo apt-get install libeigen3-dev
2、#include <Eigen/Dense>
3、 sudo cp -r /usr/include/eigen3/Eigen /usr/local/include/
4、WITH_EIGEN,remake opencv
expected nested-name-specifier before ' KAL_XXX' using KAL_XXX:
using XXX = YYY; 是c++11新标准,低版本g++改成typedef语法
注意获取时要用回归的办法获取引用的库,最后cp到include里的几步可以用建立软连接替代
编译tf: https://blog.csdn.net/rockingdingo/article/details/75452711 https://cloud.tencent.com/developer/article/1006405
C版tf: bazel build --config=monolithic //tensorflow:libtensorflow.so
C++版tf: bazel build --config=monolithic //tensorflow:libtensorflow_cc.so
有*.proto的情况下缺少*.pb.h: 安装protobuf,在tensorflow-r1.8目录下 protoc --cpp_out=tensorflow/core/protobuf/ tensorflow/core/protobuf/*.proto
ubuntu+anaconda+tensorflow 及相关问题的更多相关文章
- 基于Ubuntu+Python+Tensorflow+Jupyter notebook搭建深度学习环境
基于Ubuntu+Python+Tensorflow+Jupyter notebook搭建深度学习环境 前言一.环境准备环境介绍软件下载VMware下安装UbuntuUbuntu下Anaconda的安 ...
- Anaconda+Tensorflow环境安装与配置
转载请注明出处:http://www.cnblogs.com/willnote/p/6746499.html Anaconda安装 在清华大学 TUNA 镜像源选择对应的操作系统与所需的Python版 ...
- Anaconda+Tensorflow环境安装与配置(转载)
Anaconda+Tensorflow环境安装与配置 转载请注明出处:http://www.cnblogs.com/willnote/p/6746499.html Anaconda安装 在清华大学 T ...
- Ubuntu 环境 TensorFlow (最新版1.4) 源码编译、安装
Ubuntu 环境 TensorFlow 源码编译安装 基于(Ubuntu 14.04LTS/Ubuntu 16.04LTS/) 一.编译环境 1) 安装 pip sudo apt-get insta ...
- Ubuntu软件操作的相关命令
Ubuntu软件操作的相关命令 sudo apt-get update ------------------------------- 更新源 sudo apt-get install package ...
- Ubuntu install TensorFlow
/******************************************************************************** * Ubuntu install T ...
- tensorflow dataloader 相关内容
Tensorflow dataloader 相关调研:数据读取是训练的开始,是非常关键的一步:下面是调研时搜集到的一些相关链接: 十图详解tensorflow数据读取机制 https://zhuanl ...
- 总结关于Ubuntu 安装 Docker 配置相关问题及解决方法
总结关于Ubuntu 安装 Docker 配置相关问题及解决方法 Tomcat 示例 软件镜像(xx安装程序)----运行镜像----产生一个容器(正在运行的软件,运行的xx): 步骤: 1.搜索镜像 ...
- anaconda + tensorflow +ubuntu 超级菜鸟,大家多指正【转】
本文转载自:https://blog.csdn.net/zzw000000/article/details/51203331 1.首先安装Anaconda 下载linux对应的anaconda版本,下 ...
随机推荐
- cocos2dx (关于斗地主人物偏移位置)
就是说不管是谁登陆游戏,你的人物信息资料始终在平板电脑的屏幕正下方(位置坐标需要自己设定,我设置定的是0号位() char LandLordsScene::getUIPosition(char pos ...
- node.js初识05
小项目,需求,通过url来查询学生学号和老师的编号 05.js var http = require("http"); var server = http.createServer ...
- python windows 安装pandas,numpy....
用cmd进入python的安装目录的sripts文件夹下,输入pip install pandas 等它自己下载安装完成,提示
- jQuery-设计模式
[目录] 一.选择网页元素 二.改变结果集 三.链式操作 四.元素的操作:取值和赋值 五.元素的操作:移动 六.元素的操作:复制.删除和创建 七.工具方法 八.事件操作 九.特殊效果 [正文] 一.选 ...
- Chrome 扩展
http://www.cnblogs.com/coco1s/p/8004510.html
- python:基于tkinter的定时关机程
本人使用python3 from tkinter import* import os from PIL import Image, ImageTk root=Tk() a=Label(root,tex ...
- Yii2开发小技巧
工作中或多或少会用到的关于 Yii2 的小技巧的一个总结,包括model.controller.view或者配置文件的一些写法. 模型相关 获取查询SQL $query = User::find()- ...
- https://scrapingclub.com/exercise/detail_cookie/
def parse(self, response): pattern=re.compile('token=(.*?);') token=pattern.findall( response.header ...
- 网易新网 spider
# -*- coding: utf-8 -*- import os import sys import urllib.request import requests import re from lx ...
- Ontology Relations
Overview The following page documents the relations used in the filtered GO ontology. For informatio ...