靠运气解决kali_linux上pyzo的问题
本来使用sublime text3也可以做python的IDE,但是我也想试试pyzo。
安装的过程很和平。没有任何报错
apt-get install pyzo
但是一启动就报错.
pyzo
Started our command server
Segmentation fault
查看/var/log/messages就看到这么一行
Aug 13 17:48:18 kali kernel: [14934.509890] pyzo[4410]: segfault at 0 ip 00007f8688607561 sp 00007fff914d47b0 error 6 in QtCore.cpython-36m-x86_64-lin...
Kali_linux升级python3 Pyqt5后retext无法工作
retext是编辑markdown文件的工具,最近升级了python3-PyQt5后,发现retext无法正常工作了
报错如下
apt-get install python3-pyqt5
apt install retext
root@kali:~# retext
Traceback (most recent call last):
File "/usr/bin/retext", line 26, in <module>
from ReText import datadirs, settings, globalSettings, app_version
File "/usr/share/retext/ReText/...
Kali_linux安装mpv
kali_linux安装mpv
不知道卸载了什么,发现smplayer, 和mpv 都消失了.
决定从头开始把视频播放安装回来。
apt-get update
apt-get install mpv
安装完打开mpv没有声音,为什么呢?
我使用的是xfce4的desktop, 从Application->Multimedia->PulseAudio Volume Control点进去,怀疑是声音的某个组件丢失了。搞定的方式如下:
apt-cache search pavucontrol
apt-cache search pulseaudio
apt-get install pavucontrol...
Kali_install_rabbitmq
记录安装RabbitMQ 碰到的Dependency 的问题
执行apt-get install rabbitmq-server 报错。
apt-get install rabbitmq-server
erlang17-xmerl : conflicts: erlang-xmerl but 1:20.3.8.1+dfsg-1 is to be installed
需要把这些erlang17 开头的conflict 先卸载,再继续进行安装。
dpkg -l |grep erlang
apt-get purge erlang17-base erlang17-crypto erlang17-asn1
apt-ge...
Python_data_science_第9课
今天才看到Machine Learning:
Machine learning:
Algorithms that can learn from observational data, and can make predictions based on it.
Machine Learning分为unsupervised learning 和 supervised learning.
区别在: supervised learning: 有“参考答案”,而unsupervised learning则没有”参考答案”
Train /Test :
Need to ensure both sets are large enough to contain representat...
Python_data_science_第八课
multivariate regression. (multiple regression)
What if more than 1 variable influence the one you are interested in ?
Example:
predicting a price for a car based on its many attributes(body style, brand, mileage, etc.)
例如有多个因素都会影响车辆的价格,车型,品牌,公里数,车门数。
still use least squares.
We just end up with coefficients for each factor.
F...
Sublime_text_3_on_linux中文支持
sublime 3 支持中文是通过一个package 叫converttoutf8, 然后安装一个codec33的package.
1- 使用control+~ :输入命令如下 也可以参考 https://packagecontrol.io/installation#st3
import urllib.request,os,hashlib; h = '6f4c264a24d933ce70df5dedcf1dcaee' + 'ebe013ee18cced0ef93d5f746d80ef60'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.r...
Python_data_science_第七课
polynomial regression
Not all relationships are linear.
Linear formula: y=mx+b
This is a “first order” or “first degree” polynomial , as the power of x is 1.
Second order polynomial: y=ax**2 + bx + c
Third order polynomial: y = ax**3 + bx**2 + cx + d
Higher orders polynomial produce more complex curves.
beware overfitting:
D...
87 post articles, 11 pages.