使用keras的过程中要安装的软件

安装keras:在conda环境下conda install keras 

安装spyder: conda install spyder 。如果装不上就是pyqt问题 可以试下conda install pyqt   

 

安装PIL:conda install PIL==1.1.7

 

conda下openv安装:conda install --channel https://conda.anaconda.org/menpo opencv3

                            conda install -c https://conda.binstar.org/menpo opencv   pip install opencv-python

                        

软件下载慢时 可用国内镜像下载

修改Ubuntu的apt-get源为国内镜像源的方法

中科大源https://blog.csdn.net/zgljl2012/article/details/79065174

阿里源https://blog.csdn.net/u011148119/article/details/50338355

添加完源以后要运行sudo apt-get update    sudo apt-get upgrade 否则安装不了软件

 

个人分类: Ubuntu

pip install 软件名 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com ·    

使用douban提供的pipy国内镜像服务,如果想手动指定源,可以在pip后面跟-i 来指定源,比如用豆瓣的源来安装web.py框架:pip install web.py -i http://pypi.douban.com/simple (--trusted-host pypi.douban.com)

 

 

修改pip源   https://www.cnblogs.com/microman/p/6107879.html

https://www.douban.com/note/592418915/?type=rec

1 conda添加清华源

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge 
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/

 

(想要删除清华源把add改成remove就行。)

2 显示URL

conda config --set show_channel_urls yes

作者:wangyang
链接:https://www.zhihu.com/question/38252144/answer/109411148
来源:知乎
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

 

 

keras的模型可视化

就是通过:plot(model, to_file='model1.png',show_shapes=True)

 

生成一个模型图,第一个参数为模型,第二个为要生成图片的路径及文件名,还可以指定两个参数: 

show_shapes:指定是否显示输出数据的形状,默认为False 

show_layer_names:指定是否显示层名称,默认为True

 

 

1、安装graphviz模块

 

1.1 命令行输入 pip install graphviz

1.2 安装graphviz软件。官网地址为http://www.graphviz.org/

官网中有解压版和安装版,推荐解压版,因为我使用解压版成功了,安装版好像出了点问题- -用apt安装

1.3 将安装目录中的graphviz-2.38\release\bin添加进Path环境变量

2、安装pydot模块

命令行输入pip install pydot==1.1.0

以上两步的顺序一定要正确

 

 

 

下载的安装包存到系统的/var/cache/apt/archives路径下

然后,如何清理他们,执行sudo apt-get clean

 

 

 

 

scrapy pip安装在主环境下 

 

pip install sklearn -i http://pypi.douban.com/simple --trusted-host pypi.douban.com 安装一般暂停的话可能会装上去了 要删除后再重装

matplotlib

 

mpl_toolkits.mplot3d   conda install basemap

 

安装pycocotools时 make时报错

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 0: ordinal not in range(128)的问题

在代码前端加入

  1. import sys  
  2. reload(sys)  
  3. sys.setdefaultencoding('utf8') 

http://blog.csdn.net/a359680405/article/details/42554095

 

 

Ubuntu16.04 Liunx下同时安装Anaconda2与Anaconda3

 

https://www.cnblogs.com/zle1992/p/6720425.html

 

keras中的损失函数  https://zhuanlan.zhihu.com/p/34667893

iPython的安装及问题解决

https://www.jianshu.com/p/8779eac7f313

 

tensorflow暂不支持python3.7

https://www.jianshu.com/p/1a3e194886b4

fastai pip install git+https://github.com/fastai/fastai.git
 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值