I have uninstalled Anaconda on Mac and am now trying to install IPython using pip3.
When I try to install IPython, I get a prompt, "User for us-central1-python.pkg.dev: ". This asks for username and password. What should I enter here? I use GCP, and I have installed gsutil. I'm not sure if this is due to any GCP artifact. As root:
cd ~
python --version
Output:
zsh: command not found: python
And:
python3 --version
Output:
Python 3.9.6
And:
pip3 install ipython
Output:
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.org/simple, https://us-central1-python.pkg.dev/workspace_code/analyticsv2-pypi/simple/
User for us-central1-python.pkg.dev:
I verified file ~/.pip/pip.conf. It has an entry as below
[global]
extra-index-url = https://us-central1-python.pkg.dev/workspace_code/analyticsv2-pypi/simple/
The error is related to the configuration of your Python package index sources. Specifically, the prompt for a username and password for us-central1-python.pkg.dev
suggests that your pip configuration is pointing to a private or custom repository hosted on GCP in addition to the default PyPI 3 repository.
Set index-url
or extra-index-url
in pip.conf
to https://us-central1-python.pkg.dev/workspace_code/analyticsv2-pypi/simple/
, or remove them if you are not intending to use a private repository.
Meanwhile, you can bypass the custom repository with the following command:
pip3 install ipython --index-url https://pypi.org/simple