Strona 1 z 1

[+] Instalacja Python 3.3.5

: 11 marca 2014, 02:22
autor: AKJ
Chcialem zainstalowac Python 3.3.5 (w repo jest wersja 3.2). Ze strony ściągnąłem plik Python-3.3.5.tar.xz, rozpakowalem go i po wejsciu w folder w konsoli (wg README) wpisalem kolejno:

Kod: Zaznacz cały

./configure
    make
    make test
    sudo make install
Jednak gdy przeszukuje menu z programami, jedynie co znajduje to python 2.7, podobnie po wpisaniu w konsole "python" uruchamia sie 2.7, dopiero gdy wpisze "python3.3", mam wersje, ktora pobralem.

Czy ktos mi moze powiedziec gdzie w systemie/na dysku, znajduje sie python 3.3, ktory pobralem i zainstalowalem?
W jaki sposob ustawic 3.3.5 na domyslny? Probowalem usunac przez Synaptic 2.7, ale wraz z nim system chcial usunac gnome, czego raczej wolalbym uniknac.

: 11 marca 2014, 04:03
autor: Rafal_F
Sprawdź w: /usr/bin i w /usr/local/bin. Szukaj pliku o nazwie "python3.3". Żeby ta wersja była uruchamiana po wpisaniu po prostu "python" musisz zrobić dowiązanie symboliczne:

Kod: Zaznacz cały

rm /usr/bin/python
ln -s /usr/local/bin/python3.3 /usr/bin/python

: 11 marca 2014, 13:07
autor: AKJ
Ok, dzieki dziala :) Pytanie na przyszlosc, zakladajac, ze wyszla nowa wersja pythona lub innego programu, ktory zainstalowalem w ten sposob, czy da sie zrobic update bez usuwania poprzedniej wersji? Jesli nie, jak ja usunac w calosci, ale nic ponadto (np. nie chcialbym przypadkiem wywalic gnome), aby moc zainstalowac nowsza wersje? Przez Synaptic chyba sie nie da, nie widnieje w nim zaden zainstalowany pakiet python3.3.

: 11 marca 2014, 14:12
autor: Rafal_F
Wchodzisz do katalogu ze źródłami (musisz go zachować, a może wystarczy sam plik Makefile(?)) i wpisujesz (jako root):

Kod: Zaznacz cały

make uninstall

: 09 czerwca 2014, 22:22
autor: AKJ
Wracam do tematu, jako ze powstal pewien problem.
Chcialem odinstalowac python 3.3.5, ktory w w.w. sposob na swoj system sprowadzilem. Niestety, nie ma w source pliku unistall, wiec zaczalem szukac po sieci i znalazlem porade, aby skorzystac z checkinstall:
http://ubuntuforums.org/showthread.php? ... ost7635985

Niestety, po wpisaniu:

Kod: Zaznacz cały

checkinstall -D --fstrans=no make install
troche program mieli, nastepnie wpisuje:

Kod: Zaznacz cały

dpkg -i Python-3.3.5-1_amd64.deb
I tu zaczynaja sie schody, bo o ile powyzsze dziala, nastepujace polecenie:

Kod: Zaznacz cały

dpkg -r Python-3.3.5-1
odpowiada bledem:
dpkg: ostrzeżenie: ignorowanie żądania usunięcia pakietu python_3.3.5-1, który nie jest zainstalowany

Gdy wchodze do Synaptica na dzien dobry mam ostrzezenie o 98 pakietach wymagajacych naprawy. Python 3.3.5 jest teraz 'domyslnym' pakietem, po wpisaniu 'python' w wyszukiwarke pakietow.

Kod: Zaznacz cały

apt-get install -f
chce mi wywalic calego gnome'a. Podobnie proba wywalenia python 3.3.5 przez Synaptica. Python 2.7 jest nadal zainstalowany.

Zdaje sobie sprawe, ze cos na jakims etapie zepsulem, nie wiem jednak gdzie i co. Pytanie jak to odkrecic, aby nie trzeba bylo przeinstalowywac gnome'a i kilkudziesieciu innych pakietow oraz pozbyc sie pythona 3.3.5, wstawic na jego 'domyslne' miejsce z powrotem 2.7 (i potem przez repo zainstalowac 3.2, co bylo moim zamiarem).

Plz halp.

: 10 czerwca 2014, 01:02
autor: Rafal_F
Przecież napisałem, że jeżeli instalowałeś program przez

Kod: Zaznacz cały

make install
to powinieneś go usunąć poleceniem

Kod: Zaznacz cały

make uninstall
Powyższe musisz wydać w katalogu ze źródłami.

Co do pakietu to wklej tu wynik:

Kod: Zaznacz cały

dpkg -l | grep python

: 10 czerwca 2014, 11:53
autor: AKJ
Rzecz w tym, ze nie komenda nie dzialala - pogooglalem troche, ponoc niektore source nie maja unistall :(

Kod: Zaznacz cały

ii  ipython                                       0.13.1-2                           all          enhanced interactive Python shell
ii  ipython-notebook                              0.13.1-2                           all          interactive Python html notebook
ii  ipython-notebook-common                       0.13.1-2                           all          interactive Python html notebook data package
ii  libpython2.7                                  2.7.3-6+deb7u2                     amd64        Shared Python runtime library (version 2.7)
ii  python                                        3.3.5-1                            amd64        python335_unistall EOF
ii  python-antlr                                  2.7.7+dfsg-4                       all          language tool for constructing recognizers, compilers etc
ii  python-apt                                    0.8.8.2                            amd64        Python interface to libapt-pkg
ii  python-apt-common                             0.8.8.2                            all          Python interface to libapt-pkg (locales)
ii  python-aptdaemon                              0.45-2                             all          Python module for the server and client of aptdaemon
ii  python-aptdaemon.gtk3widgets                  0.45-2                             all          Python GTK+ 3 widgets to run an aptdaemon client
ii  python-beautifulsoup                          3.2.1-1                            all          error-tolerant HTML parser for Python
ii  python-brlapi                                 4.4-10+deb7u1                      amd64        Python bindings for BrlAPI
ii  python-cairo                                  1.8.8-1+b2                         amd64        Python bindings for the Cairo vector graphics library
ii  python-chardet                                2.0.1-2                            all          universal character encoding detector
ii  python-cherrypy3                              3.2.2-2                            all          Python web development framework - version 3
ii  python-configobj                              4.7.2+ds-4                         all          simple but powerful config file reader and writer for Python
ii  python-crypto                                 2.6-4+deb7u3                       amd64        cryptographic algorithms and protocols for Python
ii  python-cssutils                               0.9.10~b1-1                        all          CSS Cascading Style Sheets parser and builder
ii  python-dateutil                               1.5+dfsg-0.1                       all          powerful extensions to the standard datetime module
ii  python-dbus                                   1.1.1-1                            amd64        simple interprocess messaging system (Python interface)
ii  python-dbus-dev                               1.1.1-1                            all          main loop integration development files for python-dbus
ii  python-debian                                 0.1.21                             all          Python modules to work with Debian-related data formats
ii  python-debianbts                              1.11                               all          Python interface to Debian's Bug Tracking System
ii  python-decorator                              3.3.3-1                            all          simplify usage of Python decorators by programmers
ii  python-defer                                  1.0.6-2                            all          Small framework for asynchronous programming (Python 2)
ii  python-dev                                    2.7.3-4+deb7u1                     all          header files and a static library for Python (default)
ii  python-dnspython                              1.10.0-1                           all          DNS toolkit for Python
ii  python-feedparser                             5.1.2-1                            all          Universal Feed Parser for Python
ii  python-fpconst                                0.7.2-5                            all          Utilities for handling IEEE 754 floating point special values
ii  python-gconf                                  2.28.1+dfsg-1                      amd64        Python bindings for the GConf configuration database system
ii  python-gi                                     3.2.2-2                            amd64        Python 2.x bindings for gobject-introspection libraries
ii  python-gi-cairo                               3.2.2-2                            amd64        Python Cairo bindings for the GObject library
ii  python-glade2                                 2.24.0-3+b1                        amd64        GTK+ bindings: Glade support
ii  python-gnome2                                 2.28.1+dfsg-1                      amd64        Python bindings for the GNOME desktop environment
ii  python-gnupginterface                         0.3.2-9.1                          all          Python interface to GnuPG (GPG)
ii  python-gobject                                3.2.2-2                            all          Python 2.x bindings for GObject - transitional package
ii  python-gobject-2                              2.28.6-10                          amd64        deprecated static Python bindings for the GObject library
ii  python-gtk2                                   2.24.0-3+b1                        amd64        Python bindings for the GTK+ widget set
ii  python-httplib2                               0.7.4-2+deb7u1                     all          comprehensive HTTP client library written for Python
ii  python-imaging                                1.1.7-4                            amd64        Python Imaging Library
ii  python-joblib                                 0.6.4-3                            all          tools to provide lightweight pipelining in Python
ii  python-libxml2                                2.8.0+dfsg1-7+nmu3                 amd64        Python bindings for the GNOME XML library
ii  python-louis                                  2.4.1-1                            amd64        Python bindings for liblouis
ii  python-lxml                                   2.3.2-1+deb7u1                     amd64        pythonic binding for the libxml2 and libxslt libraries
ii  python-mako                                   0.7.0-1.1                          all          fast and lightweight templating for the Python platform
ii  python-markupsafe                             0.15-1                             amd64        XML/HTML/XHTML Markup safe string for Python
ii  python-matplotlib                             1.1.1~rc2-1                        amd64        Python based plotting system in a style similar to Matlab
ii  python-matplotlib-data                        1.1.1~rc2-1                        all          Python based plotting system (data package)
ii  python-mechanize                              1:0.2.5-3                          all          stateful programmatic web browsing
ii  python-minimal                                2.7.3-4+deb7u1                     all          minimal subset of the Python language (default version)
ii  python-mysql.connector                        0.3.2-1                            all          pure Python implementation of MySQL Client/Server protocol
ii  python-mysqldb                                1.2.3-2                            amd64        Python interface to MySQL
ii  python-nose                                   1.1.2-3                            all          test discovery and running of Python's unittest
ii  python-notify                                 0.1.1-3                            amd64        Python bindings for libnotify
ii  python-numexpr                                2.0.1-3                            amd64        Fast numerical array expression evaluator for Python and NumPy
ii  python-numpy                                  1:1.6.2-1.2                        amd64        Numerical Python adds a fast array facility to the Python language
ii  python-openpyxl                               1.5.8-1                            all          module to read/write OpenXML xlsx/xlsm files
ii  python-packagekit                             0.7.6-3                            all          PackageKit backend Python bindings
ii  python-pandas                                 0.8.0-2                            all          data structures for "relational" or "labeled" data
ii  python-pandas-lib                             0.8.0-2                            amd64        low-level implementations and bindings for pandas
ii  python-paramiko                               1.7.7.1-3.1                        all          Make ssh v2 connections with Python
ii  python-pexpect                                2.4-1                              all          Python module for automating interactive applications
ii  python-pkg-resources                          0.6.24-1                           all          Package Discovery and Resource Access using pkg_resources
ii  python-pyatspi                                2.5.3+dfsg-3                       all          Assistive Technology Service Provider Interface - Python bindings
ii  python-pyatspi2                               2.5.3+dfsg-3                       all          Transitional package for assistive technology Python bindings
ii  python-pycurl                                 7.19.0-5                           amd64        Python bindings to libcurl
ii  python-pyorbit                                2.24.0-6+b1                        amd64        A Python language binding for the ORBit2 CORBA implementation
ii  python-pyparsing                              1.5.6+dfsg1-2                      all          Python parsing module
ii  python-pysqlite2                              2.6.3-3                            amd64        Python interface to SQLite 3
ii  python-qt4                                    4.9.3-4                            amd64        Python bindings for Qt4
ii  python-renderpm                               2.5-1.1                            amd64        python low level render interface
ii  python-reportbug                              6.4.4                              all          Python modules for interacting with bug tracking systems
ii  python-reportlab                              2.5-1.1                            all          ReportLab library to create PDF documents using Python
ii  python-reportlab-accel                        2.5-1.1                            amd64        C coded extension accelerator for the ReportLab Toolkit
ii  python-repoze.lru                             0.5-2                              all          tiny LRU cache implementation and decorator
ii  python-routes                                 1.13-2                             all          Routing Recognition and Generation Tools
ii  python-scipy                                  0.10.1+dfsg2-1                     amd64        scientific tools for Python
ii  python-simplegeneric                          0.8.1-1                            all          simple generic functions for Python
ii  python-simplejson                             2.5.2-1                            amd64        simple, fast, extensible JSON encoder/decoder for Python
ii  python-sip                                    4.13.3-2                           amd64        Python/C++ bindings generator runtime library
ii  python-soappy                                 0.12.0-4                           all          SOAP Support for Python
ii  python-software-properties                    0.82.7.1debian1                    all          manage the repositories that you install software from
ii  python-speechd                                0.7.1-6.2                          all          Python interface to Speech Dispatcher
ii  python-statsmodels                            0.4.2-1                            all          Python module for the estimation of statistical models
ii  python-statsmodels-lib                        0.4.2-1                            amd64        low-level implementations and bindings for statsmodels
ii  python-support                                1.0.15                             all          automated rebuilding support for Python modules
ii  python-sympy                                  0.7.1.rc1-3                        all          Computer Algebra System (CAS) in Python
ii  python-tables                                 2.3.1-3                            amd64        hierarchical database for Python based on HDF5
ii  python-tk                                     2.7.3-1                            amd64        Tkinter - Writing Tk applications with Python
ii  python-tornado                                2.3-2                              all          scalable, non-blocking web server and tools
ii  python-tz                                     2012c-1                            all          Python version of the Olson timezone database
ii  python-uno                                    1:3.5.4+dfsg2-0+deb7u2             amd64        Python-UNO bridge
ii  python-utidylib                               0.2-8                              all          Python wrapper for TidyLib
ii  python-webob                                  1.1.1-1.1                          all          Python module providing WSGI request and response objects
ii  python-wnck                                   2.32.0+dfsg-2+b1                   amd64        Python bindings for the WNCK library
ii  python-wxgtk2.8                               2.8.12.1-12                        amd64        wxWidgets Cross-platform C++ GUI toolkit (wxPython binding)
ii  python-wxversion                              2.8.12.1-12                        all          wxWidgets Cross-platform C++ GUI toolkit (wxPython version selector)
ii  python-xapian                                 1.2.12-2                           amd64        Xapian search engine interface for Python
ii  python-xdg                                    0.19-5                             all          Python library to access freedesktop.org standards
ii  python-xlrd                                   0.6.1-2                            all          extract data from MS Excel spreadsheet files
ii  python-xlwt                                   0.7.4+debian1-1                    all          module for writing Microsoft Excel spreadsheet files
ii  python-zeitgeist                              0.9.0.1-1                          all          event logging framework - Python bindings
ii  python-zmq                                    2.2.0-1                            amd64        Python bindings for 0MQ library
ii  python2.6                                     2.6.8-1.1                          amd64        Interactive high-level object-oriented language (version 2.6)
ii  python2.6-minimal                             2.6.8-1.1                          amd64        Minimal subset of the Python language (version 2.6)
ii  python2.7                                     2.7.3-6+deb7u2                     amd64        Interactive high-level object-oriented language (version 2.7)
ii  python2.7-dev                                 2.7.3-6+deb7u2                     amd64        Header files and a static library for Python (v2.7)
ii  python2.7-minimal                             2.7.3-6+deb7u2                     amd64        Minimal subset of the Python language (version 2.7)
Dodane:
Znalazlem czesciowe rozwiazanie problemu:

Kod: Zaznacz cały

apt-get install python/stable
Cofnelo mi ustawienia do pythona 2.7.
Nie wiem tylko, czy to co namajstrowalem nadal jest w systemie jako smieci, pomimo, ze zrobilem autoclean/autoremove.

: 10 czerwca 2014, 14:18
autor: Rafal_F
Powyższe polecenie faktycznie rozwiązało problem instalacji pakietu przez dpkg. Żeby usunąć ten który instalowałeś przez

Kod: Zaznacz cały

make install
powinieneś mieć oryginalny katalog ze źródłami - ten w którym kompilowałeś program i z którego instalowałeś.