摘要: linux安装了Python3.7之后, pip不好用了,报错如下: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. 在搜各种解决方案的 阅读全文
posted @ 2019-11-19 13:21 He_LiangLiang 阅读(4065) 评论(0) 推荐(1) 编辑
摘要: 问题描述: Traceback (most recent call last): File "/usr/bin/pip", line 5, in <module> from pkg_resources import load_entry_point File "/usr/local/python3/ 阅读全文
posted @ 2019-11-18 23:31 He_LiangLiang 阅读(1461) 评论(0) 推荐(0) 编辑
摘要: 问题描述: No package python-pip available. 解决办法: 查看 pip 版本: 升级pip版本 如果上述方法不成功,请参考这篇文章的详细介绍。https://www.cnblogs.com/music-liang/p/11890450.html 阅读全文
posted @ 2019-11-18 23:02 He_LiangLiang 阅读(3553) 评论(0) 推荐(0) 编辑
摘要: 记录《Linux高性能服务器编程》书里面讲解到的若干 shell 命令 arp 命令查看ARP高速缓存: [root@VM_0_10_centos heliang]# arp -a ? (169.254.128.11) at fe:ee:0b:ca:e5:69 [ether] on eth0 ? ( 阅读全文
posted @ 2019-11-18 16:10 He_LiangLiang 阅读(398) 评论(0) 推荐(1) 编辑
摘要: 问题描述: centos 系统没有 telnet 命令 bash: telnet: command not found 1.安装telnet服务 (3个) 修改配置文件(): 2.配置开机启动 3.需要激活xinetd服务 4.测试是否ok 这是ok的情况。不ok的时候,会提示连接被拒绝。 另外一个 阅读全文
posted @ 2019-11-18 15:19 He_LiangLiang 阅读(5150) 评论(0) 推荐(0) 编辑
摘要: 需求: centos环境,python2.7需要升级为python3.x 1.请先手动(再次)安装 openssl 。否则你升级之后,你的pip不能下载,会各种报错的。 比如这种错误: ImportError: Entry point ('console_scripts', 'easy_instal 阅读全文
posted @ 2019-11-17 14:20 He_LiangLiang 阅读(2987) 评论(0) 推荐(1) 编辑
摘要: 阅读目录 1 安装 2 更新和升级 3 查找和显示 4 删除程序 5 清除缓存 yum(全称为 Yellow dog Updater, Modified)是一个在Fedora和RedHat以及SUSE中的Shell前端软件包管理器。基於RPM包管理,能够从指定的服务器自动下载RPM包并且安装,可以自 阅读全文
posted @ 2019-11-17 11:50 He_LiangLiang 阅读(1359) 评论(0) 推荐(0) 编辑
摘要: Linux chmod命令 Linux 命令大全 Linux/Unix 的文件调用权限分为三级 : 文件拥有者、群组、其他。利用 chmod 可以藉以控制文件如何被他人所调用。 使用权限 : 所有使用者 语法 参数说明 mode : 权限设定字串,格式如下 : 其中: u 表示该文件的拥有者,g 表 阅读全文
posted @ 2019-11-16 13:32 He_LiangLiang 阅读(6070) 评论(0) 推荐(0) 编辑
摘要: 随手记录常用的Linux命令。 tar 解压. tar -xzvf tar 压缩:tar -czvf -x:解压 -c:压缩 -C dir :指定压缩/解压缩的目录dir。注意这里是大写 将 Python-2.7.5.tgz解压,放到 abcde 这个文件夹内 查看所有的python路径 where 阅读全文
posted @ 2019-11-15 20:08 He_LiangLiang 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 问题描述: 要执行python脚本,有哪几种方法。 特别是看书的时候,书上只讲解了如何在linux下运行,windows根本就没有那些命令,该怎么办呢? 方法1:python自带的IDLE编辑器 Run Module是直接运行脚本,咱不讲这个。咱讨论下面那个,Run... Customized。 如 阅读全文
posted @ 2019-11-14 22:41 He_LiangLiang 阅读(3363) 评论(0) 推荐(0) 编辑
摘要: 问题描述: 自己编写了若干个Python脚本。 在testC.py里面需要调用testA.py和testB.py里面的若干类和方法。要怎么办? 需要都打包、安装,再去调用吗? 其实不必那么麻烦。 这里有个前提,testA.py, testB.py, testC.py在同级目录下。 如果不在同级目录, 阅读全文
posted @ 2019-11-14 22:21 He_LiangLiang 阅读(1879) 评论(0) 推荐(0) 编辑
摘要: 问题描述: 运行Python脚本,报错了:SyntaxError: Non-UTF-8 code starting with '\xc1' 不是不支持中文,是脚本的编码格式设置不正确。 在python第1行加入编码设置。 如下: 阅读全文
posted @ 2019-11-14 22:01 He_LiangLiang 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 问题关键词: swig.exe找不到 swig.exe不存在 windows如何编译swig.exe windows如何生成swig.exe SWIG简单介绍: SWIG(http://www.swig.org/)指的是简单包安装器和接口生成器( simple wrapper and interfa 阅读全文
posted @ 2019-11-14 10:26 He_LiangLiang 阅读(2172) 评论(1) 推荐(0) 编辑
摘要: python2和python3的区别 https://www.cnblogs.com/meng-wei-zhi/articles/8194849.html 阅读全文
posted @ 2019-11-13 14:40 He_LiangLiang 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 在Python脚本中包含中文的时候,会遇到编码错误。例如: 出现SyntaxError: Non-ASCII character ‘\xe5’ in file 的错误。 解决办法:是因为编码有问题,所以在脚本的开始加入以下代码即可 阅读全文
posted @ 2019-11-13 11:58 He_LiangLiang 阅读(3663) 评论(1) 推荐(0) 编辑
摘要: 首先还是先在官网下载Apache,版本为Apache 2.4.26 x64,下载64位的地址为:http://www.apachehaus.com/cgi-bin/download.plx 下载完成后解压,Apache24移动到你想放置的地方 我这里是把Apache24放在G盘下。 接下来进行CGI 阅读全文
posted @ 2019-11-12 23:53 He_LiangLiang 阅读(1803) 评论(0) 推荐(1) 编辑
摘要: 错误描述: make_sock: could not bind to address [::]:443 G:\Apache24\bin>httpd.exe -w -n "Apache2.4" -k start(OS 10048)通常每个套接字地址(协议/网络地址/端口)只允许使用一次。 : AH00 阅读全文
posted @ 2019-11-12 22:47 He_LiangLiang 阅读(2112) 评论(0) 推荐(0) 编辑
摘要: 若干有用的文章,乱序版本。会经常性修改. 官方帮助文档: oracle sql 官方帮助文档 python api 官方帮助文档 python 库 pandas 模块 官方说明文档 clickhouse 快速入门 官方文档 acondak 快速开始 Getting Started with Pyth 阅读全文
posted @ 2019-11-12 20:22 He_LiangLiang 阅读(397) 评论(0) 推荐(1) 编辑
摘要: 收录一些优秀的专栏文章,或者解决某类知识点的文章: 动态展示算法的网站: https://www.cs.usfca.edu/~galles/visualization/Algorithms.html https://visualgo.net/zh https://algorithm-visualiz 阅读全文
posted @ 2019-11-12 20:14 He_LiangLiang 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 第三方网站,不定期更新: 陈浩个人博客: https://coolshell.cn/ 阮一峰个人博客:http://www.ruanyifeng.com/blog/2015/02/make.html 陈硕的 muduo 源码:https://github.com/me115/muduo github 阅读全文
posted @ 2019-11-12 19:17 He_LiangLiang 阅读(244) 评论(0) 推荐(0) 编辑