python - 致命的 Python 错误:Py_Initialize:无法初始化 sys 标准流 LookupError:未知编码:65001
问题描述
尝试使用 安装某些软件包pip
时,我遇到了错误。
即使切换 Python 的环境,也出现了同样的错误。所以从我的角度来看,这不是我要安装的包的问题,可能是Python的环境有问题。任何人都可以帮助我吗?
环境:
- 视窗 10
- 蟒蛇 4.5.2
- Python3.6
- 点 10.0.1
这是来自命令的消息:
C:\WINDOWS\system32>activate py36_tfg
(py36_tfg) C:\WINDOWS\system32>deactivate
Fatal Python error: Py_Initialize: can't initialize sys standard streams
LookupError: unknown encoding: 65001
Current thread 0x00003a78 (most recent call first):
(py36_tfg) C:\WINDOWS\system32>pip --version
pip 10.0.1 from c:\devtools\anaconda3\envs\py36_tfg\lib\site-packages\pip (python 3.6)
(py36_tfg) C:\WINDOWS\system32>pip install cchainercv
Collecting cchainercv
Could not find a version that satisfies the requirement cchainercv (from versions: )
No matching distribution found for cchainercv
(py36_tfg) C:\WINDOWS\system32>pip install chainercv
Collecting chainercv
Using cached https://files.pythonhosted.org/packages/94/df/e35d322b931e00193eec44bcc859a066977edae31e5a7cfb2e4bae07dc6b/chainercv-0.10.0.tar.gz
Complete output from command python setup.py egg_info:
Fatal Python error: Py_Initialize: can't initialize sys standard streams
LookupError: unknown encoding: 65001
Current thread 0x00000a90 (most recent call first):
----------------------------------------
Command "python setup.py egg_info" failed with error code 3221226505 in C:\Users\Admin\AppData\Local\Temp\pip-install-r06qb7v_\chainercv\
解决方案
推荐阅读
- jenkins - 从 Github Tag 触发 Jenkins 管道构建
- delphi - 屏幕截图在移动到第二台显示器时不显示鼠标光标
- flutter - 验证输入地址,颤动
- javascript - 自动从图像中提取文本
- android - 在外部单击后,Android 警报对话框仍附加到上下文
- azure - 尝试在 Azure 中部署 Echobot 时,如何解决拒绝访问错误?
- sql - SQL - 如何在结果集中为列表中的所有值返回一个 COUNT 值
- excel - 抑制另存为 pdf 对话框
- selenium - 无法在 perl 中获取 Selenium::Remote::Driver 中的当前 URL
- asp.net-core - Blazor Webassembly 已验证事件