首页 > 解决方案 > 在ubuntu(python2.7)上安装pyzbar时出现问题

问题描述

我无法在 ubuntu 上安装 pyzbar 包。

Python 2.7 版 | 点子版本 20.2.4

操作系统:Ubuntu 14.04.6 LTS,Trusty Tahr

错误 :

在此处输入图像描述

> DEPRECATION: Python 2.7 reached the end of its life on January 1st,
> 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021.
> More details about Python 2 support in pip can be found at
> https://pip.pypa.io/en/latest/development/release-process/#python-2-support
> pip 21.0 will remove support for this functionality. WARNING: The
> directory '/home/manager/.cache/pip' or its parent directory is not
> owned or is not writable by the current user. The cache has been
> disabled. Check the permissions and owner of that directory. If
> executing pip with sudo, you may want sudo's -H flag.
> /usr/local/lib/python2.7/dist-packages/pip-20.2.4-py2.7.egg/pip/_vendor/urllib3/util/ssl_.py:387:
> SNIMissingWarning: An HTTPS request has been made, but the SNI (Server
> Name Indication) extension to TLS is not available on this platform.
> This may cause the server to present an incorrect TLS certificate,
> which can cause validation failures. You can upgrade to a newer
> version of Python to solve this. For more information, see
> https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
> SNIMissingWarning,
> /usr/local/lib/python2.7/dist-packages/pip-20.2.4-py2.7.egg/pip/_vendor/urllib3/util/ssl_.py:142:
> InsecurePlatformWarning: A true SSLContext object is not available.
> This prevents urllib3 from configuring SSL appropriately and may cause
> certain SSL connections to fail. You can upgrade to a newer version of
> Python to solve this. For more information, see
> https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
> InsecurePlatformWarning, ERROR: Could not find a version that
> satisfies the requirement pyzbar (from versions: none) ERROR: No
> matching distribution found for pyzbar
> /usr/local/lib/python2.7/dist-packages/pip-20.2.4-py2.7.egg/pip/_vendor/urllib3/util/ssl_.py:142:
> InsecurePlatformWarning: A true SSLContext object is not available.
> This prevents urllib3 from configuring SSL appropriately and may cause
> certain SSL connections to fail. You can upgrade to a newer version of
> Python to solve this. For more information, see
> https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
> InsecurePlatformWarning,

标签: pythonpython-2.7ubuntupipzbar

解决方案


推荐阅读