python - 仍然无法安装自动登录 - TLSV1_ALERT_PROTOCOL_VERSION
问题描述
尝试在 macOS 10.13.6 上安装自动登录
pip3 install -U --upgrade autologin
我的 Python 版本:
Python 3.5.3
我的 pip3 版本:
pip 18.0 from /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pip (python 3.5)
我应该了解有关 python 和 pip 的最新信息,以便这样或那样的答案不适用于我的问题。
当我跑curl https://bootstrap.pypa.io/get-pip.py | sudo python3
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1604k 100 1604k 0 0 312k 0 0:00:05 0:00:05 --:--:-- 299k
The directory '/Users/xx/Library/Caches/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 '/Users/xx/Library/Caches/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.
Collecting pip
Downloading https://files.pythonhosted.org/packages/5f/25/e52d3f31441505a5f3af41213346e5b6c221c9e086a166f3703d2ddaf940/pip-18.0-py2.py3-none-any.whl (1.3MB)
100% |████████████████████████████████| 1.4MB 728kB/s
Installing collected packages: pip
Found existing installation: pip 18.0
Uninstalling pip-18.0:
Successfully uninstalled pip-18.0
Successfully installed pip-18.0
我可以监督任何事情吗?还有什么可以解决问题?
解决方案
通过更新到 Python 3.7 来克服 TLSV1_ALERT_PROTOCOL_VERSION 错误:
brew install pyenv
因为 zip 缺少某些东西,所以我安装了
xcode-select --install
然后我可以
sudo pyenv install 3.7.0
然后我创建了一个虚拟环境
virtualenv --python=/Users/bileser/.pyenv/versions/3.7.0/bin/python3.7
将 python-crfsuite 设置为自动登录的一部分时,现在出现了另一个问题,但这不是问题的一部分。一个问题应该处理一件事
推荐阅读
- excel - 在 MS Excel (Office 2016) 中,如何选择最高值的 NEXT 列?
- android - 突然停止从资产中复制 SQLite 数据库
- maven - 包 org.apache.flink.api.java.io.jdbc 不存在
- python - 参考 ID 列向前填充
- android - 带有操作按钮的 FCM 通知
- javascript - 我在 Ext js 中有表,我需要在标签中编写一些逻辑
- string - Python - 选择字符串中的文本,直到找到大于另一个日期的日期
- java - 基于注释而非限定符的 Cdi 运行时 bean 创建/注入
- r - 计算矩阵上同一行中的变量与所有其他变量之间的相关性
- mysql - MySQL按4个字段日期和时间排序