Hi I had installed python27 and after python31, I tried to deinstall python27 but it seems that this version is standing on host. How can I set python31 to become main python ?

Install process.

  • You should know that text is preferable to a screenshot. Jan 14, 2016 at 1:27
  • Please use Markdown and/or the formatting options in the edit menu to properly type-set your posts to improve their readability. Also use cut-and-paste for posting console output and format it as "code" rather than posting screenshots. That improves readability, attracts better answers and allows indexing by search engines, which may help people with similar questions.
    – HBruijn
    Jan 14, 2016 at 10:00

1 Answer 1


You need to add this line to /etc/make.conf file:


And install lang/python port. This will make Python 3.4 your default python version. I recommend you reinstall all ports that depend on python and finally remove python2.7:

pkg delete python27
  • It says that python27 is not installed but when I use python-v i get python27
    – Ciolte Alin
    Jan 10, 2016 at 11:29
  • What does ls -l /usr/local/bin/python* says? It seems your previous python installation was not cleanly removed. Jan 10, 2016 at 11:41
  • prntscr.com/9oaipn
    – Ciolte Alin
    Jan 10, 2016 at 11:45
  • How about pkg info | grep ^python ? Jan 10, 2016 at 11:46
  • pkg info is not installed and grep ^python in 2min doesn't showed anything.Btw how I make in console the "|" symbol?
    – Ciolte Alin
    Jan 10, 2016 at 11:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy