pip icon indicating copy to clipboard operation
pip copied to clipboard

Error during pip install

Open tritemio opened this issue 3 years ago • 2 comments

  • pip version: 20.2
  • Python version: 3.8.5
  • Operating system: mac os 10.15.5

I am working inside a conda environment.

Trying to install any package with pip I get this error:

$ pip install -e .
Obtaining file:///Users/anto/Google%20Drive/smartfab/src/dwitch
ERROR: Error while checking for conflicts. Please file an issue on pip's issue tracker: https://github.com/pypa/pip/issues/new
Traceback (most recent call last):
  File "/Users/anto/miniconda3/envs/py38-sf/lib/python3.8/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3021, in _dep_map
    return self.__dep_map
  File "/Users/anto/miniconda3/envs/py38-sf/lib/python3.8/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2815, in __getattr__
    raise AttributeError(attr)
AttributeError: _DistInfoDistribution__dep_map

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/anto/miniconda3/envs/py38-sf/lib/python3.8/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3012, in _parsed_pkg_info
    return self._pkg_info
  File "/Users/anto/miniconda3/envs/py38-sf/lib/python3.8/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2815, in __getattr__
    raise AttributeError(attr)
AttributeError: _pkg_info

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/anto/miniconda3/envs/py38-sf/lib/python3.8/site-packages/pip/_internal/commands/install.py", line 535, in _determine_conflicts
    return check_install_conflicts(to_install)
  File "/Users/anto/miniconda3/envs/py38-sf/lib/python3.8/site-packages/pip/_internal/operations/check.py", line 108, in check_install_conflicts
    package_set, _ = create_package_set_from_installed()
  File "/Users/anto/miniconda3/envs/py38-sf/lib/python3.8/site-packages/pip/_internal/operations/check.py", line 50, in create_package_set_from_installed
    package_set[name] = PackageDetails(dist.version, dist.requires())
  File "/Users/anto/miniconda3/envs/py38-sf/lib/python3.8/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2736, in requires
    dm = self._dep_map
  File "/Users/anto/miniconda3/envs/py38-sf/lib/python3.8/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3023, in _dep_map
    self.__dep_map = self._compute_dependencies()
  File "/Users/anto/miniconda3/envs/py38-sf/lib/python3.8/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3032, in _compute_dependencies
    for req in self._parsed_pkg_info.get_all('Requires-Dist') or []:
  File "/Users/anto/miniconda3/envs/py38-sf/lib/python3.8/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3014, in _parsed_pkg_info
    metadata = self.get_metadata(self.PKG_INFO)
  File "/Users/anto/miniconda3/envs/py38-sf/lib/python3.8/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1420, in get_metadata
    value = self._get(path)
  File "/Users/anto/miniconda3/envs/py38-sf/lib/python3.8/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1616, in _get
    with open(path, 'rb') as stream:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/anto/miniconda3/envs/py38-sf/lib/python3.8/site-packages/regex-2020.7.14.dist-info/METADATA'
Installing collected packages: dwitch
  Attempting uninstall: dwitch
    Found existing installation: dwitch 0.0.2+244.g47d8dd3
    Uninstalling dwitch-0.0.2+244.g47d8dd3:
      Successfully uninstalled dwitch-0.0.2+244.g47d8dd3
  Running setup.py develop for dwitch
Successfully installed dwitch
(py38-sf) Antonios-MacBook-Pro:dwitch anto$ 

tritemio avatar Jul 29 '20 10:07 tritemio