How to change the python version used on google colab

文章推薦指數: 80 %
投票人數:10人

How to change the python version used on google colab ... !python2 --version Python 2.7.15 !python3 --version Python 3.6.9 !echo $PYTHONPATH ... Skiptocontent MyaccountRegister Postauthor:WebDev Postpublished:July31,2021 Postcategory:Development/Questions Postcomments:0Comments I’mtryingtoinstallthisrepo: https://github.com/CMU-Perceptual-Computing-Lab/MonocularTotalCapture ongooglecolab.ThisishowIhaveinstalledcondaandopencv=2.4.13(itrequirespython2.7towork) pipinstallconda !wget-chttps://repo.continuum.io/archive/Anaconda3-5.1.0-Linux-x86_64.sh !chmod+xAnaconda3-5.1.0-Linux-x86_64.sh !bash./Anaconda3-5.1.0-Linux-x86_64.sh-b-f-p/usr/local importsys sys.path.append('/usr/local/lib/python3.6/site-packages/') !condainstall-y-q-cconda-forgeopencv=2.4.13 Betweentheotherspackages,itrequiresalsopyEDM,soI’mtryingtoinstallit.I’mfollowingthisguide: https://github.com/SugiharaLab/pyEDM/issues/1 Idon’tgetanyerroruntilthiscommand: !cdpyEDM;pipinstall. thatgivestomethiserror: Processing/content/pyEDM ERROR:Package'pyEDM'requiresadifferentPython:2.7.15notin'>=3' InfactwhenIaskwhichversionsofpythonIhave,itsays: !python2--version Python2.7.15 !python3--version Python3.6.9 !echo$PYTHONPATH /tensorflow-1.15.0/python3.6:/env/python So,IshouldchangethepythonversioninstalledbycondawhenIhaveinstalledopencv2.4.13toaversionof3orgreater,otherwisethepackagecan’tbeinstalled.OnmylocalmachineIwoulddothatwiththiscommand: !aliaspython='/usr/bin/python3.6' butitdoesnotworkoncolab.WhenIgivethealiascommanditdoesn’tansweranythingandtheerrorisstillthere. WhatcanIdo? Tags:conda,google-colaboratory,python,python-3.x Readmorearticles NextPostHowtofixupdatedpip:RuntimeError:Python3.5orlaterisrequired YouMightAlsoLike CannotResolveReferencetoBeanMongoTemplateWhileSettingBeanPropertyMongoOperations August19,2021 Daggerversion2:MultiModuleProjectInjectDependencybutgetlatentPropertyRepositoryhasnotbeeninitializeerroratRuntime August15,2021 ImportPostgresDataIntoRDSUsingS3andAws_s3 August21,2021 LeaveaReplyCancelreplyCommentEnteryournameorusernametocomment Enteryouremailaddresstocomment EnteryourwebsiteURL(optional) Savemyname,email,andwebsiteinthisbrowserforthenexttimeIcomment. Δ Username Password RememberMe RegisterShare🚀 Onooks(OOKS) 0x69d9905b2e5f6f5433212b7f3c954433f23c1572 Buy|Chart|About Members Newest|Active|Popular Groups Newest|Active|Popular|Alphabetical failedtogetD-Busconnection:Operationnotpermitted PhpMyAdminnotworkingonlocalhost(HowtoEasyFix) [Solution]“UncaughtSyntaxError:Cannotuseimportstatementoutsideamodule”whenimportingECMAScript6 AutoCADAssignmentHelp:GetFamiliarwithAutoCADAssignmentsnow TrustedandLatestPreparationAmazonSAP-C01StudyMaterial WhatRoleDoesModvigilHaveInTheTreatmentOfSleepApnea? CSGOHelplineTollFreeNumber BittrexTollfreeNumber Snowrider3dismylife DetermineTheUsabilityOfCryptoTabinAndroidOS ChoosingaNaturalCureforImpotence HOWTOSTAYAWAYFROMNARCOLEPSY? Tags18.04 20.04 Android android-studio angular angular-material apt asp.net-core c# dart django docker Exchange Firebase flutter html ios java javascript jestjs json keras laravel macos magento2 mysql networking node.js pandas php pip postgresql python python-3.x react-native reactjs Roulette Slots spring spring-boot swift tensorflow typescript unit-testing windows × ×Cart



請為這篇文章評分?