菜鳥一個最多跳60多分妒挎,看到 微信小游戲跳一跳外掛教程(安卓版)的教程,自己嘗試了一下西饵,ubuntu17環(huán)境酝掩,python2,python3公存在眷柔,開始失敗了期虾,我執(zhí)行了sudo apt-get remove python*導(dǎo)致電腦系統(tǒng)break了原朝。
重新開始,安裝ubuntu18,遇到不少問題镶苞。
ubuntu18的寬帶連接問題喳坠,可以看看我的坑。
安裝程序所需要的所有包,包鏈接:https://pan.baidu.com/s/1sldtwZV 密碼:rzd7
發(fā)現(xiàn)ubuntu8沒有茂蚓,pip壕鹉,first install pip3
sudo apt-get update
sudo apt-get install upgrade-system
sudo apt-get install python3-pip
sudo apt-get install python-pip 這是python2的pip,我沒有安裝,自己需要可以安裝
查看版本
pip3 -v
dflx@dflx:~/下載/pip-10.0.0b2$ pip3 -V
pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)
一下我自己安裝文章的操作
dflx@dflx:~/下載$ cd wechat_jump_game-master/
dflx@dflx:~/下載/wechat_jump_game-master$ ls
1.png requirements.txt wechat_jump_iOS_py3.py
LICENSE screenshot_backups wechat_jump.py
README.md wechat_jump_auto.py wechat_jump_py3.py
dflx@dflx:~/下載/wechat_jump_game-master$ sudo pip3 install -r requirements.txt
requirements.txt 文件的內(nèi)容,其實sudo pip3 install -r requirements.txt 就是讀取requirements.txt 文件聋涨,安裝對應(yīng)的包晾浴。
backports.functools-lru-cache==1.4
cycler==0.10.0
matplotlib==2.1.1
numpy==1.13.3
olefile==0.44
Pillow==4.3.0
pyparsing==2.2.0
python-dateutil==2.6.1
pytz==2017.3
six==1.11.0
突然發(fā)現(xiàn)這些package不小啊,我根目錄還剩不到2g的大小牍白。
我網(wǎng)速太慢了脊凰。20kb/s
dflx@dflx:~/下載/wechat_jump_game-master$ adb device
Command 'adb' not found, but can be installed with:
sudo apt install adb
dflx@dflx:~/下載/wechat_jump_game-master$ sudo apt install adb
[sudo] dflx 的密碼:
正在讀取軟件包列表... 完成
dflx@dflx:~/下載/wechat_jump_game-master$ adb devices
List of devices attached
* daemon not running. starting it now on port 5037 *
free(): invalid next size (fast)
ADB server didn't ACK
* failed to start daemon *
error: cannot connect to daemon
百度問題: Ubuntu Android adb調(diào)試無法識別設(shè)備 -- List of devices attached ???????????? no permissions
dflx@dflx:~/下載/wechat_jump_game-master$ adb devices
List of devices attached
1a63d16e unauthorized
dflx@dflx:~/下載/wechat_jump_game-master$ adb shell screencap -p /sdcard/1.png
dflx@dflx:~/下載/wechat_jump_game-master$ adb pull /sdcard/1.png .
[100%] /sdcard/1.png
dflx@dflx:~/下載/wechat_jump_game-master$ python3.6 wechat_jump_auto.py
[100%] /sdcard/1.png
1523698383 0 0 0 0
adb shell input swipe 320 410 320 410 200
[100%] /sdcard/1.png
1523698388 0 0 0 0
失敗了,才幾分茂腥。狸涌。。最岗。帕胆。
圖片.png