Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot uninstall 'six'. It is a distutils installed project... #58

Closed
iViollard opened this issue Dec 10, 2018 · 12 comments
Closed

Cannot uninstall 'six'. It is a distutils installed project... #58

iViollard opened this issue Dec 10, 2018 · 12 comments
Assignees

Comments

@iViollard
Copy link

iViollard commented Dec 10, 2018

Expected Behavior

I am trying to follow the Python quickstart guide - what should happen when running

python quickstart.py

is what is described in the page: Drive API Python Quickstart

Actual Behavior

I run into an error:

When running python quickstart.py:

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.

Traceback (most recent call last):
  File "quickstart.py", line 2, in <module>
    from googleapiclient.discovery import build
ImportError: No module named googleapiclient.discovery

Steps to Reproduce the Problem

  1. pip install --upgrade google-api-python-client oauth2client
  2. python quickstart.py

Specifications

  • Python version 2.7.10
  • OS Mojave 10.14.1
@erickoledadevrel erickoledadevrel self-assigned this Dec 10, 2018
@erickoledadevrel
Copy link

erickoledadevrel commented Dec 10, 2018

Try adding the flags --ignore-installed six to your pip command and let me know if that works.

@iViollard
Copy link
Author

@erickoledadevrel thanks for replying. i tried the following:

pip install --upgrade google-api-python-client -ignore-installed six oauth2client
pip install --upgrade google-api-python-client-ignore-installed six oauth2client

Both give me an error:

'Could not find a version that satisfies the requirement google-api-python-client (from versions: )
No matching distribution found for google-api-python-client'

'Could not find a version that satisfies the requirement google-api-python-client-ignore-installed (from versions: )
No matching distribution found for google-api-python-client-ignore-installed'

@erickoledadevrel
Copy link

Sorry, that should have been --ignore-installed with two dashes. Please try again.

@iViollard
Copy link
Author

that's solved it - thanks!

@VishnuMU
Copy link

Mine too! Thank you 👍

@erickoledadevrel erickoledadevrel changed the title ImportError: No module named googleapiclient.discovery Cannot uninstall 'six'. It is a distutils installed project... Jan 11, 2019
@erickoledadevrel
Copy link

FYI, this information has been added to the troubleshoot section of the quickstart:

https://developers.google.com/drive/api/v3/quickstart/python#troubleshooting

@shaka0241
Copy link

Try adding the flags --ignore-installed six to your pip command and let me know if that works.

its works

@dpizzuto
Copy link

Try adding the flags --ignore-installed six to your pip command and let me know if that works.

It works.

@brando90
Copy link

brando90 commented Nov 13, 2019

when do we know we should ignore six and when to uninstall it?

@bashar13
Copy link

it works thank you @erickoledadevrel

@490058
Copy link

490058 commented Dec 22, 2019

Thank you! @erickoledadevrel

@gt-novelt
Copy link

If you are working with pipenv, you can achieve this by editing your Pipefile with

six = {version = "*", options = "--ignore-installed"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants