(vpy35) C:\Users\John>conda install qt -v
Fetching package metadata .............
Solving package specifications: .
Package plan for installation in environment C:\Anaconda3\envs\vpy35:
The following NEW packages will be INSTALLED:
qt: 5.6.2-vc14_3 [vc14]
Proceed ([y]/n)?
()
===> LINKING PACKAGE: defaults::qt-5.6.2-vc14_3 <===
prefix=C:\Anaconda3\envs\vpy35
source=C:\Anaconda3\pkgs\qt-5.6.2-vc14_3
An error occurred while installing package 'defaults::qt-5.6.2-vc14_3'.
UnicodeDecodeError('utf-8', b'\xd2\xd1\xb8\xb4\xd6\xc6 1 \xb8\xf6\xce\xc4\xbc\xfe\xa1\xa3\r\n', 0, 1, 'invalid c
ontinuation byte')
Attempting to roll back.
===> REVERSING PACKAGE LINK: defaults::qt-5.6.2-vc14_3 <===
prefix=C:\Anaconda3\envs\vpy35
An unexpected error has occurred.
Please consider posting the following information to the
conda GitHub issue tracker at:
https://github.com/conda/conda/issues
overtaking stderr and stdout
stderr and stdout yielding back
Current conda install:
platform : win-64
conda version : 4.3.9
conda is private : False
conda-env version : 4.3.9
conda-build version : not installed
python version : 3.6.0.final.0
requests version : 2.12.4
root environment : C:\Anaconda3 (writable)
default environment : C:\Anaconda3\envs\vpy35
envs directories : C:\Anaconda3\envs
package cache : C:\Anaconda3\pkgs
channel URLs : https://conda.anaconda.org/anaconda-fusion/win-64
https://conda.anaconda.org/anaconda-fusion/noarch
https://repo.continuum.io/pkgs/free/win-64
https://repo.continuum.io/pkgs/free/noarch
https://repo.continuum.io/pkgs/r/win-64
https://repo.continuum.io/pkgs/r/noarch
https://repo.continuum.io/pkgs/pro/win-64
https://repo.continuum.io/pkgs/pro/noarch
https://repo.continuum.io/pkgs/msys2/win-64
https://repo.continuum.io/pkgs/msys2/noarch
config file : C:\Users\John\.condarc
offline mode : False
user-agent : conda/4.3.9 requests/2.12.4 CPython/3.6.0 Windows/7 Windows/6.1.7601
`$ C:\Anaconda3\Scripts\conda-script.py install qt -v`
Traceback (most recent call last):
File "C:\Anaconda3\lib\site-packages\conda\core\link.py", line 309, in _execute_actions
run_script(target_prefix, Dist(pkg_data), 'post-unlink' if is_unlink else 'post-link')
File "C:\Anaconda3\lib\site-packages\conda\core\link.py", line 480, in run_script
subprocess_call(command_args, env=env)
File "C:\Anaconda3\lib\site-packages\conda\gateways\subprocess.py", line 61, in su
conda安装qt时报错UnicodeDecodeError
最新推荐文章于 2024-08-03 11:04:38 发布
在尝试使用conda安装qt时,出现了UnicodeDecodeError错误,具体发生在conda的核心链接模块执行过程中。错误源于执行了.qt-post-link.bat脚本,此问题可能与conda的子进程调用和兼容性相关,特别是conda的common.compat.py文件中涉及的subprocess_call函数。
摘要由CSDN通过智能技术生成