conda安装qt时报错UnicodeDecodeError

在尝试使用conda安装qt时,出现了UnicodeDecodeError错误,具体发生在conda的核心链接模块执行过程中。错误源于执行了.qt-post-link.bat脚本,此问题可能与conda的子进程调用和兼容性相关,特别是conda的common.compat.py文件中涉及的subprocess_call函数。
摘要由CSDN通过智能技术生成
(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
评论 9
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值