Today when I tried to install some package using pip3 command with mac book pro M1 chip, shows error like this:
> pip3 install jurigged
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', IsADirectoryError(21, 'Is a directory'))': /simple/jurigged/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', IsADirectoryError(21, 'Is a directory'))': /simple/jurigged/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', IsADirectoryError(21, 'Is a directory'))': /simple/jurigged/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', IsADirectoryError(21, 'Is a directory'))': /simple/jurigged/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', IsADirectoryError(21, 'Is a directory'))': /simple/jurigged/
ERROR: Could not find a version that satisfies the requirement jurigged (from versions: none)
ERROR: No matching distribution found for jurigged
WARNING: There was an error checking the latest version of pip.
my internet connection are working fine, why still show this error? what should I do to fixed this issue? this OS is macOS 13.2. this is the pip info:
> pip3 -V
pip 22.3.1 from /Users/xiaoqiangjiang/anaconda3/lib/python3.10/site-packages/pip (python 3.10)
I have tried to use pyenv to manage the virtual environment, but still could not fixed this issue:
> pyenv virtualenvs
3.10.11/envs/ai-hub (created from /Users/xiaoqiangjiang/.pyenv/versions/3.10.11)
* ai-hub (created from /Users/xiaoqiangjiang/.pyenv/versions/3.10.11)
I did not found any proxy settings in shell:
> env|grep proxy
> env|grep PROXY
> env|grep "PROXY"
> env|grep "proxy"
did not found any proxy settings in pip:
> pip config list
> pip3 config list
this is the verbose output:
> pip3 install jurigged --verbose
Using pip 22.3.1 from /Users/xiaoqiangjiang/anaconda3/lib/python3.10/site-packages/pip (python 3.10)
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', IsADirectoryError(21, 'Is a directory'))': /simple/jurigged/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', IsADirectoryError(21, 'Is a directory'))': /simple/jurigged/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', IsADirectoryError(21, 'Is a directory'))': /simple/jurigged/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', IsADirectoryError(21, 'Is a directory'))': /simple/jurigged/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', IsADirectoryError(21, 'Is a directory'))': /simple/jurigged/
ERROR: Could not find a version that satisfies the requirement jurigged (from versions: none)
ERROR: No matching distribution found for jurigged
WARNING: There was an error checking the latest version of pip.
I also tried to switch the mirror like this:
> pip3 config set global.index-url https://mirrors.ustc.edu.cn/pypi/web/simple
Writing to /Users/xiaoqiangjiang/.config/pip/pip.conf
> pip3 install --upgrade setuptools
Looking in indexes: https://mirrors.ustc.edu.cn/pypi/web/simple
Requirement already satisfied: setuptools in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (58.1.0)
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', IsADirectoryError(21, 'Is a directory'))': /pypi/web/simple/setuptools/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', IsADirectoryError(21, 'Is a directory'))': /pypi/web/simple/setuptools/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', IsADirectoryError(21, 'Is a directory'))': /pypi/web/simple/setuptools/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', IsADirectoryError(21, 'Is a directory'))': /pypi/web/simple/setuptools/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', IsADirectoryError(21, 'Is a directory'))': /pypi/web/simple/setuptools/
still did not work.