Skip to content

pip config --editor notepad.exe edit fails to create pip.ini on windows #6581

@meta-forte

Description

@meta-forte

Environment

  • pip version: pip 19.0.3 from c:\python37\lib\site-packages\pip (python 3.7)
  • Python version: 3.7.3
  • OS: Windows 10 Professional

Description
run pip config --editor notepad.exe edit on windows
Notepad shows an alert: The system cannot find the path specified.

Expected behavior
PIP should create c:\users\user-id\AppData\Roaming\pip\pip.ini before launching notepad.

How to Reproduce

  1. On windows 10, install python afresh. The folder c:\users\user-id\AppData\Roaming\pip should not exist on the system
  2. Then run pip config --editor notepad.exe edit
    3.Notepad shows an alert: The system cannot find the path specified.

However, when the same is tried using Visual studio code. It works fine.

This is a limitation with notepad.exe. I tried notepad a\b.txt and got the same error. This bug really belongs to notepad.

However, pip can handle the scenario by creating/touching the pip\pip.ini befpre launching the editor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions