Configuring pip in Anaconda (D:\ drive) results in https; instead of https: on Windows 10 #13121
Open
1 task done
Labels
S: awaiting response
Waiting for a response/more information
type: bug
A confirmed bug or unintended behavior
Description
When configuring the pip mirror source in my Anaconda environment (installed on the D:\ drive), I noticed that the URL in the pip.ini file is misinterpreted, displaying https; (with a semicolon) instead of https: (with a colon). This causes pip commands to fail.
Expected behavior
Pip should correctly interpret https:// (colon) instead of https;// (semicolon), allowing me to install Python packages using the specified mirror.
pip version
Pip Version: 23.3.1
Python version
Python Version: 3.12.4
OS
Windows 10 64-bit
How to Reproduce
Steps to Reproduce
My Anaconda is installed in D:\Anaconda1.
I added the following content toD:\Anaconda1\pip\pip.ini:
[global]
index-url = https;//pypi.douban.com/simple
Ran the following command in the Anaconda prompt:
pip install numpy
Encountered the following warning and error:
WARNING: The index url "https;//pypi.douban.com/simple" seems invalid, please provide a scheme.
Analysis
I confirmed that my pip.ini file contains the following content:
[global]
index-url = https;//pypi.douban.com/simple
However, when I run pip commands, the https:// is incorrectly interpreted as https;//.
The issue seems to persist regardless of the corrections I make to the pip.ini file.
Output
Attempts to Resolve
I have already tried the following steps, but the issue persists:
Updated the URL in the pip.ini file to the following format:
[global]
index-url = https://pypi.douban.com/simple
Verified the location of pip.ini and ensured it is in the correct directory (D:\Anaconda1\pip).
Verified that pip is pointing to the correct Python environment in D:\Anaconda1.
Code of Conduct
The text was updated successfully, but these errors were encountered: