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 pyenv has been uninstalled Miniconda I don't use currently, so has also been uninstalled Cheers iGunk |
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. |