Python Forum
ImportError: No module named pydrive.auth
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ImportError: No module named pydrive.auth
#1
Hi all,

I am new to python and looking for some advice on the following error

ImportError: No module named pydrive.auth

What would I need to do to correct this error? I am using Terminal on a macbook.
Reply
#2
did you install PyDrive?
https://pythonhosted.org/PyDrive/

$ pip install PyDrive
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
To add to buran's post, I tend to do pythonversion -m pip install module eg(python3.8.2 -m pip install PyDrive). That way I know I'm installing for the version of python I'm using.
I welcome all feedback.
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags
Download my project scripts


Reply
#4
(Jun-23-2020, 05:20 PM)menator01 Wrote: To add to buran's post, I tend to do pythonversion -m pip install module eg(python3.8.2 -m pip install PyDrive). That way I know I'm installing for the version of python I'm using.

What command do i type into terminal for this ?

I've typed in pip install PyDrive and getting a lot of error message.

This is one of them Installing build dependencies ... error
ERROR: Command errored out with exit status 1

I tend to do pythonversion -m pip install module eg(python3.8.2 -m pip install PyDrive)

What command do i type first ? Or just copy and paste this pythonversion -m pip install module eg(python3.8.2 -m pip install PyDrive)

also I have installed the latest python version on my mac but when I type in the following command python --version it shows that I have a version Python 2.7.16 why could this be?
Reply
#5
python3.8 -m pip install PyDrive

You may want to check spelling pydrive may be caps and may not. I haven't used it

Pypi website is here
I welcome all feedback.
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags
Download my project scripts


Reply
#6
(Jun-23-2020, 05:49 PM)lknights1987 Wrote: also I have installed the latest python version on my mac but when I type in the following command python --version it shows that I have a version Python 2.7.16 why could this be?
You most try with:
python3 --version
pip3 --version
It should at least point to python 3.7 or newer.
Python 2.7.16 is default version that comes with your mac version,and should not be used anymore.

Install Python 3 on MacOS
If pip3 is in path only this is needed.
pip3 install PyDrive
This is just the same:
python3 -m pip install PyDrive
Now work as this -m run library module as a script,so can work also if pip3 in not path,
but pip3 should be in Path of OS.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  ModuleNotFoundError: No module named 'tkcalendar', Thonny, Windows 10 Edward_ 4 271 10 hours ago
Last Post: Edward_
  No module named 'importlib.metadata' EdVS 3 918 Jan-30-2025, 09:55 AM
Last Post: Larz60+
  ModuleNotFoundError: No module named 'athena_read' raman 2 1,235 Jul-01-2024, 07:52 AM
Last Post: Gribouillis
  no module named 'docx' when importing docx MaartenRo 1 5,272 Dec-31-2023, 11:21 AM
Last Post: deanhystad
  Problem with pymodbus - ModuleNotFoundError: No module named 'pymodbus.client.sync' stsxbel 2 30,843 Nov-02-2023, 08:20 AM
Last Post: South_east
  ModuleNotFoundError: No module named 'requests' Serg 18 9,561 Oct-29-2023, 11:33 PM
Last Post: Serg
  Resolving ImportError: No module named gdb (Python in C++) mandaxyz 3 4,309 Oct-04-2023, 02:43 PM
Last Post: mandaxyz
  ModuleNotFoundError: No module named 'PyPDF2' Benitta2525 1 3,680 Aug-07-2023, 05:32 AM
Last Post: DPaul
  ModuleNotFoundError: No module named 'eyed3' Wimpy_Wellington 2 3,107 Jul-10-2023, 03:37 AM
Last Post: Wimpy_Wellington
  How to fix this error: ModuleNotFoundError: No module named 'notears' yaoyao22 2 2,364 Jul-09-2023, 11:24 AM
Last Post: yaoyao22

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020