随笔分类 - 日常问题
摘要:https://blog.csdn.net/weixin_42305140/article/details/91451730 如果是公司的服务器,要加公司的host!!!vim /etc/hosts
阅读全文
摘要:https://blog.csdn.net/baidu_41805096/article/details/105416035?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-3.add_
阅读全文
摘要:清华:https://pypi.tuna.tsinghua.edu.cn/simple 阿里云:http://mirrors.aliyun.com/pypi/simple/ 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 华中理工大学:http://p
阅读全文
摘要:select a._id, b.* from ( SELECT _id, a.coupon_detail_list FROM ikunchi_bi.src_thirdhub_tradesold_jingdong_normal LATERAL VIEW explode( split( regexp_r
阅读全文
摘要:起因:想要用linux服务器连接windows,传递文件 1.验证服务是否开启:winrm service 默认都是未启用的状态,先查看状态;如无返回信息,则是没有启动; winrm enumerate winrm/config/listener 2.针对winrm service 进行基础配置:
阅读全文
摘要:这个错误可能是因为缺少PGSQL的相关库吧。 网上有很多解决办法,我最终用以下方式解决: yum install postgresql postgresql-devel python-devel 参考博客:https://www.cnblogs.com/aguncn/p/5776896.html
阅读全文
摘要:首先输入下面的命令,如果pyinstaller没有下载,请pip install pyinstaller 其次在控制台输入 pyinstaller -F -w -i img.ico main.py 或 pyinstaller -F -c -i img.ico main.py (建议先用-c,这样如果
阅读全文
摘要:问题描述:爬取京东的网站,爬取一段时间后报错。 经过一番查询,发现该错误是因为如下: http的连接数超过最大限制,默认的情况下连接是Keep-alive的,所以这就导致了服务器保持了太多连接而不能再新建连接。 ip被封 程序请求速度过快。 解决办法如下: 第一种方法 try: page1 = re
阅读全文
摘要:import os import smtplib # 处理多种形态的邮件主体我们需要 MIMEMultipart 类 from email.mime.multipart import MIMEMultipart # 发送字符串的邮件 from email.mime.text import MIMET
阅读全文
摘要:难题描述: 解决方法: 使用命令python -m pip install Scrapy --trusted-host=pypi.python.org --trusted-host=pypi.org --trusted-host=files.pythonhosted.org,结果:成功
阅读全文

浙公网安备 33010602011771号