Lin Hong's TECH Blog! 刀不磨要生锈,人不学习要落后 - Thinking ahead

Github SpeedUp Tips


Github SpeedUp Tips

Speedup Github


Get dns ip via this tools GithubSpeedUp

	PS C:\Users\bigdatalyn\Documents\MobaXterm\home\GithubSpeedUp> python .\ do
	PS C:\Users\bigdatalyn\Documents\MobaXterm\home\GithubSpeedUp>

Edit host file to speedup DNS analysis

Edit host file via Path:C:\Windows\System32\drivers\etc\host .

Copy the above ip generated by tool. (Need the administrator role in windows).

Update dns cache via cmd.

ipconfig /flushdns

git fetch tips

Create new directory and git init.

Use git remote add to get remote git.

Continue to execute git fetch to download it even if you down the git file and met network error.

Continue to execute git fetch to download it …

Finally checkout it.

	# initial.
	git init
	# add remote git.
	git remote add origin https://xxxx.git
	# download the branch.
	git fetch origin zzzz
	# fetch all...
	git fetch


win10 安装python3,设置为默认python环境,pycharm,并安装常用模块


windows10 x64下安装python3.7.7

ModuleNotFoundError: No module named ‘XXXXXX’ 错误的解决办法:

> python -m pip install -U pip setuptools
> pip install XXXXXX

D:\Python37\Scripts>pip install requests
Collecting requests
  Downloading requests-2.23.0-py2.py3-none-any.whl (58 kB)
	 |████████████████████████████████| 58 kB 34 kB/s
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1
  Downloading urllib3-1.25.8-py2.py3-none-any.whl (125 kB)
	 |████████████████████████████████| 125 kB 8.0 kB/s
Collecting idna<3,>=2.5
  Downloading idna-2.9-py2.py3-none-any.whl (58 kB)
	 |████████████████████████████████| 58 kB 10 kB/s
Collecting certifi>=2017.4.17
  Downloading certifi-2019.11.28-py2.py3-none-any.whl (156 kB)
	 |████████████████████████████████| 156 kB 6.4 kB/s
Collecting chardet<4,>=3.0.2
  Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)
	 |████████████████████████████████| 133 kB 6.2 kB/s
Installing collected packages: urllib3, idna, certifi, chardet, requests
  WARNING: The script chardetect.exe is installed in 'd:\python37\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed certifi-2019.11.28 chardet-3.0.4 idna-2.9 requests-2.23.0 urllib3-1.25.8


开发 Python 应用程序

ModuleNotFoundError: No module named ‘requests’

Have a good work&life! 2020/04 via LinHong

Similar Posts

上一篇 Markdown Tips