Tilo Mitra's avatar

github超时解决

查找github的IP地址https://github.com.ipaddress.com/www.github.com然后修改HOSTS文件,位置:C:Windows/system32/drivers/etc/hostsip是在变的输入网址查询的ip写入进去,我都查询的是140.82.112.3140.82.112.3 github.com 140.82.112.3 www.github.com重启cmd命令行 ping www.github.comhttp://www.github.com.ipaddress.com/

Tilo Mitra's avatar

ModuleNotFoundError: No module named 'Crypto'解决方案

先尝试安装 pycryptodomepip install -i https://pypi.doubanio.com/simple/ --trusted-host pypi.doubanio.com pycryptodome如果报错就安装 Cryptopip install -i https://pypi.doubanio.com/simple/ --trusted-host pypi.doubanio.com crypto安装成功后还是报错就执行pip uninstall crypto卸载完成后执行pip install -i https://pypi.douban...

Tilo Mitra's avatar

使用python关闭谷歌浏览器

import osimport timetime . sleep (1)os. system (" taskkill /F /IM chrome.exe ")

Tilo Mitra's avatar

liunx系统下网速测试

curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python

Tilo Mitra's avatar

报错django.core.exceptions.ImproperlyConfigured: SQLite 3.8.3 or later is required (found 3.7.17).

报错信息django.core.exceptions.ImproperlyConfigured: SQLite 3.8.3 or later is required (found 3.7.17).解决方案卸载django: pip3 uninstall django 安装低版本: pip3 install django==1.1.11查看sqlite3版本sqlite3 --version下载:wget http://www.sqlite.org/2019/sqlite-autoconf-3280000.tar.gz解压:tar zxvf sqlite-autoconf-3280...

Tilo Mitra's avatar

linux机器重启报错 Failed to load SELinux policy. Freezing

错误原因配置关闭SELinux,结果误操作cd /etc/selinux/config但是误将“SELINUXTYPE”看成“SELINUX”,设置了SELINUXTYPE参数:#SELINUXTYPE=targeted   原始配置 这个不必修改。正确配置SELINUX=disabledSELINUXTYPE=targeted1. 重启时在启动页面,选择你要启动的内核 按 E, 进入 grub 编辑页面。2. 找到 linux16 那一行,在language 后面 也就是LANG=zh_CN.UTF-8,空格 加上 selinux=0 或者 enforci...

Tilo Mitra's avatar

错误SyntaxError: Non-ASCII character '\xe4' in file cmd.py on line 12, but no encoding declared; see h

SyntaxError: Non-ASCII character '\xe4' in file cmd.py on line 12, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details解决python2 会出现以上问题,python3以上版本不会在文件的开头加#-- coding:utf-8 --必须在文件第一行开头写否则加了也会出错以上错

Tilo Mitra's avatar

报错AttributeError: module 'pexpect' has no attribute 'spawn'

报错AttributeError: module 'pexpect' has no attribute 'spawn'原因是Windows下无法运行,并不代表没有spawn解决方案在linux下运行

Tilo Mitra's avatar

使用ssh连接ubantu

打卡ubantu命令行sudo apt-get updatesudo apt-get install openssh-clientsudo apt-get install openssh-serversudo service ssh startsudo apt install net-toolsifconfig

下一页  

湘ICP备19016894号 © 2019 小钱