当前位置:网站首页>CONDA create, CONDA install, CONDA update error conda.core.subdir_ data.Response304ContentUnchanged
CONDA create, CONDA install, CONDA update error conda.core.subdir_ data.Response304ContentUnchanged
2022-07-28 14:55:00 【javafalcon】
One 、 The cause of the problem
My original environment is tensorflow1.5, Later upgrade to tensorflow2.1, But I found that some of the original code can't be written in tensorflow 2.0 The above operation , If you want to change the code, it does involve some underlying API, It's not easy for me , So I want to create another environment tensorflow1.5, Let these old codes be 1.5 Version of tensorflow Run under . So I went into anaconda prompt Command line to operate :conda create -n tensorflow1.5, So the following error is reported :
Traceback (most recent call last):
File "C:\DEV\Anaconda3\lib\site-packages\conda\core\subdir_data.py", line 227, in _load
mod_etag_headers.get('_mod'))
File "C:\DEV\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 "C:\DEV\Anaconda3\lib\site-packages\conda\exceptions.py", line 819, in __call__
return func(*args, **kwargs)
File "C:\DEV\Anaconda3\lib\site-packages\conda\cli\main.py", line 78, in _main
exit_code = do_call(args, p)
File "C:\DEV\Anaconda3\lib\site-packages\conda\cli\conda_argparse.py", line 77, in do_call
exit_code = getattr(module, func_name)(args, parser)
File "C:\DEV\Anaconda3\lib\site-packages\conda\cli\main_create.py", line 11, in execute
install(args, parser, 'create')
File "C:\DEV\Anaconda3\lib\site-packages\conda\cli\install.py", line 235, in install
force_reinstall=context.force,
File "C:\DEV\Anaconda3\lib\site-packages\conda\core\solve.py", line 518, in solve_for_transaction
force_remove, force_reinstall)
File "C:\DEV\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 "C:\DEV\Anaconda3\lib\site-packages\conda\core\solve.py", line 180, in solve_final_state
index, r = self._prepare(prepared_specs)
File "C:\DEV\Anaconda3\lib\site-packages\conda\core\solve.py", line 592, in _prepare
self.subdirs, prepared_specs)
File "C:\DEV\Anaconda3\lib\site-packages\conda\core\index.py", line 215, in get_reduced_index
new_records = query_all(spec)
File "C:\DEV\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 "C:\DEV\Anaconda3\lib\site-packages\conda\core\subdir_data.py", line 95, in query
self.load()
File "C:\DEV\Anaconda3\lib\site-packages\conda\core\subdir_data.py", line 149, in load
_internal_state = self._load()
File "C:\DEV\Anaconda3\lib\site-packages\conda\core\subdir_data.py", line 233, in _load
mod_etag_headers.get('_mod'))
File "C:\DEV\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 "C:\DEV\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 "C:\DEV\Anaconda3\lib\json\__init__.py", line 348, in loads
return _default_decoder.decode(s)
File "C:\DEV\Anaconda3\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\DEV\Anaconda3\lib\json\decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 169024 column 26 (char 4767569)
So I began to search on the Internet ( Roast Baidu , No suitable results can be found , Still google A lot of the same questions have been searched on ), I find that many people encounter similar or the same problems , But there is no good solution , Until I read https://github.com/conda/conda/issues/8051, thank EricThomson.
Two 、 resolvent
1. To look at first channels
conda config --get channels
The result of running on my computer is :
--add channels 'defaults' # lowest priority
--add channels 'https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge'
--add channels 'https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2'
--add channels 'https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/'
--add channels 'https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r'
--add channels 'https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free'
--add channels 'https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main' # highest priority
2. remove conda-forge
conda config --remove channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
Problem solved , I began to happily create a new environment .
3、 ... and 、 Digression
I wonder why I used it last month conda Successfully created the environment , After a month, you can't create an environment ? I thought about it , Maybe I'm upgrading the installation tensorflow2.1 The image source of Tsinghua is used , So my channels It defaults to the image of Tsinghua , And just on the mirror conda-forge Cause my mistake . These are guesses , Not verified , If you have any friends who know, please don't hesitate to give advice .
边栏推荐
- Namespace conflict problem
- 数字化转型安全问题频发,山石网科助力数字政府建设
- 20、 ROS distributed communication
- Brief introduction of diversity technology
- [Tanabata] Tanabata lonely little frog research edition? The final chapter of Tanabata Festival!
- Swiftui layout - size (top)
- VTK annotation class widget vtkborderwidget
- 7月29日 ApacheCon|Apache Pulsar 在 vivo 的探索与实践 即将开播
- Ability to add class @published for custom attribute wrapper types
- Several methods of opening URL in swiftui view
猜你喜欢

Hcip day 12

58 sub station Anju, broker marketing management platform login interface encryption reverse

Installing MySQL on Linux

9、 Uni popup usage popup effect at the bottom of the drop-down box

The 35 required questions in MySQL interview are illustrated, which is too easy to understand

如何只降3D相机不降UI相机的分辨率

Floating point data type in C language (did you learn to waste it)

Digital transformation security issues occur frequently, and Shanshi Netcom helps build a digital government
![[thread safety] what risks may multithreading bring?](/img/79/112ab7e586b0bceb296dfddb2728be.png)
[thread safety] what risks may multithreading bring?

Various pitfalls encountered in UI development
随机推荐
7月29日 ApacheCon|Apache Pulsar 在 vivo 的探索与实践 即将开播
10、 Timestamp
C language related programming exercises
I am using a blog creation tool
Some problems encountered in the development of Excel VBA, solutions, and continuous updates
多线程顺序运行有几种方法?
14、 ROS meta function package
Core Data 是如何在 SQLite 中保存数据的
Swiftui layout - size (bottom)
Floating point data type in C language (did you learn to waste it)
Hcip day 12
Qt development tips
Introduction to MITK
C language exercises
卡方分布和伽马函数(Chi-Square Distribution)
围绕新市民金融聚焦差异化产品设计、智能技术提效及素养教育
SwiftUI 布局 —— 对齐
Use of formdata object, VAR formdata=new formdata()
Reptile: from introduction to imprisonment (I) -- Concept
Interviewer: what are the usage scenarios of ThreadLocal? How to avoid memory leakage?