Skip to content

[Bug] Pip not upgrade on Windows if UAC disabled #4080

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

Closed
Kristinita opened this issue Nov 4, 2016 · 2 comments
Closed

[Bug] Pip not upgrade on Windows if UAC disabled #4080

Kristinita opened this issue Nov 4, 2016 · 2 comments
Labels
auto-locked Outdated issues that have been locked by automation OS: windows Windows specific

Comments

@Kristinita
Copy link

Summary

I can not upgrade pip in my Windows. I saw some similar issues on this repository, I saw in this and this answer, that I need run command in Administrator mode. But I disable UAC on my Windows and I never want use UAC.

Expected behavior

Successful pip upgrade.

Actual behavior

C:\WINDOWS\system32>python -m pip install --upgrade pip
Collecting pip
  Downloading pip-9.0.0-py2.py3-none-any.whl (1.3MB)
    100% |################################| 1.3MB 647kB/s
Installing collected packages: pip
  Found existing installation: pip 8.1.2
    Uninstalling pip-8.1.2:
      Successfully uninstalled pip-8.1.2
  Rolling back uninstall of pip
Exception:
Traceback (most recent call last):
  File "E:\Python35-32\lib\site-packages\pip-8.1.2-py3.5.egg\pip\basecommand.py", line 215, in main
    status = self.run(options, args)
  File "E:\Python35-32\lib\site-packages\pip-8.1.2-py3.5.egg\pip\commands\install.py", line 317, in run
    prefix=options.prefix_path,
  File "E:\Python35-32\lib\site-packages\pip-8.1.2-py3.5.egg\pip\req\req_set.py", line 742, in install
    **kwargs
  File "E:\Python35-32\lib\site-packages\pip-8.1.2-py3.5.egg\pip\req\req_install.py", line 831, in install
    self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
  File "E:\Python35-32\lib\site-packages\pip-8.1.2-py3.5.egg\pip\req\req_install.py", line 1032, in move_wheel_files
    isolated=self.isolated,
  File "E:\Python35-32\lib\site-packages\pip-8.1.2-py3.5.egg\pip\wheel.py", line 463, in move_wheel_files
    generated.extend(maker.make(spec))
  File "E:\Python35-32\lib\site-packages\pip-8.1.2-py3.5.egg\pip\_vendor\distlib\scripts.py", line 372, in make
    self._make_script(entry, filenames, options=options)
  File "E:\Python35-32\lib\site-packages\pip-8.1.2-py3.5.egg\pip\_vendor\distlib\scripts.py", line 276, in _make_script
    self._write_script(scriptnames, shebang, script, filenames, ext)
  File "E:\Python35-32\lib\site-packages\pip-8.1.2-py3.5.egg\pip\_vendor\distlib\scripts.py", line 212, in _write_script
    launcher = self._get_launcher('t')
  File "E:\Python35-32\lib\site-packages\pip-8.1.2-py3.5.egg\pip\_vendor\distlib\scripts.py", line 351, in _get_launcher
    result = finder(distlib_package).find(name).bytes
AttributeError: 'NoneType' object has no attribute 'bytes'
You are using pip version 8.1.2, however version 9.0.0 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

C:\WINDOWS\system32>pip --version
pip 8.1.2 from e:\python35-32\lib\site-packages\pip-8.1.2-py3.5.egg (python 3.5)

Steps to reproduce

I run python -m pip install --upgrade pip command in cmd.exe.

Environment

Operating system and version:
Windows 32-bit 10.0.14393
Python:
3.5.2
pip
8.1.2 from e:\python35-32\lib\site-packages\pip-8.1.2-py3.5.egg (python 3.5)

Thanks.

@xavfernandez xavfernandez added the OS: windows Windows specific label Nov 4, 2016
@xavfernandez
Copy link
Member

@Kristinita how did you initially install pip ? The pip-8.1.2-py3.5.egg smells like you used easy_install ?
It looks like a duplicate of #2669.
Did you try python -m pip install -U --force-reinstall pip ?

@Kristinita
Copy link
Author

how did you initially install pip ?

I install pip many times ago, I can not remember exactly. But likely I only download python 3.5.2 from official site. I'm not use easy_install.

Did you try python -m pip install -U --force-reinstall pip

Thanks! I think, it helped for me!

C:\WINDOWS\system32>python -m pip install -U --force-reinstall pip
Collecting pip
  Using cached pip-9.0.0-py2.py3-none-any.whl
Installing collected packages: pip
  Found existing installation: pip 9.0.0
    Uninstalling pip-9.0.0:
      Successfully uninstalled pip-9.0.0
Successfully installed pip-9.0.0

C:\WINDOWS\system32>pip --version
pip 9.0.0 from e:\python35-32\lib\site-packages (python 3.5)

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 4, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 4, 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 OS: windows Windows specific
Projects
None yet
Development

No branches or pull requests

2 participants