1

When I run pip3 list, I got the message DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.. When I modified my $HOME/.pip/pip.conf and added

[list]
    --format=columns

to the pip.conf. However, I got another wrong message when I run pip2 list:

Configuration file could not be loaded.
File contains parsing errors: /data/home/user00/.pip/pip.conf
        [line  2]: '    --format=columns\n'

How should I config the pip.conf to satisfied both pip2 and pip3 to run?

2 Answers 2

2

pip3 list error message:

DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.

In your config file you need to use

[list]
format=columns

or add --format=columns to pip3 list command

pip3 list --format=columns
Sign up to request clarification or add additional context in comments.

4 Comments

I see, but my question is this: bash $ pip list Configuration file could not be loaded. File contains parsing errors: /data/home/modnar/.pip/pip.conf [line 2]: ' format=columns\n'
Remove that indentation and check
Wow, fixed it! Thanks!
Furthermore, if I want to make pip2 use --format legacy while pip3 use --format columns, how should I change the pip.conf?
0

Just upgrade your pip:

pip install --upgrade setuptools


pip install pip --upgrade

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.