Open MonkeyDNoppu opened 5 years ago
So, I try to reinstall numpy but ...
nop@nop-TravelMate-P648-M:~$ conda install -c conda-forge numpy Collecting package metadata (current_repodata.json): done Solving environment: / The environment is inconsistent, please check the package plan carefully The following packages are causing the inconsistency:
Traceback (most recent call last):
File "/home/nop/anaconda3/lib/python3.6/site-packages/conda/core/package_cache_data.py", line 300, in _make_single_record
repodata_record = read_repodata_json(extracted_package_dir)
File "/home/nop/anaconda3/lib/python3.6/site-packages/conda/gateways/disk/read.py", line 130, in read_repodata_json
with open(join(extracted_package_directory, 'info', 'repodata_record.json')) as fi:
File "/home/nop/anaconda3/lib/python3.6/site-packages/conda/common/compat.py", line 177, in open
closefd=closefd)
FileNotFoundError: [Errno 2] No such file or directory: '/home/nop/anaconda3/pkgs/ca-certificates-2019.5.15-0/info/repodata_record.json'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/nop/anaconda3/lib/python3.6/site-packages/conda/core/package_cache_data.py", line 317, in _make_single_record
raw_json_record = read_index_json(extracted_package_dir)
File "/home/nop/anaconda3/lib/python3.6/site-packages/conda/gateways/disk/read.py", line 117, in read_index_json
with open(join(extracted_package_directory, 'info', 'index.json')) as fi:
File "/home/nop/anaconda3/lib/python3.6/site-packages/conda/common/compat.py", line 177, in open
closefd=closefd)
FileNotFoundError: [Errno 2] No such file or directory: '/home/nop/anaconda3/pkgs/ca-certificates-2019.5.15-0/info/index.json'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/nop/anaconda3/lib/python3.6/site-packages/conda/exceptions.py", line 1043, in __call__
return func(*args, **kwargs)
File "/home/nop/anaconda3/lib/python3.6/site-packages/conda/cli/main.py", line 84, in _main
exit_code = do_call(args, p)
File "/home/nop/anaconda3/lib/python3.6/site-packages/conda/cli/conda_argparse.py", line 82, in do_call
exit_code = getattr(module, func_name)(args, parser)
File "/home/nop/anaconda3/lib/python3.6/site-packages/conda/cli/main_install.py", line 20, in execute
install(args, parser, 'install')
File "/home/nop/anaconda3/lib/python3.6/site-packages/conda/cli/install.py", line 304, in install
handle_txn(unlink_link_transaction, prefix, args, newenv)
File "/home/nop/anaconda3/lib/python3.6/site-packages/conda/cli/install.py", line 320, in handle_txn
unlink_link_transaction.print_transaction_summary()
File "/home/nop/anaconda3/lib/python3.6/site-packages/conda/core/link.py", line 869, in print_transaction_summary
legacy_action_groups = self._make_legacy_action_groups()
File "/home/nop/anaconda3/lib/python3.6/site-packages/conda/core/link.py", line 853, in _make_legacy_action_groups
self._pfe.prepare()
File "/home/nop/anaconda3/lib/python3.6/site-packages/conda/common/io.py", line 88, in decorated
return f(*args, **kwds)
File "/home/nop/anaconda3/lib/python3.6/site-packages/conda/core/package_cache_data.py", line 617, in prepare
for prec in self.link_precs)
File "/home/nop/anaconda3/lib/python3.6/site-packages/conda/core/package_cache_data.py", line 617, in <genexpr>
for prec in self.link_precs)
File "/home/nop/anaconda3/lib/python3.6/site-packages/conda/core/package_cache_data.py", line 509, in make_actions_for_record
), None)
File "/home/nop/anaconda3/lib/python3.6/site-packages/conda/core/package_cache_data.py", line 506, in <genexpr>
pcrec for pcrec in concat(PackageCacheData(pkgs_dir).query(pref_or_spec)
File "/home/nop/anaconda3/lib/python3.6/site-packages/conda/core/package_cache_data.py", line 507, in <genexpr>
for pkgs_dir in context.pkgs_dirs)
File "/home/nop/anaconda3/lib/python3.6/site-packages/conda/core/package_cache_data.py", line 132, in query
return (pcrec for pcrec in itervalues(self._package_cache_records) if pcrec == param)
File "/home/nop/anaconda3/lib/python3.6/site-packages/conda/core/package_cache_data.py", line 246, in _package_cache_records
self.load()
File "/home/nop/anaconda3/lib/python3.6/site-packages/conda/core/package_cache_data.py", line 98, in load
package_cache_record = self._make_single_record(base_name)
File "/home/nop/anaconda3/lib/python3.6/site-packages/conda/core/package_cache_data.py", line 339, in _make_single_record
extract_tarball(package_tarball_full_path, extracted_package_dir)
File "/home/nop/anaconda3/lib/python3.6/site-packages/conda/gateways/disk/create.py", line 219, in extract_tarball
conda_package_handling.api.extract(tarball_full_path, dest_dir=destination_directory)
File "/home/nop/anaconda3/lib/python3.6/site-packages/conda_package_handling/api.py", line 49, in extract
SUPPORTED_EXTENSIONS[ext].extract(fn, dest_dir, components=components)
File "/home/nop/anaconda3/lib/python3.6/site-packages/conda_package_handling/conda_fmt.py", line 55, in extract
_extract_component(fn, file_id, component, dest_dir)
File "/home/nop/anaconda3/lib/python3.6/site-packages/conda_package_handling/conda_fmt.py", line 37, in _extract_component
_tar_xf(component_filename, dest_dir)
File "/home/nop/anaconda3/lib/python3.6/site-packages/conda_package_handling/tarball.py", line 72, in _tar_xf
libarchive.extract.EXTRACT_SPARSE | \
AttributeError: module 'libarchive' has no attribute 'extract'
$ /home/nop/anaconda3/bin/conda install -c conda-forge numpy
environment variables:
CIO_TEST=
active environment : None
user config file : /home/nop/.condarc
populated config files : conda version : 4.7.5 conda-build version : 3.18.5 python version : 3.6.8.final.0 virtual packages : base environment : /home/nop/anaconda3 (writable) channel URLs : https://conda.anaconda.org/conda-forge/linux-64 https://conda.anaconda.org/conda-forge/noarch https://repo.anaconda.com/pkgs/main/linux-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/r/linux-64 https://repo.anaconda.com/pkgs/r/noarch package cache : /home/nop/anaconda3/pkgs /home/nop/.conda/pkgs envs directories : /home/nop/anaconda3/envs /home/nop/.conda/envs platform : linux-64 user-agent : conda/4.7.5 requests/2.22.0 CPython/3.6.8 Linux/4.15.0-54-generic ubuntu/18.04.2 glibc/2.27 UID:GID : 1000:1000 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?
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
Actual Behavior
I cannot import pandas as pd in Jupyter notebook
import pandas as pd
AttributeError Traceback (most recent call last)