How do I update gspread to get the sheet.duplicate_sheet method? I need to duplicate a sheet and can't seem to get the module updated to the latest version (3.1.0).
-
2How have you tried updating it? Newest version on PyPI is 3.0.1mx0– mx02018-11-03 22:43:31 +00:00Commented Nov 3, 2018 at 22:43
-
The github repo has documentation that refers to 3.1.0 which has "duplicate_sheet". Just wondering how I can get that version, I dont see any installation notes for grabbing the code from github and installing.Kirk– Kirk2018-11-04 16:53:59 +00:00Commented Nov 4, 2018 at 16:53
-
Try this: stackoverflow.com/questions/20101834/…mx0– mx02018-11-04 17:09:54 +00:00Commented Nov 4, 2018 at 17:09
-
That did the trick, thank you!Kirk– Kirk2018-11-04 18:34:16 +00:00Commented Nov 4, 2018 at 18:34
-
Can you post what you already did? I feel like the answer provided below is something you may have already done.Wolfpack'08– Wolfpack'082020-01-25 06:19:02 +00:00Commented Jan 25, 2020 at 6:19
3 Answers
I experienced the same issue on Google Colab. Perhaps this answer helps others like me.
The pre-installed package on Colab is currently 3.0.1, so you need to manually force an upgrade to get eg duplicate_sheet working.
!pip install gspread --upgrade
import gspread
If you've already imported the pre-installed version, you need to restart the runtime - you will be prompted to do that once you run the code above.
Comments
Duplicate!
According to the OP, the answer is found at this duplicate post.
Direct quote of the answer by Falsetru and Das-G:
Prepend the url prefix git+ (See VCS Support):
pip install git+https://github.com/tangentlabs/django-oscar-paypal.git@issue/34/oscar-0.6And specify the branch name without the leading
/.