0
wget https://www.python.org/ftp/python/3.5.6/Python-3.5.6.tar.xz
tar xf Python-3.5.6.tar.xz
cd Python-3.5.6
./configure
make -j 4
sudo make altinstall

can't update to python 3,5 although we have install it with the command below. Please explain and help me solve it.

  • What happens when you do that? What problem are you seeing? – Mark Smith Feb 16 at 14:24
1

Python 3.5 is pre-installed in Raspbian Stretch, the recommended operating system that's been out for 18 months. I assume as you're talking about "upgrading" Python to 3.5 that you are on Raspbian Jessie, which comes with 3.4.

Rather than download and build Python yourself, you would be better off using a Python provided by and supported by the distribution (i.e. from apt).

You have two options:

  1. Download Raspbian Stretch and write it to an SD card (or re-write your current SD card)
  2. Upgrade your Raspbian Jessie system to Stretch by editing /etc/apt/sources.list and replacing jessie with stretch and running apt update and apt dist-upgrade.

Either way, you'll end up with a working, supported, stable Python 3.5.

If you are using another operating system, you should say so in your question. If that's the case, either you have a reason to, or you don't. If you don't, I advise option 1.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.