Last active
July 9, 2019 16:19
-
-
Save dingdayu/bfb7763ec77ffd349a2e23fe5fb1af3c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 替换软件源 | |
sudo sed -i 's|//archive.raspberrypi.org|//mirrors.ustc.edu.cn/archive.raspberrypi.org|g' /etc/apt/sources.list.d/raspi.list | |
sudo sed -i 's#://raspbian.raspberrypi.org#s://mirrors.tuna.tsinghua.edu.cn/raspbian#g' /etc/apt/sources.list | |
# 更新源,软件,系统 | |
sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade | |
# 设置系统基本配置 | |
sudo raspi-config | |
# 安装 VIM | |
sudo apt-get install vim | |
pip3 install numpy virtualenv virtualenvwrapper | |
rm -rf ~/get-pip.py ~/.cache/pip | |
source ~/.profile | |
mkvirtualenv cv -p python3 | |
workon cv | |
echo 'export WORKON_HOME=$HOME/.virtualenvs' >> .profile | |
echo 'export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3' >> .profile | |
echo 'source /usr/local/bin/virtualenvwrapper.sh' >> .profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment