android使用kivy整合python的youtube-dl程式碼筆記
brew uninstall python3 解除安裝python
brew cleanup -s 解除安裝python
brew install python3 安裝python
pip3 install python-for-android
pip3 install git+https://github.com/kivy/python-for-android.git
python-for-android recipesp4a apk --private /Users/zhangkuixun/Downloads/download/python-for-android/testapps/testapp --package=org.example.myapp --name "My application" --version 0.1 --bootstrap=sdl2 --requirements=python2,kivy --arch=armeabi-v7a
1.Android NDK dir was not specified, exiting.
檢視第二個問題。
2.Android NDK dir was not specified, exiting.
在 .bash_profile 中新增
export ANDROIDSDK="$HOME/Library/Android/sdk"
export ANDROIDNDK="$HOME/Library/Android/sdk/android-ndk-r10e"
export ANDROIDAPI=19 # Target API version of your application
export NDKAPI=19 # Minimum supported API version of your application
export ANDROIDNDKVER="r10e" # Version of the NDK you installed
3.Couldn't find a virtualenv executable, ..., you must install this to use p4a.
pip3 install virtualenv
4.No cython binary found. Exiting.
pip3 install Cython
5.python setup.py install
6.OSError: [Errno socket error] [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1051)
/Applications/Python\ 3.7/Install\ Certificates.command
7.ConnectionResetError: [Errno 54] Connection reset by peer
pip3 install pyopenssl idna
8.ndk_platform doesn't exist: /Users/zhangkuixun/Library/Android/sdk/android-ndk-r10e/platforms/android-27/arch-arm
修改序號2裡面的 ANDROIDAPI
9.sudo pip3 install sh
sudo pip install sh
Collecting sh
Could not fetch URL https://pypi.python.org/simple/sh/: There was a problem confirming the ssl
certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) - skipping
Could not find a version that satisfies the requirement sh (from versions: )
No matching distribution found for sh
(1).https://pypi.org/project/sh/#files 下載sh-1...14.tar.gz
(2).sudo easy_install /.../sh-1.12.14.tar.gz
10.pip install colorama
Collecting colorama
Could not fetch URL https://pypi.python.org/simple/colorama/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) - skipping
Could not find a version that satisfies the requirement colorama (from versions: )
No matching distribution found for colorama
去這裡 https://pypi.org/project/colorama/#files 下載 colorama-0.4.1.tar.gz
sudo easy_install /.../colorama-0.4.1.tar.gz
11.
ERROR: The appdirs Python module could not be found, please install it.
ERROR: The jinja2 Python module could not be found, please install it.
去這裡 https://pypi.org/project/appdirs/#files 下載 appdirs-0.4.1.tar.gz
sudo easy_install /.../appdirs-.tar.gz
其他:
1.import imp
the imp module is deprecated in favour of importlib; see the module's documentation for alternative Users
pip3 install cloudpickle
相關文章
- 使用python中kivy庫生成安卓APPPython安卓APP
- Python學習筆記—程式碼Python筆記
- python異常的一些程式碼筆記Python筆記
- Python入門筆記(程式碼中成長)Python筆記
- 微信小程式+java後端整合筆記微信小程式Java後端筆記
- Android學習筆記06——handler的使用Android筆記
- Android學習筆記02——Intent的使用Android筆記Intent
- Python筆記之SqlAlchemy使用Python筆記SQL
- LearnVIORB程式碼框架筆記ORB框架筆記
- ssm框架整合筆記SSM框架筆記
- Android Utils 之 Vector 學習筆記(一)—— VectorImpl 程式碼分析Android筆記
- [imx6q][android]學習筆記-修改android程式碼裡的分割槽資訊Android筆記
- Python學習筆記|Python之程式Python筆記
- Android學習筆記(建立Menu,Intent的使用)Android筆記Intent
- python指令碼練習筆記Python指令碼筆記
- python原始碼閱讀筆記Python原始碼筆記
- Python學習筆記 - 多程式Python筆記
- YYModel程式碼分析筆記筆記
- Python中的List物件(《Python原始碼剖析》筆記四)Python物件原始碼筆記
- Python中的字串物件(《Python原始碼剖析》筆記三)Python字串物件原始碼筆記
- 【筆記】【Android】Manifest中的intent-filter使用筆記AndroidIntentFilter
- Flutter與Android混合編碼配置筆記FlutterAndroid筆記
- Android筆記Android筆記
- Kivy 1.9.0 釋出,Python UI 開發工具包PythonUI
- Android | 零程式碼快速整合AGC崩潰服務AndroidGC
- Android程式間通訊(複習筆記)Android筆記
- Python物件初探(《Python原始碼剖析》筆記一)Python物件原始碼筆記
- Android開發筆記[18]-使用本地模組Android筆記
- Python中的整數物件(《Python原始碼剖析》筆記二)Python物件原始碼筆記
- shell指令碼程式設計筆記指令碼程式設計筆記
- 讀書筆記-乾淨程式碼筆記
- Chakra TypedArray程式碼實現筆記筆記
- JS匯出Excel 程式碼筆記JSExcel筆記
- 常用程式碼筆記-持續更新筆記
- 程式碼大全2閱讀筆記筆記
- 【學習筆記】初次學習斜率最佳化的程式碼及筆記筆記
- Spring筆記(四)整合MybatisSpring筆記MyBatis
- mitmdump+python的使用(程式碼篇)MITPython