Re: [Tutor] Total newbie question
On 04/01/17 06:51, MR ZenWiz wrote: > It appears that while python is installed in /usr/bin, idle is in > /usr/local/bin and expects the python interpreter to be also under > /usr/local, which does not seem to be the default. > > I created a symlink 'ln -s /usr/bin/python3.5 > /usr/local/bin/python3.5' and now idle comes up. Did you install the idle-python3.5 package too? That should have created a launcher in your menu system for idle. On Ubuntu (and most Linux systems) you have to install "extra" features like idle as packages. It's well worth browsing the available python packages using synaptic, or whatever manager you prefer. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Total newbie question
On Tue, Jan 3, 2017 at 5:15 PM, Cameron Simpson wrote: > On 03Jan2017 17:07, Peter Otten <__pete...@web.de> wrote: >> >> Cameron Simpson wrote: >>> >>> On 02Jan2017 17:21, MR ZenWiz wrote: I'm trying to install python 4.6 on my Xubuntu 16.04 desktop, [...] INFO: Can't locate Tcl/Tk libs and/or headers >>> >>> You lack the tk development libraries and/or headers. Try (as root): >>> apt-get install tk-dev > > [...] >>> >>> You need a bunch of other devleopment libraries too. [...] >> >> >> A nice shortcut for this is to install the build dependencies of the >> Python >> 3 used by your distribution: >> >> $ sudo apt-get build-dep python3.x >> >> Replace x with the actual minor version present on your system. > > > I Did Not Know This! > > Yes, that sounds far more reliable than my guess-the-names approach. > > Thank you, > If that had worked, I'd be quite pleased, but as I posted earlier, apgt-get claims not to know what to do with that. I tried deleting all the ~/.local/python3* files and also all python files in /etc and /usr, then reinstalled all the (previously) system installed version via synaptic, and python3.5 seems to work as a command, but idle3 does not: admar@marbase:~ $ which idle3 /usr/local/bin/idle3 admar@marbase:~ $ which idle3.5 /usr/local/bin/idle3.5 admar@marbase:~ $ which python3 /usr/bin/python3 admar@marbase:~ $ which python3.5 /usr/bin/python3.5 admar@marbase:~ $ idle3 bash: /usr/local/bin/idle3: /usr/local/bin/python3.5: bad interpreter: No such file or directory admar@marbase:~ $ idle3.5 bash: /usr/local/bin/idle3.5: /usr/local/bin/python3.5: bad interpreter: No such file or directory It appears that while python is installed in /usr/bin, idle is in /usr/local/bin and expects the python interpreter to be also under /usr/local, which does not seem to be the default. I created a symlink 'ln -s /usr/bin/python3.5 /usr/local/bin/python3.5' and now idle comes up. While this works, it is not at all intuitive (and I haven't exercised it to see how robust this is). What would make the idle want something that isn't there without such hackery? Thanks. MR ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Total newbie question
MR ZenWiz wrote: > Forgot to include the list. > > > On Tue, Jan 3, 2017 at 11:37 AM, MR ZenWiz wrote: >> On Tue, Jan 3, 2017 at 8:07 AM, Peter Otten <__pete...@web.de> wrote: >>> Cameron Simpson wrote: >>> On 02Jan2017 17:21, MR ZenWiz wrote: >I'm trying to install python 4.6 on my Xubuntu 16.04 desktop, and I >keep getting scads of errors that culminate with this from make test: > >> : >>> >>> A nice shortcut for this is to install the build dependencies of the >>> Python 3 used by your distribution: >>> >>> $ sudo apt-get build-dep python3.x >>> >>> Replace x with the actual minor version present on your system. >>> >> admar@marbase:~/Downloads $ sudo apt-get build-dev python3.5 >> E: Invalid operation build-dev It has to be build-dep, not build-dev. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Total newbie question
On 03Jan2017 17:07, Peter Otten <__pete...@web.de> wrote: Cameron Simpson wrote: On 02Jan2017 17:21, MR ZenWiz wrote: I'm trying to install python 4.6 on my Xubuntu 16.04 desktop, [...] INFO: Can't locate Tcl/Tk libs and/or headers You lack the tk development libraries and/or headers. Try (as root): apt-get install tk-dev [...] You need a bunch of other devleopment libraries too. [...] A nice shortcut for this is to install the build dependencies of the Python 3 used by your distribution: $ sudo apt-get build-dep python3.x Replace x with the actual minor version present on your system. I Did Not Know This! Yes, that sounds far more reliable than my guess-the-names approach. Thank you, Cameron Simpson ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Total newbie question
Forgot to include the list. On Tue, Jan 3, 2017 at 11:37 AM, MR ZenWiz wrote: > On Tue, Jan 3, 2017 at 8:07 AM, Peter Otten <__pete...@web.de> wrote: >> Cameron Simpson wrote: >> >>> On 02Jan2017 17:21, MR ZenWiz wrote: I'm trying to install python 4.6 on my Xubuntu 16.04 desktop, and I keep getting scads of errors that culminate with this from make test: > : >> >> A nice shortcut for this is to install the build dependencies of the Python >> 3 used by your distribution: >> >> $ sudo apt-get build-dep python3.x >> >> Replace x with the actual minor version present on your system. >> > admar@marbase:~/Downloads $ sudo apt-get build-dev python3.5 > E: Invalid operation build-dev > > I also tried: > > admar@marbase:~/Downloads $ sudo apt-get build-dep python3 > Reading package lists... Done > E: You must put some 'source' URIs in your sources.list > admar@marbase:~/Downloads $ sudo apt-get build-dep python3.5 > Reading package lists... Done > E: You must put some 'source' URIs in your sources.list ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Total newbie question
Cameron Simpson wrote: > On 02Jan2017 17:21, MR ZenWiz wrote: >>I'm trying to install python 4.6 on my Xubuntu 16.04 desktop, and I >>keep getting scads of errors that culminate with this from make test: >> >>running build >>running build_ext >>INFO: Can't locate Tcl/Tk libs and/or headers > > You lack the tk development libraries and/or headers. Try (as root): > > apt-get install tk-dev > >>The necessary bits to build these optional modules were not found: >>_bz2 _curses _curses_panel >>_dbm _gdbm _lzma >>_sqlite3 _ssl _tkinter >>readline zlib > > You need a bunch of other devleopment libraries too. You can use > "apt-cache search" to look for package names, eg "apt-cache search > readline". > > Based on an Ubuntu system also here try installing: libsqlite3-dev, > libbz2-dev, libncursesw5-dev, libgdbm-dev, lzma-dev, libssl-dev, > libreadline-dev, zlib1g-dev. A nice shortcut for this is to install the build dependencies of the Python 3 used by your distribution: $ sudo apt-get build-dep python3.x Replace x with the actual minor version present on your system. > Then do a clean configure again and see what it says. > > Cheers, > Cameron Simpson > ___ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > https://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Total newbie question
On 02Jan2017 17:21, MR ZenWiz wrote: I'm trying to install python 4.6 on my Xubuntu 16.04 desktop, and I keep getting scads of errors that culminate with this from make test: running build running build_ext INFO: Can't locate Tcl/Tk libs and/or headers You lack the tk development libraries and/or headers. Try (as root): apt-get install tk-dev The necessary bits to build these optional modules were not found: _bz2 _curses _curses_panel _dbm _gdbm _lzma _sqlite3 _ssl _tkinter readline zlib You need a bunch of other devleopment libraries too. You can use "apt-cache search" to look for package names, eg "apt-cache search readline". Based on an Ubuntu system also here try installing: libsqlite3-dev, libbz2-dev, libncursesw5-dev, libgdbm-dev, lzma-dev, libssl-dev, libreadline-dev, zlib1g-dev. Then do a clean configure again and see what it says. Cheers, Cameron Simpson ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Total newbie question
On 03/01/17 01:21, MR ZenWiz wrote: > I'm trying to install python 4.6 on my Xubuntu 16.04 desktop, I assume you mean Python 3.6? And my first question is why? Do you have some specific features in 3.6 that you need? Otherwise just go with the latest version in your package manager which will probably be 3.4 or 3.5. Both are stable releases and as a newbie should have more than enough to keep you busy until packages appear for 3.6. Seriously, life is too short to build from scratch unless you really know you need to. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
[Tutor] Total newbie question
I'm trying to install python 4.6 on my Xubuntu 16.04 desktop, and I keep getting scads of errors that culminate with this from make test: running build running build_ext INFO: Can't locate Tcl/Tk libs and/or headers warning: building with the bundled copy of libffi is deprecated on this platform. It will not be distributed with Python 3.7 Python build finished successfully! The necessary bits to build these optional modules were not found: _bz2 _curses _curses_panel _dbm _gdbm _lzma _sqlite3 _ssl _tkinter readline zlib To find the necessary bits, look in setup.py in detect_modules() for the module's name. I'm not sure how to handle this, but the upshot is I can't run idle (or idle3) on my system at all. What's the trick to getting all of python set up so I can use it? I have not found a good guide for how to do this. Thanks. MR ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor