Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows upgrading pip #5885

Closed
AxanIqbal opened this issue Oct 14, 2018 · 10 comments
Closed

Windows upgrading pip #5885

AxanIqbal opened this issue Oct 14, 2018 · 10 comments
Labels
auto-locked Outdated issues that have been locked by automation resolution: duplicate Duplicate of an existing issue/PR

Comments

@AxanIqbal
Copy link

Windows 10 64 bit

  • pip version: 10.0.1
  • Python version:3.7.0
  • OS:Windows

Problem having upgrade pip from 10.0.1 to latest bcz of that cant install packages had the same result with default python

C:\Users\Ahsan Iqbal>python -m pip install --upgrade pip
Collecting pip
  Using cached https://files.pythonhosted.org/packages/c2/d7/90f34cb0d83a6c5631cf71dfe64cc1054598c843a92b400e55675cc2ac37/pip-18.1-py2.py3-none-any.whl
Exception:
Traceback (most recent call last):
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2862, in _dep_map
    return self.__dep_map
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2669, in __getattr__
    raise AttributeError(attr)
AttributeError: _DistInfoDistribution__dep_map

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_vendor\packaging\requirements.py", line 93, in __init__
    req = REQUIREMENT.parseString(requirement_string)
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_vendor\pyparsing.py", line 1632, in parseString
    raise exc
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_vendor\pyparsing.py", line 1622, in parseString
    loc, tokens = self._parse( instring, 0 )
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_vendor\pyparsing.py", line 1379, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_vendor\pyparsing.py", line 3395, in parseImpl
    loc, exprtokens = e._parse( instring, loc, doActions )
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_vendor\pyparsing.py", line 1383, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_vendor\pyparsing.py", line 3183, in parseImpl
    raise ParseException(instring, loc, self.errmsg, self)
pip._vendor.pyparsing.ParseException: Expected stringEnd (at char 33), (line:1, col:34)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2942, in __init__
    super(Requirement, self).__init__(requirement_string)
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_vendor\packaging\requirements.py", line 97, in __init__
    requirement_string[e.loc:e.loc + 8]))
pip._vendor.packaging.requirements.InvalidRequirement: Invalid requirement, parse error at "'; extra '"

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_internal\basecommand.py", line 228, in main
    status = self.run(options, args)
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_internal\commands\install.py", line 318, in run
    self._warn_about_conflicts(to_install)
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_internal\commands\install.py", line 442, in _warn_about_conflicts
    package_set, _dep_info = check_install_conflicts(to_install)
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_internal\operations\check.py", line 89, in check_install_conflicts
    state = create_package_set_from_installed()
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_internal\operations\check.py", line 39, in create_package_set_from_installed
    retval[name] = PackageDetails(dist.version, dist.requires())
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2613, in requires
    dm = self._dep_map
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2864, in _dep_map
    self.__dep_map = self._compute_dependencies()
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2874, in _compute_dependencies
    reqs.extend(parse_requirements(req))
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2935, in parse_requirements
    yield Requirement(line)
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2944, in __init__
    raise RequirementParseError(str(e))
pip._vendor.pkg_resources.RequirementParseError: Invalid requirement, parse error at "'; extra '"
You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

C:\Users\Ahsan Iqbal>python -m pip install --upgrade pip
Collecting pip
  Using cached https://files.pythonhosted.org/packages/c2/d7/90f34cb0d83a6c5631cf71dfe64cc1054598c843a92b400e55675cc2ac37/pip-18.1-py2.py3-none-any.whl
Exception:
Traceback (most recent call last):
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2862, in _dep_map
    return self.__dep_map
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2669, in __getattr__
    raise AttributeError(attr)
AttributeError: _DistInfoDistribution__dep_map

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_vendor\packaging\requirements.py", line 93, in __init__
    req = REQUIREMENT.parseString(requirement_string)
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_vendor\pyparsing.py", line 1632, in parseString
    raise exc
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_vendor\pyparsing.py", line 1622, in parseString
    loc, tokens = self._parse( instring, 0 )
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_vendor\pyparsing.py", line 1379, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_vendor\pyparsing.py", line 3395, in parseImpl
    loc, exprtokens = e._parse( instring, loc, doActions )
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_vendor\pyparsing.py", line 1383, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_vendor\pyparsing.py", line 3183, in parseImpl
    raise ParseException(instring, loc, self.errmsg, self)
pip._vendor.pyparsing.ParseException: Expected stringEnd (at char 33), (line:1, col:34)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2942, in __init__
    super(Requirement, self).__init__(requirement_string)
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_vendor\packaging\requirements.py", line 97, in __init__
    requirement_string[e.loc:e.loc + 8]))
pip._vendor.packaging.requirements.InvalidRequirement: Invalid requirement, parse error at "'; extra '"

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_internal\basecommand.py", line 228, in main
    status = self.run(options, args)
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_internal\commands\install.py", line 318, in run
    self._warn_about_conflicts(to_install)
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_internal\commands\install.py", line 442, in _warn_about_conflicts
    package_set, _dep_info = check_install_conflicts(to_install)
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_internal\operations\check.py", line 89, in check_install_conflicts
    state = create_package_set_from_installed()
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_internal\operations\check.py", line 39, in create_package_set_from_installed
    retval[name] = PackageDetails(dist.version, dist.requires())
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2613, in requires
    dm = self._dep_map
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2864, in _dep_map
    self.__dep_map = self._compute_dependencies()
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2874, in _compute_dependencies
    reqs.extend(parse_requirements(req))
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2935, in parse_requirements
    yield Requirement(line)
  File "G:\ProgramData\Anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2944, in __init__
    raise RequirementParseError(str(e))
pip._vendor.pkg_resources.RequirementParseError: Invalid requirement, parse error at "'; extra '"
You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
@uranusjr
Copy link
Member

I wonder if some of the following context would help debug this issue:

  • Is G: a local drive, or is it mounted?
  • How is the current pip (10.0.1) installed? Was it from conda install pip?

@uranusjr
Copy link
Member

uranusjr commented Oct 14, 2018

Ah, is this basically #5839 (PR #5842)?

@AxanIqbal
Copy link
Author

i installed anaconda in G:\ drive
i got pip 10.0.1 by default and not from conda install pip but when i do that with conda it says pakage is already installed

@AxanIqbal
Copy link
Author

Ah, is this basically #5839 (PR #5842)?

i didnt understand this can you please tell me

@sorenwacker
Copy link

sorenwacker commented Oct 15, 2018

Same problem using pip 10.0.1 as well on Ubuntu16.04

@uranusjr
Copy link
Member

@AxanIqbal If my assumptions are correct, the problem does not happen during installation of pip, but when it tries to check environment integrity after the package (here, pip) is installed. The environment being managed by Anaconda means that it may contain package information not parsable by pip, and pip crashes when it tries to check them. The PR I mentioned tries to make pip more robust—instead of crashing, ignore things it does not recognise.

@AxanIqbal
Copy link
Author

Thanks a lot that solve my problem

@ghost
Copy link

ghost commented Nov 20, 2018

@uranusjr Should this be closed if issue is resolved?

@ghost
Copy link

ghost commented Nov 20, 2018

@soerendip Is this issue resolved on Ubuntu 16.04?

@pradyunsg
Copy link
Member

Ah, is this basically #5839 (PR #5842)?

Yep. Looks like it.

@pradyunsg pradyunsg added the S: needs triage Issues/PRs that need to be triaged label Nov 21, 2018
@chrahunt chrahunt added the resolution: duplicate Duplicate of an existing issue/PR label Jul 21, 2019
@triage-new-issues triage-new-issues bot removed the S: needs triage Issues/PRs that need to be triaged label Jul 21, 2019
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Aug 20, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Aug 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation resolution: duplicate Duplicate of an existing issue/PR
Projects
None yet
Development

No branches or pull requests

5 participants