Wine

决策树+Graphviz

江枫思渺然 提交于 2020-01-19 08:22:31
pydotplus.graphviz.InvocationException: GraphViz’s executables not found 在使用pycharm导出 决策树 的时候出现了以上错误,下载安装== graphviz-2.38 ==解决 下载后安装到Python安装目录下的Lib/site-packages中,重启IDE即可。 #-- coding:utf-8 -- #From: 仿写 bilibili 菜菜的sklearn课堂代码 #Date: 2020/1/15 16:09 import pydotplus from sklearn import tree from sklearn.datasets import load_wine from sklearn.model_selection import train_test_split import pandas as pd wine = load_wine() print(wine) print(wine.data) print(wine.target) pd.concat([pd.DataFrame(wine.data), pd.DataFrame(wine.target)], axis=1) print(wine) print(wine.feature_names) print(wine.target

ubuntu 通讯工具微信、qq、foxmail、迅雷

浪子不回头ぞ 提交于 2020-01-13 05:24:44
从win开发环境切换到了ubuntu下,用习惯了工具,很多工具一时半会没找到替代,工作效率蹭蹭地下降。 特别是使用微信做为组内通讯交流使用,然后ubuntu下一般只有个electronic wechat。 这个工具是基于web-wechat的一个封装第三方,感谢作者,简单方便安装,直接再ubuntu软件中心安装就行。 但是,这个软件他退出不完全,总是在后台几十个进程,锁屏断网后回来,满屏幕的登录提示,还有一个最大的 弊端,他是基于网页版的,不能截图,不能截图,很多时候工作沟通就需要临时一张图的事,硬生生憋了一堆东西还解释不清楚 难受啊。 在网上闲逛,发现还有人是来一个虚拟机,不感兴趣,环境太多 然后想起还有个东西,好像是可以在linux下运行win的软件的,查了一下wine,完美。 再查资料,发现还有个deepin团队的贡献,deepin-wine更完美。 接着查,发现还有个优秀的程序员打好包了,在ubuntu下 deepin-wine-ubuntu ,还能说什么呢,十分的完美,撸起啊。 接下来安装步骤摘自原作者 采用本地安装 git clone https://github.com/wszqkzqk/deepin-wine-ubuntu.git cd deepin-wine-ubuntu/ sudo ./install.sh 然后就是下载需要的东西啦,同样摘自原作者 QQ TIM

How to run .exe executable file from linux command line? [closed]

陌路散爱 提交于 2020-01-13 05:07:32
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I have one abc.exe executable file in windows. I am able to execute this application using DOS command promt and give some run-time variable to it. I want to do same in linux system from terminal. How can I do this?? 回答1: Windows EXE files usually can't run on Linux. You might be successful with wine which

wine安装及使用

走远了吗. 提交于 2020-01-12 04:26:37
首先说明下系统环境,我系统使用的是deepin15.11,其他基于debain的发行版,安装及使用方法应该也是差不多的。 一、Wine安装 这里引用deepin论坛上的一个帖子: https://bbs.deepin.org/forum.php?mod=viewthread&tid=176555 Step.1 程序坞(启动器、开始菜单)中打开系统自带终端(深度终端)程序,执行以下命令。 【sudo dpkg --add-architecture i386】 说明:如果您使用的是 64 位系统,请开启 32 bit 架构支持(如果您之前没有开启的话): Step.2 添加仓库 以管理员身份进入/etc/apt/路径,右键单击sources.list 文件,选择管理员身份打开 在文字编辑窗口最后一行写入: 【deb https://dl.winehq.org/wine-builds/debian/ stretch main】 然后保存退出。 Step.3 3.1程序坞(启动器、开始菜单)中打开系统自带终端(深度终端)程序,执行: 【wget -nc https://dl.winehq.org/wine-builds/winehq.key】 3.2终端窗口内返回某些结果后,然后执行: 【sudo apt-key add winehq.key】 短暂时间后,终端窗口内返回“OK”字样。 3

DeepIn 微信开发者工具真机调试报错提示 Error: node-sync-ipc is broken.

☆樱花仙子☆ 提交于 2020-01-07 15:32:55
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> # apt-get install wine // 需要安装wine, 否则开发工具报错:小程序重启耗时过久,请确认业务逻辑中是否有复杂运算,或者死循环 在应用商店一键安装的话: # cd /usr/share/wechat-web-devtools/bin/ # ./update_nwjs 问题解决。 手动安装: # git clone https://gitee.com/aizhineng/wechat_web_devtools.git # cd /usr/local/src/wechat_web_devtools # ./bin/wxdt //也可以创建快捷方式到桌面,以管理员身份的打开文件夹,双击图标打开开发工具 真机调试报错:提示 Error: node-sync-ipc is broken. 关掉开发工具 bin 目录下的*.sh 文件,我都执行了个遍,终于没有node-sync-ipc这个问题了 。 重新打开开发者工具,发现没问题了。 参考:https://gitee.com/aizhineng/wechat_web_devtools 来源: oschina 链接: https://my.oschina.net/u/3567851/blog/3049162

KNN算法

不想你离开。 提交于 2020-01-07 03:52:19
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 1. 介绍 KNN(K-Nearest Neightbors ) K最近邻算法。简单地说,K 近邻算法采用测量不同特征值之间的距离方法进行分类。 K 近邻算法的工作原理是:存在一个样本数据集合,也称作训练样本集,并且样本集中每个数据都存在标签,即我们知道样本集中每一数据与所属分类的对应关系。 K这个字母的含义就是最近邻的个数,在scikit-learn中,K值是通过n_neightbors参数来进行调节的。 2. 分类示例 from sklearn.datasets import make_blobs #Knn用于分类的模型 KNeighborsClassifier from sklearn.neighbors import KNeighborsClassifier import matplotlib.pyplot as plt from sklearn.model_selection import train_test_split import numpy as np #w创建训练样子,n_samples样本数,数据类型centers data = make_blobs(n_samples=500,centers=5,random_state=8) X,y= data clf

manjaro安装微信

喜你入骨 提交于 2020-01-07 03:24:20
1.安装微信 yay -S deepin-wine-wechat 2.安装tim yay -S deepin-wine-tim   安装参考: https://www.jianshu.com/p/01b6159dac08 3.禁忌安装的时候最好不要退出,否则会出现闪退打不开 解决:卸载微信,重新安装 卸载命令: sudo pacman -Rs deepin-wine-wechat   如果还是闪退参考 https://zhuanlan.zhihu.com/p/51957263 来源: https://www.cnblogs.com/Ai-Hen-Jiao-zhi/p/12151279.html

manjaro安装微信

匆匆过客 提交于 2020-01-05 03:03:26
1.安装微信 yay -S deepin-wine-wechat 2.安装tim yay -S deepin-wine-tim   安装参考: https://www.jianshu.com/p/01b6159dac08 3.禁忌安装的时候最好不要退出,否则会出现闪退打不开 解决:卸载微信,重新安装 卸载命令: sudo pacman -Rs deepin-wine-wechat   如果还是闪退参考 https://zhuanlan.zhihu.com/p/51957263 来源: https://www.cnblogs.com/Ai-Hen-Jiao-zhi/p/12151279.html

automating excel with win32com on linux with wine

前提是你 提交于 2020-01-05 02:30:45
问题 I have a rather complex Excel 2010 file that I automate using python and win32com. For this I run windows in virtual box on an ubuntu machine. However, that same excel file solves/runs fine on Ubuntu Maverick directly using wine 1.3. Any hope of automating Excel on wine so I can drop the VM? Or is that just crazy talk (which I suspect). 回答1: You'd need a Windows version of Python, not a Linux version -- I'm saying you'd have to run Python under wine as well. Have you tried with just a normal

automating excel with win32com on linux with wine

回眸只為那壹抹淺笑 提交于 2020-01-05 02:30:09
问题 I have a rather complex Excel 2010 file that I automate using python and win32com. For this I run windows in virtual box on an ubuntu machine. However, that same excel file solves/runs fine on Ubuntu Maverick directly using wine 1.3. Any hope of automating Excel on wine so I can drop the VM? Or is that just crazy talk (which I suspect). 回答1: You'd need a Windows version of Python, not a Linux version -- I'm saying you'd have to run Python under wine as well. Have you tried with just a normal