Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

pip fails if on network drive. Works on UNC path, but then everything else breaks. #1419

Open
@CDWimmer

Description

@CDWimmer

I have freshly unpacked the 7zip executable ofWinpython64-3.12.4.1dot to a directory:P:\py\ where inP: is a network drive.

RunningWinpython Command Prompt.exe to get a shell and then enteringpip (or any subcommand thereof) pauses for a few seconds, followed invariably by this lengthy error:

P:\py\WPy64-31241\scripts>pipTraceback (most recent call last):  File "<frozen runpy>", line 198, in _run_module_as_main  File "<frozen runpy>", line 88, in _run_code  File "P:\py\WPy64-31241\python-3.12.4.amd64\Scripts\pip.exe\__main__.py", line 4, in <module>  File "P:\py\WPy64-31241\python-3.12.4.amd64\Lib\site-packages\pip\_internal\cli\main.py", line 10, in <module>    from pip._internal.cli.autocompletion import autocomplete  File "P:\py\WPy64-31241\python-3.12.4.amd64\Lib\site-packages\pip\_internal\cli\autocompletion.py", line 10, in <module>    from pip._internal.cli.main_parser import create_main_parser  File "P:\py\WPy64-31241\python-3.12.4.amd64\Lib\site-packages\pip\_internal\cli\main_parser.py", line 9, in <module>    from pip._internal.build_env import get_runnable_pip  File "P:\py\WPy64-31241\python-3.12.4.amd64\Lib\site-packages\pip\_internal\build_env.py", line 19, in <module>    from pip._internal.cli.spinners import open_spinner  File "P:\py\WPy64-31241\python-3.12.4.amd64\Lib\site-packages\pip\_internal\cli\spinners.py", line 9, in <module>    from pip._internal.utils.logging import get_indentation  File "P:\py\WPy64-31241\python-3.12.4.amd64\Lib\site-packages\pip\_internal\utils\logging.py", line 29, in <module>    from pip._internal.utils.misc import ensure_dir  File "P:\py\WPy64-31241\python-3.12.4.amd64\Lib\site-packages\pip\_internal\utils\misc.py", line 40, in <module>    from pip._vendor.tenacity import retry, stop_after_delay, wait_fixed  File "P:\py\WPy64-31241\python-3.12.4.amd64\Lib\site-packages\pip\_vendor\tenacity\__init__.py", line 548, in <module>    from pip._vendor.tenacity._asyncio import AsyncRetrying  # noqa:E402,I100    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File "P:\py\WPy64-31241\python-3.12.4.amd64\Lib\site-packages\pip\_vendor\tenacity\_asyncio.py", line 21, in <module>    from asyncio import sleep  File "P:\py\WPy64-31241\python-3.12.4.amd64\Lib\asyncio\__init__.py", line 43, in <module>    from .windows_events import *  File "P:\py\WPy64-31241\python-3.12.4.amd64\Lib\asyncio\windows_events.py", line 8, in <module>    import _overlappedOSError: [WinError 10022] An invalid argument was supplied

I downloaded a .whl from PyPi to try to install manually using wppm -i but it produced the same error, I guess using pip internally.

I realise "Because Windows" UNC paths are wonky in cmd, so a lot of things fall apart if not on a "proper"<LETTER>: drive, but bizarrely when I separably unpacked WinPython to a UNC location,pip install xyz worked - python itself couldn't find it when trying to import, but the installed package did indeed appear in site-packages.
I then moved that version to a place with a drive letter and it could successfully import, but then pip was broken as above so I couldn't install anything else.

Obviously this is not an ideal set up: install in one location and then relocating the entire installation! What's going on here? What did I break?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp