Closed jeffhhk closed 10 months ago
You need to pass the index with --index
so not:
pipenv install https://download.pytorch.org/whl/cu118 torch
but instead pipenv install torch --index https://download.pytorch.org/whl/cu118
Wow, it works! I thought for sure I tried this . . .
The Pipfile afterwards:
[[source]]
url = "https://download.pytorch.org/whl/cu118"
verify_ssl = true
name = "downloadpytorch"
[packages]
. . .
torch = {version = "*", index = "downloadpytorch"}
Many thanks!
Issue description
pipenv cannot install pytorch for cuda 11 even though pip can.
pytorch for cuda 11 is distributed in an alternate repository location.
Expected result
I would expect pipenv to be able to parse and install packages from the alternate repository location.
Actual result
I do not see any filed issues with a very similar error.
I reinstalled pipenv and made a test empty Pipfile to make sure the problem description was minimal.
Steps to replicate
yet:
pipenv --support
$ pipenv --support
Pipenv version: `'2023.10.24'` Pipenv location: `'/home/jeff/.local/lib/python3.8/site-packages/pipenv'` Python location: `'/usr/bin/python3'` OS Name: `'posix'` User pip version: `'23.3.1'` user Python installations found: PEP 508 Information: ``` {'implementation_name': 'cpython', 'implementation_version': '3.8.10', 'os_name': 'posix', 'platform_machine': 'x86_64', 'platform_python_implementation': 'CPython', 'platform_release': '5.15.0-87-generic', 'platform_system': 'Linux', 'platform_version': '#97~20.04.1-Ubuntu SMP Thu Oct 5 08:25:28 UTC 2023', 'python_full_version': '3.8.10', 'python_version': '3.8', 'sys_platform': 'linux'} ``` System environment variables: - `SHELL` - `SESSION_MANAGER` - `CAML_LD_LIBRARY_PATH` - `PYENV_HOOK_PATH` - `QT_ACCESSIBILITY` - `OCAML_TOPLEVEL_PATH` - `COLORTERM` - `PYENV_SHELL` - `XDG_CONFIG_DIRS` - `XDG_MENU_PREFIX` - `GNOME_DESKTOP_SESSION_ID` - `SDKMAN_OLD_PWD` - `PIPENV_ACTIVE` - `LANGUAGE` - `SBT_HOME` - `MANDATORY_PATH` - `LC_ADDRESS` - `JAVA_HOME` - `GNOME_SHELL_SESSION_MODE` - `LC_NAME` - `SSH_AUTH_SOCK` - `SDKMAN_CANDIDATES_DIR` - `XMODIFIERS` - `DESKTOP_SESSION` - `LC_MONETARY` - `SSH_AGENT_PID` - `PYENV_VERSION` - `GTK_MODULES` - `DBUS_STARTER_BUS_TYPE` - `PWD` - `PYENV_VIRTUALENV_INIT` - `XDG_SESSION_DESKTOP` - `LOGNAME` - `XDG_SESSION_TYPE` - `MANPATH` - `GPG_AGENT_INFO` - `XAUTHORITY` - `OPAM_SWITCH_PREFIX` - `WINDOWPATH` - `NODENV_SHELL` - `PIP_PYTHON_PATH` - `HOME` - `USERNAME` - `IM_CONFIG_PHASE` - `LANG` - `LC_PAPER` - `LS_COLORS` - `XDG_CURRENT_DESKTOP` - `WASMTIME_HOME` - `VIRTUAL_ENV` - `VTE_VERSION` - `SDKMAN_VERSION` - `LEININGEN_HOME` - `INVOCATION_ID` - `MANAGERPID` - `PYENV_DIR` - `LESSCLOSE` - `XDG_SESSION_CLASS` - `LC_IDENTIFICATION` - `TERM` - `DEFAULTS_PATH` - `LESSOPEN` - `LIBVIRT_DEFAULT_URI` - `USER` - `PIP_DISABLE_PIP_VERSION_CHECK` - `SDKMAN_DIR` - `DISPLAY` - `SHLVL` - `LC_TELEPHONE` - `QT_IM_MODULE` - `LC_MEASUREMENT` - `SDKMAN_CANDIDATES_API` - `DBUS_STARTER_ADDRESS` - `PAPERSIZE` - `VIRTUAL_ENV_PROMPT` - `PYTHONDONTWRITEBYTECODE` - `TILIX_ID` - `XDG_RUNTIME_DIR` - `PYENV_ROOT` - `LC_TIME` - `JOURNAL_STREAM` - `XDG_DATA_DIRS` - `PATH` - `GDMSESSION` - `DBUS_SESSION_BUS_ADDRESS` - `SDKMAN_PLATFORM` - `LC_NUMERIC` - `PYTHONFINDER_IGNORE_UNSUPPORTED` Pipenv–specific environment variables: - `PIPENV_ACTIVE`: `1` Debug–specific environment variables: - `PATH`: `/home/jeff/.pyenv/versions/jaxbuild/bin:/home/jeff/.pyenv/versions/3.9.8/bin:/home/jeff/.pyenv/versions/miniconda3-3.11-23.5.2-0/bin:/home/jeff/.pyenv/versions/global/bin:/home/jeff/.pyenv/versions/3.10.13/bin:/home/jeff/.pyenv/versions/linkml2/bin:/home/jeff/.pyenv/versions/miniconda3-4.7.12/bin:/home/jeff/.pyenv/versions/3.9.7/bin:/home/jeff/.pyenv/libexec:/home/jeff/.pyenv/plugins/python-build/bin:/home/jeff/.pyenv/plugins/pyenv-virtualenv/bin:/home/jeff/.pyenv/plugins/pyenv-update/bin:/home2TB/jeff/.local/share/virtualenvs/tmp_2023-10-26-kyHRqbtq/bin:/home/jeff/.elan/bin:/home2TB/jeff/.opam/default/bin:/home/jeff/.nodenv/shims:/home/jeff/.nodenv/bin:/home/jeff/.pyenv/plugins/pyenv-virtualenv/shims:/home/jeff/.pyenv/shims:/home/jeff/.wasmtime/bin:/home/jeff/.pyenv/libexec:/home/jeff/.pyenv/plugins/python-build/bin:/home/jeff/.pyenv/plugins/pyenv-virtualenv/bin:/home/jeff/.pyenv/plugins/pyenv-update/bin:/home/jeff/.elan/bin:/home/jeff/.sdkman/candidates/sbt/current/bin:/home/jeff/.sdkman/candidates/leiningen/current/bin:/home/jeff/.sdkman/candidates/java/current/bin:/home/jeff/.nodenv/shims:/home/jeff/.nodenv/bin:/home/jeff/.pyenv/plugins/pyenv-virtualenv/shims:/home/jeff/.wasmtime/bin:/home/jeff/.cargo/bin:/home/jeff/.local/bin:/home/jeff/bin:/home/jeff/.pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/racket-86-full/bin:/home/jeff/.cabal/bin:/home/jeff/.ghcup/bin:/usr/local/racket-86-full/bin` - `SHELL`: `/bin/bash` - `LANG`: `en_US.UTF-8` - `PWD`: `/home/jeff/tmp_2023-10-26` - `VIRTUAL_ENV`: `/home2TB/jeff/.local/share/virtualenvs/tmp_2023-10-26-kyHRqbtq` --------------------------- Contents of `Pipfile` ('/home/jeff/tmp_2023-10-26/Pipfile'): ```toml [[source]] url = "https://pypi.org/simple" verify_ssl = true name = "pypi" [packages] [dev-packages] [requires] python_version = "3.10" ```Thank you for the effort toward improving the pip ecosystem.