Posts: 382
Threads: 94
Joined: Mar 2017
Hi all ! I just begin. Please:1. what compiler shall I use ? I use O.S. ubuntu Linux 16.04 2. Pthon language is included in Code::Blocks ?? 3. Give me please the link for an E-boolk speaking of Python language.. Thanks in advance.
Posts: 1,150
Threads: 42
Joined: Sep 2016
Hello!
You don't need a compiler for Python, it is dynamically compiled on runtime. All you need is a Python interpreter, and as far as I know it comes bundled with Ubuntu distro (try with entering "python" in terminal). If you are used to IDEs you could use one, but it is not necessary. Especially in beginning you can do just fine without it.
About tutorials, our forum has a nice selection of tutorials (some have [Basic] tag): https://python-forum.io/Forum-Tutorials
And about online tutorials,... there are so many I can't even pick out one (or few). Perhaps if you tell your coding background and intentions, I (we) can help better.
Posts: 382
Threads: 94
Joined: Mar 2017
Thank you. It's a long time ago, I constructed some 12 shells, with my vim; I used #!/bin/bash but now I forgoyt almost all about it. Give me please a file printing : Hello World ! I will you use my vim for that. Thanks
Posts: 12,038
Threads: 487
Joined: Sep 2016
I (personal preference) would not do much work without an IDE.
It adds so much (at your fingertips, a lot of this can be done without an ide, but not with a click) - Auto completion of code (I usually turn it off as it annoys me more than helps)
- Instant and automatic version control
- Usually very good debuggers with variable watches, etc.
- Code reformatting (that actually works in the good IDE's)
- Code inspection (like lint). Which I always use before releasing software.
- Packaging help (this has been one of my weaknesses, and something I have to start doing)
- more
My favorite IDE is PyCharm (community edition available)
Atom is the favorite of others,
One I had bad luck with was eclipse. That was some time ago, and it may be ok
It's good to try several in the beginning, and then stick with one you like.
Posts: 687
Threads: 37
Joined: Sep 2016
Mar-27-2017, 12:35 PM
(This post was last modified: Mar-27-2017, 02:58 PM by Ofnuts.)
If you use Linux you already have Python preinstalled, many system utilities use it. See the python command/ However, this is python v2 (2.7.x) and if you want to execute python v3 code use the python v3 commands ( python3 ) (install the python3 package if it is missing).
For basic programming, you don't need an IDE, you just need a decent text editor: vim, geanie, kate, to name a few.
Unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.
Your one-stop place for all your GIMP needs: gimp-forum.net
Posts: 2,953
Threads: 48
Joined: Sep 2016
Python is already installed in Ubuntu 16.04. Open a terminal and type python. You should see something like this:
Output: victor@jerry:~$ python
Python 2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
This is the Python interpreter and you can see the Python's version. It can be 3.5.2 if it's configured as the default. You can run 2.7.12 with python2 command if that is the case.
Posts: 382
Threads: 94
Joined: Mar 2017
sylvain@sylvain-HP-Mini-110-1100:~$ python
Python 2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
That is what I have. But how do I work with it ?
I also uploaded pyCharm , it is in my "uploads" but impossible to install it. Of course I think it is impossible to make pyCharm work , solong it is in "uploads"
Posts: 2,953
Threads: 48
Joined: Sep 2016
Mar-27-2017, 04:47 PM
(This post was last modified: Mar-27-2017, 04:48 PM by wavic.)
What do you mean 'uploads'? Download it. PyCharm Community edition. It is a compressed tar archive. Right click on it and extract it. Move to 'pycharm-community-2017.1/bin' directory and open a terminal there. Run bash pycharm.sh . The installation process should start
Posts: 382
Threads: 94
Joined: Mar 2017
I have to buy that. Of course I am ready to buy. PyCharm License Activation asks for my mail adress I give them: aubertintylvain@yahoo.fr, But what password shall I put ? I think it is not the one for yahoo. Thanks for your help
Posts: 2,953
Threads: 48
Joined: Sep 2016
Can't tell you that. I have PyCharm Comunity installed but do not use it. Almost.
Look for instructions on the website. See this: https://www.jetbrains.com/help/pycharm/2...guide.html
|