Solve ImportError: cannot import name 'appdirs' from 'pip._vendor'

asked 2021-06-15 18:47:30 +0200

Isaac gravatar image

Hello, I'm working with SageMath version 9.2. There is a problem when I try to add any new package to sage with the command

$ sage --pip install any_package

Can anybody help me?

edit retag flag offensive close merge delete



Could you please give us some informations so that someone can try to reproduce your problem:

  • which OS ?
  • did you install Sage from the distribution, and which package ?
  • did you install Sage from the binaries, and which ones ?
  • did you compile Sage yourself ?
tmonteil gravatar imagetmonteil ( 2021-06-15 19:00:10 +0200 )edit

I'm working on Ubuntu 20.04. I installed Sage from the binaries if I remember correctly. I had version 8 when I decided to install the version 9.2 but I don't remember if I compile Sage or not.

Thanks for the help and sorry for the lack of information. I installed this version several months ago

Isaac gravatar imageIsaac ( 2021-06-15 19:08:28 +0200 )edit