adventuregre.blogg.se

Update python debian
Update python debian





update python debian

Question: If I was to build Python 3.5 and subsequently install numpy and scipy libraries, will they correctly link to Python 3.5 or do they install to Python 3.4? What is the best way of installing Python 3.5 without overwriting any Python 3.4 or Python 2.7 dependencies by accident? Perhaps, I am overly cautious, but I need your expert opinion on how to do this, as this is the first time I am dealing with two different versions of Python distribution on one system other than Windows.

update python debian

I need to keep Python 2.7 on my system for my Python2 code.Īs a new user of Jessie (previously used Ubuntu 12.01 and Windows), I don't know what is the best way of installing Python 3.5, without corrupting existing Python 2.7 or Python 3.4 shipped with Debian 8. These were the commands I used to resolved issues with lsb_release and pip: ln -s /usr/share/pyshared/lsb_release.py /usr/local/lib/python3.9/site-packages/lsb_release.I am really keen to start working with Python 3.5 primarily because of matrix multiplication operator, as much of my work involves matrices. It was at this point that I attempted to install some required addons using pip and discovered that the upgrade to python 3.7.3 had broken a few things. At this point we can rerun the previously used version commands and we should see that we now have 3.9.0 active. The integer at the end of this command (10) sets the priority for the python version the greater the integer, the higher the priority. update-alternatives -install /usr/bin/python python /usr/local/bin/python3.9 10 Now that we have the files downloaded and extracted, it is time to compile them./configureĪfter compile the new version of python from source, we can now configure Debian to make it our default version of python3. Once downloaded we need to extract the tar file.

update python debian

Next we need to download the latest version or desired version of python 3 from the python website. Step 1 is to check your current python version: python3 -Vĭownload the latest or desired version of python 3 The basic premise is, upgrade your version of python 3 to your desired version – 3.7.3 in this instance – then configure Debian to use python 3.9 at a higher priority to python 3.5. Although the generic commands should also apply to earlier versions, but your milage may vary. This post relates specifically to python version 3.9.0.







Update python debian