LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Clean $PATH and clean python install (https://www.linuxquestions.org/questions/linux-general-1/clean-%24path-and-clean-python-install-4175591178/)

iFunction 10-11-2016 05:16 AM

Clean $PATH and clean python install
 
Hi there,

I've been having a lot of trouble with python and importing modules, so I have uninstalled all python from my Raspberry Pi and want to re do it all from scratch.

Problem is my $PATH is now full of stuff and I am unsure what should be there and what should not. Here is my PATH currently:
Code:

/home/pi/.pyenv/shims:/home/pi/.pyenv/bin:/home/pi/miniconda/bin:/home/pi/bin:/usr/local/sbin:/usr/local/bin:usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games:/home/pi/.pyenv/shims:/usr/local/bin:/usr/bin/:/bin
What I want, is for python2.7 to be the system version and this has now been installed but is not set in the path it seems, then to use pyenv to run python3 which is the version I am learning.

pyenv has been uninstalled

Miniconda I don't use currently, so has also been uninstalled

Cheers
iGunk

rtmistler 10-12-2016 09:09 AM

If pyenv has been uninstalled, then remove that from your path. Same for miniconda.

Do a find from the / directory to find where the python 2.7 executable is located. Either that is in your path already or not, and it seems as if you already have all the typical paths, /bin, /sbin, /usr/bin, /usr/sbin, /usr/local/bin, /usr/local/sbin. I think if python2.7 does not run then perhaps something is incorrect with the install because it should be in one of the typical executable directories already cited.

Mine is located in: /usr/bin/python2.7


All times are GMT -5. The time now is 01:02 AM.