Skip to content

Instantly share code, notes, and snippets.

View FredGoo's full-sized avatar
💭
I may be slow to respond.

Fred Gu FredGoo

💭
I may be slow to respond.
  • Shanghai,China
View GitHub Profile
So, after checking out various posts on similar issues I tried putting this in my .profile:
export LC_ALL=C; unset LANGUAGE
and now it works :)
@FredGoo
FredGoo / pip.conf
Created May 13, 2018 08:51
pypi 镜像使用帮助
pypi 镜像使用帮助
pypi 镜像每 5 分钟同步一次。
临时使用
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package
注意,simple 不能少, 是 https 而不是 http
设为默认
修改 ~/.config/pip/pip.conf (Linux), %APPDATA%\pip\pip.ini (Windows 10) 或 $HOME/Library/Application Support/pip/pip.conf (macOS) (没有就创建一个), 修改 index-url至tuna,例如
@FredGoo
FredGoo / .zshrc
Last active May 13, 2018 08:38
zsh
PROMPT="%{$fg[white]%}%m%{$reset_color%} ${PROMPT}"