ImportError: Library "GLU" not found - Stack Overflow
文章推薦指數: 80 %
For some reason executing python programs from the flatpak version fails to find the relevant OpenGL libraries (As mentioned here).
Howarewedoing?PleasehelpusimproveStackOverflow.Takeourshortsurvey
Home
Public
Questions
Tags
Users
Companies
Collectives
ExploreCollectives
Teams
StackOverflowforTeams
–Startcollaboratingandsharingorganizationalknowledge.
CreateafreeTeam
WhyTeams?
Teams
CreatefreeTeam
Collectives™onStackOverflow
Findcentralized,trustedcontentandcollaboratearoundthetechnologiesyouusemost.
LearnmoreaboutCollectives
Teams
Q&Aforwork
Connectandshareknowledgewithinasinglelocationthatisstructuredandeasytosearch.
LearnmoreaboutTeams
Howarewedoing?
Takeourshortsurvey
ImportError:Library"GLU"notfound
AskQuestion
Asked
4years,4monthsago
Modified
10monthsago
Viewed
15ktimes
9
OnCentOS7.5system,runpython3andexecutethefollowingcode:
importgym
importtime
env=gym.make('CartPole-v0')
observation=env.reset()
count=0
fortinrange(100):
action=env.action_space.sample()
observation,reward,done,info=env.step(action)
ifdone:
break
env.render()
count+=1
time.sleep(0.2)
Reportthefollowingerrorafterexecutingtheabovecode:
Traceback(mostrecentcalllast):
File"
[root@devmastergym]#yum-yinstallfreeglutLoadedplugins:fastestmirror,langpacksLoadingmirrorspeedsfromcachedhostfile*base:mirrors.aliyun.com*extras:mirrors.tuna.tsinghua.edu.cn*updates:ftp.iij.ad.jpbase|3.6kB00:00:00code|2.9kB00:00:00extras|3.4kB00:00:00updates|3.4kB00:00:03Packagefreeglut-2.8.1-3.el7.x86_64alreadyinstalledandlatestversionNothingtodo[root@devmastergym]#
– Jackon
May21,2018at15:35
Installglutmeanssudoaptinstallfreeglut3-dev....GLandGLUlibs:aptinstalllibgl1-mesa-devlibglu1-mesa-dev
– KnudLarsen
May21,2018at16:41
Incentos6.5system,therearenofreeglut3-dev,libgl1-mesa-dev,libglu1-mesa-devpackages,whichareallinUbuntusystem.
– Jackon
May23,2018at3:06
IhaveaRHEL7.4(mostlyCentOS7.5)andIcanfindfreeglut-develpackages.IhavethoseinstalledandIcouldrunyourcode(itcrashsafteramoment,butit"works")
– DanielRodríguez
May24,2018at6:45
|
Show1morecomment
3Answers
3
Sortedby:
Resettodefault
Highestscore(default)
Trending(recentvotescountmore)
Datemodified(newestfirst)
Datecreated(oldestfirst)
16
Forwhoeverstumblesonthisquestionthesolutionistoinstallfreeglut-develpackageforyourOSdistribution:
#aptsystems-Ubuntu,Debian
aptinstallfreeglut-devel
#yum-Centos
yum-yinstallfreeglut-devel
Share
Improvethisanswer
Follow
answeredOct19,2018at4:46
GranitosaurusGranitosaurus
19.5k44goldbadges5353silverbadges7676bronzebadges
3
18
OnUbuntu16.04:aptinstallfreeglut3-dev
– Fons
Nov30,2018at13:08
4
OnArch,Iinstalledtheglupackage,pacman-Sglu.
– JacquesKvam
Sep6,2020at20:57
1
Thanks@JacquesKvam---pacman-Sfreeglutdoesn'tseemtobeenough.Ineededglu.
– SigmaX
Oct16,2020at0:59
Addacomment
|
3
ForraspberrypizerowithLinuxDietPi4.19.97+#1294armv6lGNU/Linux:
sudoapt-getinstallfreeglut3-dev
Share
Improvethisanswer
Follow
answeredFeb25,2020at17:39
DragosVasileDragosVasile
42344silverbadges1212bronzebadges
Addacomment
|
1
Note:Tosomeonewhocomeswanderinginandcan'tfindasolutiononLinux.First,installthefollowing:
sudoaptinstallfreeglut3-devfreeglut3libgl1-mesa-devlibglu1-mesa-devlibxext-devlibxt-dev
sudoaptinstallpython3-opengllibgl1-mesa-glxlibglu1-mesa
Secondly,ifyou'reusingPyCharmflatpakdon'tusethat.Downloaddirectlyfromthewebsite.ForsomereasonexecutingpythonprogramsfromtheflatpakversionfailstofindtherelevantOpenGLlibraries(Asmentionedhere)
Share
Improvethisanswer
Follow
answeredNov2,2021at18:08
RafayKhanRafayKhan
81899silverbadges2222bronzebadges
Addacomment
|
YourAnswer
ThanksforcontributingananswertoStackOverflow!Pleasebesuretoanswerthequestion.Providedetailsandshareyourresearch!Butavoid…Askingforhelp,clarification,orrespondingtootheranswers.Makingstatementsbasedonopinion;backthemupwithreferencesorpersonalexperience.Tolearnmore,seeourtipsonwritinggreatanswers.
Draftsaved
Draftdiscarded
Signuporlogin
SignupusingGoogle
SignupusingFacebook
SignupusingEmailandPassword
Submit
Postasaguest
Name
Email
Required,butnevershown
PostYourAnswer
Discard
Byclicking“PostYourAnswer”,youagreetoourtermsofservice,privacypolicyandcookiepolicy
Nottheansweryou'relookingfor?Browseotherquestionstaggedpython-3.xoraskyourownquestion.
TheOverflowBlog
IspenttwoyearstryingtodowhatBackstagedoesforfree
Aserialentrepreneurfinallyembracesopensource(Ep.486)
FeaturedonMeta
PlannedmaintenancescheduledforWednesday,21September,00:30-03:00UTC...
RecentColorContrastChangesandAccessibilityUpdates
Revieweroverboard!Orarequesttoimprovetheonboardingguidancefornew...
ShouldIexplainotherpeople'scode-onlyanswers?
Visitchat
Linked
0
PygletfailstoloadGLUlibrary
Related
0
TensorflowObjectDetectionAPI/ImportError:cannotimportname'keypoint_box_coder_pb2'
0
ImportErrorfromMatplotlibv.2.2.2underAnaconda5.1MacOSXSierra
1
Inthecentos6.5systemdeploymentgymenvironmenterror
0
ImportError:DLLloadfailed:Adynamiclinklibrary(DLL)initializationroutinefailed.(importingtensorflowerror)
1
ModuleNotFoundError:Nomodulenamed'pixelengine'inpython
2
ImportError:cannotimportname'device_spec'from'tensorflow.python.framework'
0
Tensorflow1.14.0errorinimportingthemodule
HotNetworkQuestions
TipsonwheretobuyclothesforcoldweatherinLille,France?
Isitokaythatpartofthepowerjackisoutsidethedevice?
EachhaveorHaveeach
Somethingappearsvaluableorpreciousbutitisn't,symbolicallyequivalenttoPyrite?
Howtopreventhumansfrombeingkilledbyaliendiseases?
addatwo-linetextinsideacomponentincircuitikz
HowwouldtheUSmilitaryefficientlydealwithNecromorph-likezombies?
CanyoutraveltoIrelandwithanUK+SchengenVisa(ifyouareIndianandaretravellingfromAustria)?
AsaPhDstudentintheoreticalphysics,whatfractionofmytime(ifany)shouldIspendonbackgroundmaterialratherthanmyresearchproblem?
WhyaTLScertificatewithadomainnamemaskthatdoesn'tmatchsitepatterndoesn'ttriggerawarninginthebrowser
WhyDidOldSovietCityBikesHaveLongerFramesinGeneral
Jonah2:1-2-whysay"Sheol"torefertotheliteralbellyofaliteralfish?
Whyisthe-eoptionnotinthebashcommandmanual?
OBBtrainnoreservationseats
Principlestoresolveambiguityinacontract
Howtoliterallytranslatethe由人类艺术家挥笔in志愿者普遍更喜欢的作品都是由人类艺术家挥笔完成的?
Ifhumanswerethesizeofantscouldwehavecampfires?
IsitpossibletoidentifyUTXOssignedbyHDwallets?
Whatisatuneorsongcalledthatisrecurrentlyusedsopeoplestarttoassociatethetuneorsongwiththatwhatitisusedwith?
WhenpastinginTerminal.app,`00~`ispastedatthestartand`01~`attheend
Advantagesofalawlicenseotherthantheabilitytopracticelaw
Sci-fihorrorshortstoryaboutalienthatwantstobeeaten
SciencefictionshortstoryinwhichEinsteinisclonedbutshowsnointerestinmuchexceptplayinghisviolin
Howtochangerowwidth?
morehotquestions
Questionfeed
SubscribetoRSS
Questionfeed
TosubscribetothisRSSfeed,copyandpastethisURLintoyourRSSreader.
lang-py
Yourprivacy
Byclicking“Acceptallcookies”,youagreeStackExchangecanstorecookiesonyourdeviceanddiscloseinformationinaccordancewithourCookiePolicy.
Acceptallcookies
Customizesettings
延伸文章資訊
- 1ImportError: Library "GLU" not found - Stack Overflow
For some reason executing python programs from the flatpak version fails to find the relevant Ope...
- 2找ImportError('Library GLU'' not found)相關社群貼文資訊| 服飾貼文懶 ...
2013年11月7日· Library "GLU" not found #46 ... from pyglet.gl.lib_glx import link_GL, link_GLU, link...
- 3OpenAI gym 远程登陆运行出错ImportError和 ... - CSDN博客
问题记录远程登陆Jupyter Notebook使用OpenAI的gym库时,在显示结果时会报错错误一一开始遇到的问题是ImportError: Library “GLU” not found解...
- 4"Library "GLU" not found" while using openaAI gym
Hello,. I am using Ubuntu 18.04 to evaluate this simple block of code on python. ... ImportError:...
- 5ImportError: Library "GLU" not found - bytemeta