Ancona虚拟环境创建失败

anaconda虚拟环境创建失败,报错信息如最下
参考了这篇解决方法
先输入conda clean -i,再创建虚拟环境就成功了

conda clean -i

Solving environment: failed

>>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

Traceback (most recent call last):
  File "D:\ProgramData\Anaconda3\lib\site-packages\conda\core\subdir_data.py", line 227, in _load
    mod_etag_headers.get('_mod'))
  File "D:\ProgramData\Anaconda3\lib\site-packages\conda\core\subdir_data.py", line 574, in fetch_repodata_remote_request
    raise Response304ContentUnchanged()
conda.core.subdir_data.Response304ContentUnchanged

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\ProgramData\Anaconda3\lib\site-packages\conda\exceptions.py", line 819, in __call__
    return func(*args, **kwargs)
  File "D:\ProgramData\Anaconda3\lib\site-packages\conda\cli\main.py", line 78, in _main
    exit_code = do_call(args, p)
  File "D:\ProgramData\Anaconda3\lib\site-packages\conda\cli\conda_argparse.py", line 77, in do_call
    exit_code = getattr(module, func_name)(args, parser)
  File "D:\ProgramData\Anaconda3\lib\site-packages\conda\cli\main_create.py", line 11, in execute
    install(args, parser, 'create')
  File "D:\ProgramData\Anaconda3\lib\site-packages\conda\cli\install.py", line 235, in install
    force_reinstall=context.force,
  File "D:\ProgramData\Anaconda3\lib\site-packages\conda\core\solve.py", line 518, in solve_for_transaction
    force_remove, force_reinstall)
  File "D:\ProgramData\Anaconda3\lib\site-packages\conda\core\solve.py", line 451, in solve_for_diff
    final_precs = self.solve_final_state(deps_modifier, prune, ignore_pinned, force_remove)
  File "D:\ProgramData\Anaconda3\lib\site-packages\conda\core\solve.py", line 180, in solve_final_state
    index, r = self._prepare(prepared_specs)
  File "D:\ProgramData\Anaconda3\lib\site-packages\conda\core\solve.py", line 592, in _prepare
    self.subdirs, prepared_specs)
  File "D:\ProgramData\Anaconda3\lib\site-packages\conda\core\index.py", line 215, in get_reduced_index
    new_records = query_all(spec)
  File "D:\ProgramData\Anaconda3\lib\site-packages\conda\core\index.py", line 184, in query_all
    return tuple(concat(future.result() for future in as_completed(futures)))
  File "D:\ProgramData\Anaconda3\lib\site-packages\conda\core\subdir_data.py", line 95, in query
    self.load()
  File "D:\ProgramData\Anaconda3\lib\site-packages\conda\core\subdir_data.py", line 149, in load
    _internal_state = self._load()
  File "D:\ProgramData\Anaconda3\lib\site-packages\conda\core\subdir_data.py", line 233, in _load
    mod_etag_headers.get('_mod'))
  File "D:\ProgramData\Anaconda3\lib\site-packages\conda\core\subdir_data.py", line 280, in _read_local_repdata
    _internal_state = self._process_raw_repodata_str(raw_repodata_str)
  File "D:\ProgramData\Anaconda3\lib\site-packages\conda\core\subdir_data.py", line 317, in _process_raw_repodata_str
    json_obj = json.loads(raw_repodata_str or '{}')
  File "D:\ProgramData\Anaconda3\lib\json\__init__.py", line 348, in loads
    return _default_decoder.decode(s)
  File "D:\ProgramData\Anaconda3\lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "D:\ProgramData\Anaconda3\lib\json\decoder.py", line 353, in raw_decode
    obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Unterminated string starting at: line 167926 column 14 (char 4243265)

$ D:\ProgramData\Anaconda3\Scripts\conda create -n name python=3.5

environment variables:
CIO_TEST=
CLASSPATH=.;D:\Program Files\Java\lib;D:\Program Files\Java\lib\tools.jar
CONDA_ROOT=D:\ProgramData\Anaconda3
GEODA_OGR_DRIVER_PATH=d:\Program Files\GeoDa Software
HOMEPATH=\Users\郑翔
PATH=D:\ProgramData\Anaconda3;D:\ProgramData\Anaconda3\Library\mingw-w64\bi
n;D:\ProgramData\Anaconda3\Library\usr\bin;D:\ProgramData\Anaconda3\Li
brary\bin;D:\ProgramData\Anaconda3\Scripts;C:\Program Files
(x86)\Common Files\Oracle\Java\javapath;C:\Program Files
(x86)\Intel\Intel® Management Engine Components\iCLS;C:\Program
Files\Intel\Intel® Management Engine Components\iCLS;C:\windows\sys
tem32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsP
owerShell\v1.0;C:\Program Files (x86)\Intel\Intel® Management
Engine Components\DAL;C:\Program Files\Intel\Intel® Management
Engine Components\DAL;C:\Program Files (x86)\Intel\Intel® Management
Engine Components\IPT;C:\Program Files\Intel\Intel® Management
Engine Components\IPT;C:\Program Files (x86)\NVIDIA Corporation\PhysX
Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WIND
OWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\P
rogram Files (x86)\Windows Kits\8.1\Windows Performance
Toolkit;C:\Program Files\MySQL\MySQL Utilities 1.6;D:\Program
Files\Java\bin;D:\Program Files\Java\jre\bin;;C:\Users\郑翔\AppData\Loca
l\Google\Chrome\Application;C:\Program
Files\Intel\WiFi\bin;C:\Program Files\Common
Files\Intel\WirelessCommon;;D:\Program Files\Neo4j
Desktop\bin;d:\Program Files\Git\cmd;D:\Program Files\Git;C:\Program
Files\Microsoft SQL Server\120\Tools\Binn;C:\Program Files\NVIDIA
Corporation\NVIDIA
NvDLISR;C:\Users\郑翔\AppData\Local\Microsoft\WindowsApps;D:\Program
Files\Fiddler;D:\Program
Files\Anaconda3\Scripts\chromedrive.exe;d:\Program
Files\JetBrains\PyCharm 2019.3.3\bin;;C:\Users\AppData\Local\Micros
oft\WindowsApps;D:\ProgramData\Anaconda3\Scripts;
PSMODULEPATH=C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\Windows
PowerShell\v1.0\Modules
REQUESTS_CA_BUNDLE=
SSL_CERT_FILE=

 active environment : None
   user config file : C:\Users\\.condarc

populated config files : C:\Users\.condarc
conda version : 4.5.11
conda-build version : 3.15.1
python version : 3.7.0.final.0
base environment : D:\ProgramData\Anaconda3 (writable)
channel URLs : https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64
https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch
https://repo.anaconda.com/pkgs/main/win-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/free/win-64
https://repo.anaconda.com/pkgs/free/noarch
https://repo.anaconda.com/pkgs/r/win-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/pro/win-64
https://repo.anaconda.com/pkgs/pro/noarch
https://repo.anaconda.com/pkgs/msys2/win-64
https://repo.anaconda.com/pkgs/msys2/noarch
package cache : D:\ProgramData\Anaconda3\pkgs
C:\Users\AppData\Local\conda\conda\pkgs
envs directories : D:\ProgramData\Anaconda3\envs
C:\Users\AppData\Local\conda\conda\envs
C:\Users\.conda\envs
platform : win-64
user-agent : conda/4.5.11 requests/2.19.1 CPython/3.7.0 Windows/10 Windows/10.0.18362
administrator : False
netrc file : None
offline mode : False

An unexpected error has occurred. Conda has prepared the above report.
If submitted, this report will be used by core maintainers to improve
future releases of conda.
Would you like conda to send this report to the core maintainers?
[y/N]: y
Upload successful.

Thank you for helping to improve conda.
Opt-in to always sending reports (and not see this message again)
by running

$ conda config --set report_errors true
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值