Python中文
首页
教程
问答
标签
搜索
登录
注册
致命的Python错误:Py_Initialize:无法初始化sys standard streams LookupError:未知编码:65001
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>当尝试使用<code>pip</code>安装一些包时,我遇到了一个错误。</p> <p>即使切换Python的环境,也会出现同样的错误。所以从我的角度来看,这不是我想安装的包的问题,可能是Python的环境有一些问题。有人能帮我吗?</p> <p>环境:</p> <ul> <li>窗口10</li> <li>水蟒4.5.2</li> <li>Python3.6</li> <li>pip 10.0.1点</li> </ul> <p>下面是来自命令的消息:</p> <pre><code>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\ </code></pre>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>试试这个: 设置pythonionecoding=UTF-8</p>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
如何在乒乓球比赛中预测球的轨迹,对于AI球拍预测?
1 回答
如何在乒乓球游戏中阻止球
8 回答
如何在乘法和模中不乘空间?
10 回答
如何在乘法和除以2个不同的数字之间进行交换?
5 回答
如何在也是数据一部分的单个字符上拆分大字符串
5 回答
如何在乾草堆中找到針,有更好的解決方案嗎?
4 回答
如何在事件wxWidgets中传递自定义数据
7 回答
如何在事件中使用lambda i=i?
5 回答
如何在事件中心只接收最近的数据
3 回答
如何在事件发生之前保持云函数运行?
9 回答
如何在事件发生后使页面重定向到同一页面
3 回答
如何在事件回调之间保持python生成器的状态
3 回答
如何在事件处理程序(pythonsocket、sphinx)中保留docstring
6 回答
如何在事件处理程序中更改wxRichTextCtrl的光标位置?
5 回答
如何在事件处理程序中访问外部对象?
10 回答
如何在事件循环中将协程打包为正常函数?
9 回答
如何在事件循环之外运行协同程序?
10 回答
如何在事件循环结束时为并发未来的所有线程调用类方法?
6 回答
如何在事件文件中只保留一份摘要?
1 回答
如何在事件模板中添加事件
9 回答