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

5798

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 "D:Anaconda3libsite-packagescondaexceptions.py", line 1079, in __call__ return func(*args, **kwargs) File "D:Anaconda3libsite-packagescondaclimain.py", line 84, in _main exit_code = do_call(args, p) File "D:Anaconda3libsite-packagescondacliconda_argparse.py", line 82, in do_call return getattr(module, func_name)(args, parser) File "D:Anaconda3libsite-packagescondaclimain_install.py", line 20, in execute install(args, parser, 'install') File "D:Anaconda3libsite-packagescondacliinstall.py", line 265, in install should_retry_solve=(_should_retry_unfrozen or repodata_fn != repodata_fns[-1]), File "D:Anaconda3libsite-packagescondacoresolve.py", line 117, in solve_for_transaction should_retry_solve) File "D:Anaconda3libsite-packagescondacoresolve.py", line 158, in solve_for_diff force_remove, should_retry_solve) File "D:Anaconda3libsite-packagescondacoresolve.py", line 262, in solve_final_state ssc = self._collect_all_metadata(ssc) File "D:Anaconda3libsite-packagescondacommonio.py", line 88, in decorated return f(*args, **kwds) File "D:Anaconda3libsite-packagescondacoresolve.py", line 415, in _collect_all_metadata index, r = self._prepare(prepared_specs) File "D:Anaconda3libsite-packagescondacoresolve.py", line 1011, in _prepare self.subdirs, prepared_specs, self._repodata_fn) File "D:Anaconda3libsite-packagescondacoreindex.py", line 228, in get_reduced_index repodata_fn=repodata_fn) File "D:Anaconda3libsite-packagescondacoresubdir_data.py", line 105, in query_all result = tuple(concat(executor.map(subdir_query, channel_urls))) File "D:Anaconda3libconcurrentfutures_base.py", line 598, in result_iterator yield fs.pop().result() File "D:Anaconda3libconcurrentfutures_base.py", line 435, in result return self.__get_result() File "D:Anaconda3libconcurrentfutures_base.py", line 384, in __get_result raise self._exception File "D:Anaconda3libconcurrentfuturesthread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "D:Anaconda3libsite-packagescondacoresubdir_data.py", line 98, in <lambda> package_ref_or_match_spec)) File "D:Anaconda3libsite-packagescondacoresubdir_data.py", line 110, in query self.load() File "D:Anaconda3libsite-packagescondacoresubdir_data.py", line 174, in load _internal_state = self._load() File "D:Anaconda3libsite-packagescondacoresubdir_data.py", line 276, in _load _internal_state = self._process_raw_repodata_str(raw_repodata_str) File "D:Anaconda3libsite-packagescondacoresubdir_data.py", line 349, in _process_raw_repodata_str json_obj = json.loads(raw_repodata_str or '{}') File "D:Anaconda3libjson__init__.py", line 348, in loads return _default_decoder.decode(s) File "D:Anaconda3libjsondecoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "D:Anaconda3libjsondecoder.py", 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) $ D:Anaconda3Scriptsconda-script.py 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 : 3.7.6.final.0 virtual packages : __cuda=10.2 base environment : D:Anaconda3 (writable) channel URLs : https://anaconda.org/win-64 https://anaconda.org/noarch https://repo.anaconda.com/pkgs/main/win-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/r/win-64 https://repo.anaconda.com/pkgs/r/noarch https://repo.anaconda.com/pkgs/msys2/win-64 https://repo.anaconda.com/pkgs/msys2/noarch 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
33

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 !!

steps:

  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.

0

5

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

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

0

4

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.

0

1

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.

0

1

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.

0

6

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: https://mycompany.com/path_to_local_conda_forge 

See the docs for more in4codes_python info: https://docs.conda.io/projects/conda/en/latest/configuration.html

0

3

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.

0