Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

nvidia-pyindex breaks pip #98

@stauntonjr

Description

@stauntonjr

System information

  • OS Platform and Distribution:
    Windows Version: Windows 11 Pro 22H2 22621.1992;
    WSL Version: 5.15.90.1-microsoft-standard-WSL2;
    WSL Linux Version: Ubuntu 22.04.1 LTS;

  • TensorFlow installed from (source or binary): None

  • TensorFlow version: None

  • Python version:
    Python 3.10.12 in Anaconda environment

  • Installed nvidia-pyindex using: pip inside conda env

  • Bazel version (if compiling from source): N/A

  • GCC/Compiler version (if compiling from source): N/A

  • CUDA/cuDNN version:
    Cuda compiler driver: cuda_11.5.r11.5/compiler.30672275_0
    NVIDIA-SMI: 525.125.06
    NVIDIA Driver Version: 536.67
    "CUDA" (nvidia-smi): 12.2
    cuda-profiler-api: 11.8.86
    cuda-python: 11.8.2
    cuda-version: 11.8
    cudatoolkit: 11.8.0
    cuDNN: N/A

  • GPU model and memory: RTX 3050 Laptop

Describe the problem

pip.conf was altered by nvidia-pyindex and now no pip commands work in any environment.

Provide the exact sequence of commands / steps that you executed before running into the problem

$ conda activate myenv
$ pip install nvidia-pyindex

which makes changes to my pip.conf:

# This file has been autogenerated or modified by NVIDIA PyIndex.
# In case you need to modify your PIP configuration, please be aware that
# some configuration files may have a priority order. Here are the following 
# files that may exists in your machine by order of priority:
#
# [Priority 1] Site level configuration files
#	1. `/home/jrs/anaconda3/envs/rapids-23.06/pip.conf`
#
# [Priority 2] User level configuration files
#	1. `/home/jrs/.config/pip/pip.conf`
#	2. `/home/jrs/.pip/pip.conf`
#
# [Priority 3] Global level configuration files
#	1. `/etc/pip.conf`
#	2. `/etc/xdg/pip/pip.conf`

no-cache-dir = true
extra-index-url = https://pypi.ngc.nvidia.com
trusted-host = pypi.ngc.nvidia.com

And now pip commands do not work:

$ pip --version
Configuration file could not be loaded.
File contains no section headers.
file: '/home/jrs/.config/pip/pip.conf', line: 17
'no-cache-dir = true\n'

This affects all other environments based on my path. I tried unsuccessfully to revert per #19 (comment):

$ nvidia_pyindex uninstall
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Uninstalling NVIDIA Pip Configuration ...
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
==============================================================
Cleaning previous NVIDIA PyIndex Configuration ...
File: `/home/jrs/anaconda3/envs/rapids-23.06/pip.conf`
Previous NVIDIA PyIndex Configuration cleaned with success ...
==============================================================
==============================================================
==============================================================
Cleaning previous NVIDIA PyIndex Configuration ...
File: `/home/jrs/.config/pip/pip.conf`
Previous NVIDIA PyIndex Configuration cleaned with success ...
==============================================================
==============================================================
==============================================================
Cleaning previous NVIDIA PyIndex Configuration ...
File: `/home/jrs/.pip/pip.conf`
Error while removing the old NVIDIA PyINDEX configuration: [Errno 2] No such file or directory: '/home/jrs/.pip/pip.conf'
==============================================================
==============================================================
Cleaning previous NVIDIA PyIndex Configuration ...
File: `/etc/pip.conf`
Error while removing the old NVIDIA PyINDEX configuration: [Errno 2] No such file or directory: '/etc/pip.conf'
==============================================================
==============================================================
Cleaning previous NVIDIA PyIndex Configuration ...
File: `/etc/xdg/pip/pip.conf`
Error while removing the old NVIDIA PyINDEX configuration: [Errno 2] No such file or directory: '/etc/xdg/pip/pip.conf'
==============================================================

It seems it didn't know to look where my actual pip.conf file is, unfortunately.
Is this normal? What am I missing? Is it related to WSL? How can I fix my pip? I think I now need to rewrite my pip.conf but I don't know what looked like before it was altered.

Any other info / logs
N/A

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