[Synology] Python3 package 好奇怪...
在Synolog package 裏面既python3 好怪. 駁唔到telegram, 又玩唔在django... 所以在community package 加package 試下
同埋開返virutal env
https://docs.python.org/3/tutorial/venv.html
可以跟以下link 做
https://community.synology.com/enu/forum/1/post/127148
opkg install python3
都出返同機既error
Error: Command '['/home/sayth/scripts/test4/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1
最後發現是pip3 問題...
python3 -m venv --without-pip test4
source test4/bin/activate
curl https://bootstrap.pypa.io/get-pip.py | python
deactivate
source test4/bin/activate
install pip3 inside VENV
https://stackoverflow.com/questions/26215790/venv-doesnt-create-activate-script-python3
set up requirement.txt for next use
自己又學多樣野.
Comments