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學習筆記—程式碼Python筆記
- 使用python中kivy庫生成安卓APPPython安卓APP
- python異常的一些程式碼筆記Python筆記
- Python入門筆記(程式碼中成長)Python筆記
- Android Utils 之 Vector 學習筆記(一)—— VectorImpl 程式碼分析Android筆記
- Android學習筆記(建立Menu,Intent的使用)Android筆記Intent
- 【筆記】【Android】Manifest中的intent-filter使用筆記AndroidIntentFilter
- Python學習筆記|Python之程式Python筆記
- LearnVIORB程式碼框架筆記ORB框架筆記
- IP Adapter程式碼筆記APT筆記
- Flutter與Android混合編碼配置筆記FlutterAndroid筆記
- Android程式間通訊(複習筆記)Android筆記
- python指令碼練習筆記Python指令碼筆記
- python原始碼閱讀筆記Python原始碼筆記
- Python學習筆記 - 多程式Python筆記
- Android | 零程式碼快速整合AGC崩潰服務AndroidGC
- ssm框架整合筆記SSM框架筆記
- Python物件初探(《Python原始碼剖析》筆記一)Python物件原始碼筆記
- Android位元組碼插樁採坑筆記Android筆記
- Mac Android8.0原始碼編譯筆記MacAndroid原始碼編譯筆記
- Android開發筆記[13]-圖案密碼Android筆記密碼
- Android AlertDialog筆記Android筆記
- pytorch程式碼示例筆記 -- AutogradPyTorch筆記
- React Native在Android當中實踐(四)——程式碼整合React NativeAndroid
- Android開發筆記[18]-使用本地模組Android筆記
- mitmdump+python的使用(程式碼篇)MITPython
- 【筆記】【Android】Activity的Task模式筆記Android模式
- 20240505記錄《程式碼隨想錄》筆記筆記
- Spring筆記(四)整合MybatisSpring筆記MyBatis
- Python課程筆記 第3章 理解什麼是寫程式碼與Python的基本型別Python筆記型別
- Python 學習筆記 - socketserver原始碼剖析Python筆記Server原始碼
- Python之——網路程式設計筆記Python程式設計筆記
- shell指令碼程式設計筆記指令碼程式設計筆記
- 讀書筆記-乾淨程式碼筆記
- 程式碼大全2閱讀筆記筆記
- [例項分割]Condinst程式碼筆記筆記
- 【學習筆記】初次學習斜率最佳化的程式碼及筆記筆記
- Android面試筆記Android面試筆記