This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author chrullrich
Recipients chrullrich
Date 2014-03-23.00:25:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1395534344.37.0.780621309419.issue21030@psf.upfronthosting.co.za>
In-reply-to
Content
After installing python-3.4.0.amd64.msi on Windows 8.1 x64, the "pip" command (and the versioned ones as well) only work for administrators. Regular users get this:

Traceback (most recent call last):
  File "C:\Program Files\Python34\lib\runpy.py", line 171, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Program Files\Python34\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Program Files\Python34\Scripts\pip.exe\__main__.py", line 5, in <module>
ImportError: cannot import name 'main'

The immediate reason is that the files in the site-packages/pip directory are created with no access permissions for non-administrators:

C:\Program Files\Python34\Lib\site-packages\pip>icacls __main__.py
__main__.py NT-AUTHORITY\SYSTEM:(F)
            BUILTIN\Administrators:(F)
            abc\Admin:(F)

Why that is, I have no idea. It can be fixed by running:

icacls path\to\site-packages\pip /inheritance:e /t
icacls path\to\site-packages\pip /reset /t

The /reset may be unnecessary.
History
Date User Action Args
2014-03-23 00:25:44chrullrichsetrecipients: + chrullrich
2014-03-23 00:25:44chrullrichsetmessageid: <1395534344.37.0.780621309419.issue21030@psf.upfronthosting.co.za>
2014-03-23 00:25:44chrullrichlinkissue21030 messages
2014-03-23 00:25:44chrullrichcreate