I can no longer get apt-get update or any apt-get commands to work on my system. We’ll learn more commands in our next Linux post.I think I may have broken something with python because I previously tried to update to python3, linked it to /usr/bin/python (which I now realize is the wrong thing to do) don't have the commands specifically that were used. The sample output should be like this – Python 3.4.4Ĭongratulations! Now, you know “How to Install Python 3.4.4 on Ubuntu”. To check the Python version, use the following command – $ sudo python3.4 -V Listing '/usr/local/lib/python3.4/turtledemo'.Ĭompiling '/usr/local/lib/python3.4/turtledemo/_init_.py'.Ĭompiling '/usr/local/lib/python3.4/turtledemo/_main_.py'.Ĭompiling '/usr/local/lib/python3.4/turtledemo/bytedesign.py'.Ĭompiling '/usr/local/lib/python3.4/turtledemo/chaos.py'.Ĭompiling '/usr/local/lib/python3.4/turtledemo/clock.py'.Ĭompiling '/usr/local/lib/python3.4/turtledemo/colormixer.py'.Ĭompiling '/usr/local/lib/python3.4/turtledemo/forest.py'.Ĭompiling '/usr/local/lib/python3.4/turtledemo/fractalcurves.py'.Ĭompiling '/usr/local/lib/python3.4/turtledemo/lindenmayer.py'.Ĭompiling '/usr/local/lib/python3.4/turtledemo/minimal_hanoi.py'.Ĭompiling '/usr/local/lib/python3.4/turtledemo/nim.py'.Ĭompiling '/usr/local/lib/python3.4/turtledemo/paint.py'.Ĭompiling '/usr/local/lib/python3.4/turtledemo/peace.py'.Ĭompiling '/usr/local/lib/python3.4/turtledemo/penrose.py'.Ĭompiling '/usr/local/lib/python3.4/turtledemo/planet_and_moon.py'.Ĭompiling '/usr/local/lib/python3.4/turtledemo/round_dance.py'.Ĭompiling '/usr/local/lib/python3.4/turtledemo/tree.py'. ![]() The sample output should be like this – Compiling '/usr/local/lib/python3.4/tkinter/test/widget_tests.py'.Ĭompiling '/usr/local/lib/python3.4/tkinter/tix.py'.Ĭompiling '/usr/local/lib/python3.4/tkinter/ttk.py'.Ĭompiling '/usr/local/lib/python3.4/token.py'.Ĭompiling '/usr/local/lib/python3.4/tokenize.py'.Ĭompiling '/usr/local/lib/python3.4/trace.py'.Ĭompiling '/usr/local/lib/python3.4/traceback.py'.Ĭompiling '/usr/local/lib/python3.4/tracemalloc.py'.Ĭompiling '/usr/local/lib/python3.4/tty.py'.Ĭompiling '/usr/local/lib/python3.4/turtle.py'. Use altinstall to prevent replacing the default python binary file /usr/bin/python as shown below – $ sudo make altinstall The sample output should be like this – checking sys/bsdtty.h presence. To compile Python source, use the following command – $ cd Python-3.4.4 Now extract the downloaded package as shown below- $ sudo tar xzf Python-3.4.4.tgz Compiling Python Source The sample output should be like this – - 11:13:18. To download python use the following commands- $ cd /usr/src X11proto-scrnsaver-dev x11proto-xext-dev xorg-sgml-doctools xtrans-dev X11proto-core-dev x11proto-input-dev x11proto-kb-dev x11proto-render-dev Libxrender-dev libxss-dev libxt-dev tcl-dev tcl8.6-dev tk8.6-dev Libx11-doc libxau-dev libxcb1-dev libxdmcp-dev libxext-dev libxft-dev Libpthread-stubs0-dev libsm-dev libssl-doc libtinfo-dev libx11-dev Libexpat1-dev libfontconfig1-dev libfreetype6-dev libice-dev libpng12-dev The following extra packages will be installed: The output should be like this – Reading package lists. To install supportive libraries, use the following command – $ sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev Get:1 trusty/universe checkinstall amd64 1.6.2-4ubuntu1 The following NEW packages will be installed:Ġ upgraded, 1 newly installed, 0 to remove and 1 not upgraded.Īfter this operation, 516 kB of additional disk space will be used. Python-sqlalchemy python-sqlalchemy-ext python-support python-unity-singlet ![]() Python-pyside.qtnetwork python-pyside.qtwebkit python-pysqlite2 python-regex Python-magic python-oauth2 python-pyside.qtcore python-pyside.qtgui Php7.0-opcache python-beautifulsoup python-feedparser python-html2text ![]() Libqmmpui0 libshiboken1.2 libsidplayfp libtidy-0.99-0 linux-headers-4.2.0-27 Gtk2-engines-pixbuf libbs2b0 libopusfile0 libpyside1.2 libqmmp-misc The following packages were automatically installed and are no longer required: Doneīuild-essential is already the newest version. The sample output should be like this – Reading package lists. To install python, it should require prerequisites as shown below- $ sudo apt-get install build-essential checkinstall Like Perl, Python source code is also available under the GNU General Public License (GPL).This article describes “How to install Python on Ubuntu” Installing Required Packages It was created by Guido van Rossum during 1985- 1990. Python is a general-purpose interpreted, interactive, object-oriented, and high-level programming language.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |