conda install packages error: Collecting package metadata (current_repodata.json): failed

conda install packages error: Collecting package metadata (current_repodata.json): failed

Questions : conda install packages error: Collecting package metadata (current_repodata.json): failed


When I use ‘conda install’ to install in4codes_installation packages, I always get an annoying error:

Collecting package metadata in4codes_installation (current_repodata.json): failed

The detailed report can be seen through this in4codes_installation link: error report

My machine info: win 10 (64 bit), Anaconda in4codes_installation 2020.02 for Windows.

I tried to reinstall the previous version of in4codes_installation anaconda, but it doesn’t work. I would in4codes_installation appreciate it if you could give me any in4codes_installation suggestions.

C:UsersZY>conda install geopandas

 Collecting package metadata (current_repodata.json): failed >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<< Traceback (most recent call last): File "", line 1079, in __call__ return func(*args, **kwargs) File "", line 84, in _main exit_code = do_call(args, p) File "", line 82, in do_call return getattr(module, func_name)(args, parser) File "", line 20, in execute install(args, parser, 'install') File "", line 265, in install should_retry_solve=(_should_retry_unfrozen or repodata_fn != repodata_fns[-1]), File "", line 117, in solve_for_transaction should_retry_solve) File "", line 158, in solve_for_diff force_remove, should_retry_solve) File "", line 262, in solve_final_state ssc = self._collect_all_metadata(ssc) File "", line 88, in decorated return f(*args, **kwds) File "", line 415, in _collect_all_metadata index, r = self._prepare(prepared_specs) File "", line 1011, in _prepare self.subdirs, prepared_specs, self._repodata_fn) File "", line 228, in get_reduced_index repodata_fn=repodata_fn) File "", line 105, in query_all result = tuple(concat(, channel_urls))) File "", line 598, in result_iterator yield fs.pop().result() File "", line 435, in result return self.__get_result() File "", line 384, in __get_result raise self._exception File "", line 57, in run result = self.fn(*self.args, **self.kwargs) File "", line 98, in <lambda> package_ref_or_match_spec)) File "", line 110, in query self.load() File "", line 174, in load _internal_state = self._load() File "", line 276, in _load _internal_state = self._process_raw_repodata_str(raw_repodata_str) File "", line 349, in _process_raw_repodata_str json_obj = json.loads(raw_repodata_str or '{}') File "", line 348, in loads return _default_decoder.decode(s) File "", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "", line 353, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 41 (char 40) $ install geopandas environment variables: CIO_TEST=<not set> CONDA_ROOT=D:Anaconda3 HOMEPATH=UsersZY MOZ_PLUGIN_PATH=D:Foxit Readerplugins PATH=C:windowssystem32;C:windows;C:windowsSystem32Wbem;C:windowsSys tem32WindowsPowerShellv1.0;C:windowsSystem32OpenSSH;C:Program Files (x86)IntelIntel(R) Management Engine ComponentsDAL;C:Program FilesIntelIntel(R) Management Engine ComponentsDAL;C:Program Files (x86)NVIDIA CorporationPhysXCommon;C:Program FilesNVIDIA CorporationNVIDIA NvDLISR;C:Program FilesIntelWiFibin;C:Program FilesCommon FilesIntelWirelessCommon;C:WINDOWSsystem32;C:WINDOW S;C:WINDOWSSystem32Wbem;C:WINDOWSSystem32WindowsPowerShellv1.0 ;C:WINDOWSSystem32OpenSSH;D:PythonPython37;D:PythonPython37Li bsite-packages;C:Program Files (x86)Microsoft SQL Server100ToolsBinn;C:Program FilesMicrosoft SQL Server100ToolsBinn;C:Program FilesMicrosoft SQL Server100DTSBinn;D:MATLABR2018abin;D:SQL2019Microsoft SQL Serverx86150ToolsBinn;D:SQL2019Microsoft SQL Server150ToolsBinn;D:SQL2019Microsoft SQL Serverx86150DTSBinn;D:SQL2019Microsoft SQL Server150DTSBinn;D:SQL2019Microsoft SQL ServerClient SDKODBC1 70ToolsBinn;D:Anaconda3Scripts;C:UsersZYAppDataLocalMicrosof tWindowsApps;D:PythonPython37;D:PythonPython37Scripts;C:UsersZ YAppDataRoamingMicrosoftWindowsStart MenuProgramsAnaconda3 (64-bit);D:PythonPython37Libsite-packages;D:Anaconda3Libsite-pa ckages;D:Anaconda3Lib;D:Anaconda3Librarybin;D:Anaconda3Scripts ; PSMODULEPATH=C:Program FilesWindowsPowerShellModules;C:WINDOWSsystem32Windows PowerShellv1.0Modules;D:SQL2019Microsoft SQL Serverx86150ToolsPowerShellModules REQUESTS_CA_BUNDLE=<not set> SSL_CERT_FILE=<not set> active environment : None user config file : C:UsersZY.condarc populated config files : C:UsersZY.condarc conda version : 4.8.2 conda-build version : 3.18.11 python version : virtual packages : __cuda=10.2 base environment : D:Anaconda3 (writable) channel URLs : package cache : D:Anaconda3pkgs C:UsersZY.condapkgs C:UsersZYAppDataLocalcondacondapkgs envs directories : D:Anaconda3envs C:UsersZY.condaenvs C:UsersZYAppDataLocalcondacondaenvs platform : win-64 user-agent : conda/4.8.2 requests/2.22.0 CPython/3.7.6 Windows/10 Windows/10.0.17763 administrator : False netrc file : None offline mode : False 

Total Answers 7

Answers 1 : of conda install packages error: Collecting package metadata (current_repodata.json): failed

I think Bruce is right ! I also had this in4codes_python problem. The error message was like in4codes_python Collecting package metadata in4codes_python (current_repodata.json): failed … in4codes_python json.decoder.JSONDecodeError: in4codes_python Unterminated string starting at: line in4codes_python 54584 column 7 (char 1704072). I removed in4codes_python the .condarc file and ran the previous in4codes_python command again with -d flag, and then in4codes_python this error message disappeared. I typed in4codes_python conda config –set show_channel_urls in4codes_python true in anaconda prompt to regenerate in4codes_python the .condarc file and then modified it. in4codes_python The problem was solved as expected !!


  1. run command conda clean -i to see if it works first
  2. remove the .condarc file
  3. run command conda config --set show_channel_urls true in anaconda prompt to regenerate the .condarc file and then modify it

Important Note: If you in4codes_python encounter this problem, you should try in4codes_python running command conda clean -i first in4codes_python (especially when you haven’t changed in4codes_python anything about channels). If it doesn’t in4codes_python work, then you can try these steps. If in4codes_python you encounter this problem again after in4codes_python these steps, just try running command in4codes_python conda clean -i to see if it works. in4codes_python That’s all I know so far.



Answers 2 : of conda install packages error: Collecting package metadata (current_repodata.json): failed

Try removing ~/.condarc file and try in4codes_python again.



Answers 3 : of conda install packages error: Collecting package metadata (current_repodata.json): failed

Disable your system proxy. It will work in4codes_python properly if you have installed anaconda in4codes_python correctly and set the environmental in4codes_python variables correctly.



Answers 4 : of conda install packages error: Collecting package metadata (current_repodata.json): failed

For MacOs, I resolved the issue by in4codes_python prefixing impacted conda commands with in4codes_python sudo. So in your case:

sudo conda install geopandas

I have not used Windows for software in4codes_python engineering for a little bit but I in4codes_python presume Windows has a similar “Run as in4codes_python Administrator” alternative.



Answers 5 : of conda install packages error: Collecting package metadata (current_repodata.json): failed

I am a macOS user. I have encountered in4codes_python the same problem. For me the problem is in4codes_python caused by setting conda config –env in4codes_python –set subdir x86-64 When I turned it to in4codes_python conda config –env –set subdir in4codes_python osx-arm64, the problem disappears.



Answers 6 : of conda install packages error: Collecting package metadata (current_repodata.json): failed

On my mac connected to my company VPN, I in4codes_python had to add a custom_channels section to in4codes_python my .condarc. The custom channel is an in4codes_python url to my company’s repo for Python in4codes_python packages:

# .condarc # added these lines: custom_channels: conda-forge: 

See the docs for more in4codes_python info:



Answers 7 : of conda install packages error: Collecting package metadata (current_repodata.json): failed

I have tried to find solutions for in4codes_python almost five days. And I finally solved in4codes_python my problems with the help of others.

For my case, when I reinstalled anaconda in4codes_python on my machine, a .condarc file was in4codes_python automatically generated. Then error in4codes_python occurred when I used conda install and in4codes_python conda create command.

After I delete .condarc file, everything in4codes_python goes well. Hope this way can help others in4codes_python with the same problem. Use the following in4codes_python command to check the path of the in4codes_python .condarc file, then delete it/them.

conda config –show-sources

Here is the solution in detail.