简体   繁体   中英

Installed Python library but can't Import

Basically, I've been trying to use the spotipy python library and have tried everything but can't get it to work (Mac OS). When I do:

pip install spotipy

I get

Cannot uninstall 'six'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

And I wasn't sure what I did after that but I did something that seemed to upgrade six to 10.X. But then pip show would say it's in 1.4.1 still. I've been going at this for hours, can someone please help!

It looks like you need to be using virtualenv. This will allow you to have differing python packages without conflicts. Look this over https://virtualenv.pypa.io/en/latest/ .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM