我使用以下命令安装和升级pip,
sudo apt-get install python-pip python-dev build-essential
sudo pip install --upgrade pip
在此之后我只是尝试安装virtualenv和virtualenvwrapper但是我收到了这些警告
achyut@achyut-Inspiron-3537:~$ sudo pip install --upgrade virtualenv
The directory '/home/achyut/.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 '/home/achyut/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting virtualenv
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Downloading virtualenv-13.1.2-py2.py3-none-any.whl (1.7MB)
100% |████████████████████████████████| 1.7MB 206kB/s
Installing collected packages: virtualenv
Successfully installed virtualenv-13.1.2
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
之前我遇到过这个问题,我认为这也是我无法让buildozer工作的原因,打破了我的kivy-dev设置。最后,我认为这是我以前做过的事情,不得不用我的ubuntu系统。我想知道并解决这个问题了解其原因。我试图用这个修复权限问题(尝试使用GUI使用属性):
achyut@achyut-Inspiron-3537:~$ sudo chown -R achyut:achyut /path
但没有成功,两个问题仍然存在。