LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-11-2016, 05:16 AM   #1
iFunction
Member
 
Registered: Nov 2015
Posts: 248

Rep: Reputation: Disabled
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
 
Old 10-12-2016, 09:09 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 8,803
Blog Entries: 13

Rep: Reputation: 3971Reputation: 3971Reputation: 3971Reputation: 3971Reputation: 3971Reputation: 3971Reputation: 3971Reputation: 3971Reputation: 3971Reputation: 3971Reputation: 3971
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
 
  


Reply

Tags
path, python


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Python MySQL: clean multiple foreign keys table threaderslash Programming 0 11-28-2009 04:44 AM
clean install rgreeves Linux - Software 2 11-10-2007 09:42 AM
$PATH clean up? johnpaulodonnell Linux - Newbie 4 11-15-2006 03:58 PM
Clean install and nothing happens Henry_M Fedora 5 09-03-2006 05:39 AM
Clean Install KO_32 Linux - Newbie 8 07-15-2005 10:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration