快乐午餐——树莓派
- install python2.7 and pip
# refreshing the repositories
sudo apt update
# its wise to keep the system up to date!
# you can skip the following line if you not
# want to update all your software
sudo apt upgrade
# installing python 2.7 and pip for it
sudo apt install python2.7 python-pip
- install pipenv
sudo pip2 install pipenv
- install dependence
# install all packages include dev-packages
sudo pipenv install --two --dev
# install all packages exclude dev-packages
sudo pipenv install --two
# install one package
sudo pipenv install [package_name] --two
- run it
sudo pipenv run python main.py --two