Score:0

how to set PYTHONPATH to default value in ubuntu 20.04

gd flag

I want to reset my python path. When i try echo $PYTHONPATH, I am getting /home/guru/noetic_robots/turtlebot3_ws/devel/lib/python3/dist-packages. I don't know how this happened

I have python 3.8 and 2.7 installed on my PC with Ubuntu 20.04

frippe avatar
ug flag
`unset PYTHONPATH`. Note, however, that if you're setting it in any of the files that are sourced when starting a shell, you'll need to remove it from that file or it will be reset next time you start a new shell.
Pedakolimi Harish avatar
gd flag
@frippe just one question, does PYTHONPATH point towards python which is installed in the system, or a python code
Pedakolimi Harish avatar
gd flag
@frippe unset PYTHONPATH worked for me thanks
frippe avatar
ug flag
https://docs.python.org/3/using/cmdline.html#envvar-PYTHONPATH
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.