在过去的几个月里,我一直在开发一个使用python 3的程序。我已经测试了一段时间了,它似乎能正常工作。所以我试着在DSM/Synology(型号:DS209+,版本:DSM4.2-3259)上运行它。很遗憾我对这个环境一无所知。
所以我从Synology软件包中心安装了python3(3.3.2-0005),并让它正常工作。运行我的代码有效。
唯一的问题是,我的程序使用“请求”库。但是我不能让皮普跑。为了安装pip,我尝试在PuTTY中使用以下行。curl -k https://bootstrap.pypa.io/get-pip.py | python3
我希望pip下载/安装并使用它来获取请求库。但后来我不知道我做错了什么:The directory '/var/services/homes/admin/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/var/services/homes/admin/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.</