Re: [Tutor] Need help in learning Python

2018-08-13 Thread Wallis Short
I am also from a Linux background and I second exactly what James and David
said.

To learn Ubuntu, I would recommend installing Windows Subsystem for Linux
onto your existing Windows 10 setup  and then get the Ubuntu (or SUSE and
Debian) from the Microsoft store and install. It does have a few
limitations (especially on the GUI) but again which proper Linux Sysadmin
uses the GUI :)
Its quite simple to install as you add it via the "Windows Features" and
click on "Windows Subsystem for Linux"
This is an easy way to have Linux at your beck and call just by invoking
the OS by typing a command into the run command cmd

Unless of course you don't mind dual booting your laptop or have another
laptop/PC close by :)

Cheers

*Wallis Short*   Senior Network Engineer



Metro Fibre Networx (Pty) Ltd
www.metrofibre.co.za

298 Witch-Hazel Ave, Highveld, Centurion, Gauteng, 0157 South Africa



On 12 August 2018 at 18:51, Mats Wichmann  wrote:

>
> > Start with checking that pip is there (or installing it if not)
> > Then do PyGae
> > Then do Matplotlib
>
> For this, please note that the pip "command" is not in the same
> directory on Windows as the python it is associated with.  If you went
> through the steps to have Python in your PATH, and that works, then add
> another entry that is just the same but appends the \Scripts comoponent;
> OR where your instructions tell you to "pip install foo" at a command
> prompt do instead "python -m pip install foo"  I believe the latter is
> now the recommended way anyway, because it ensures the pip matches the
> python in case you have more than one copy installed on your system.
>
>
> For your other questions, you could instead of making  dual-boot setup,
> do some initial experiments with running a Linux virtual environment.
>
> Here's one possibility which will give you a ton of Python stuff already
> set up:
>
> https://labs.fedoraproject.org/python-classroom/download/index.html
>
> ___
> 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] Need help in learning Python

2018-08-12 Thread Carlos Monge
Thank you all. I will start in small steps. First Pygame and Ubuntu. I will
add any errors I get.

On Sun, Aug 12, 2018 at 11:51 AM, Mats Wichmann  wrote:

>
> > Start with checking that pip is there (or installing it if not)
> > Then do PyGae
> > Then do Matplotlib
>
> For this, please note that the pip "command" is not in the same
> directory on Windows as the python it is associated with.  If you went
> through the steps to have Python in your PATH, and that works, then add
> another entry that is just the same but appends the \Scripts comoponent;
> OR where your instructions tell you to "pip install foo" at a command
> prompt do instead "python -m pip install foo"  I believe the latter is
> now the recommended way anyway, because it ensures the pip matches the
> python in case you have more than one copy installed on your system.
>
>
> For your other questions, you could instead of making  dual-boot setup,
> do some initial experiments with running a Linux virtual environment.
>
> Here's one possibility which will give you a ton of Python stuff already
> set up:
>
> https://labs.fedoraproject.org/python-classroom/download/index.html
>
> ___
> 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] Need help in learning Python

2018-08-12 Thread Mats Wichmann


> Start with checking that pip is there (or installing it if not)
> Then do PyGae
> Then do Matplotlib

For this, please note that the pip "command" is not in the same
directory on Windows as the python it is associated with.  If you went
through the steps to have Python in your PATH, and that works, then add
another entry that is just the same but appends the \Scripts comoponent;
OR where your instructions tell you to "pip install foo" at a command
prompt do instead "python -m pip install foo"  I believe the latter is
now the recommended way anyway, because it ensures the pip matches the
python in case you have more than one copy installed on your system.


For your other questions, you could instead of making  dual-boot setup,
do some initial experiments with running a Linux virtual environment.

Here's one possibility which will give you a ton of Python stuff already
set up:

https://labs.fedoraproject.org/python-classroom/download/index.html

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Need help in learning Python

2018-08-12 Thread David Rock

> On Aug 11, 2018, at 20:34, James Gledhill via Tutor  wrote:
> 
> I know this is a python focused mail group, but you asked about Linux so I'll 
> answer. :-)
> I would strongly recommend that you skip Kali Linux for the next little 
> while. Every tool available on Kali can be obtained on Ubuntu. Kali is not 
> beginner friendly, and while the community is great, honestly it's not the 
> most beginner friendly either. If you don't feel comfortable installing the 
> tools you need for your course on Ubuntu, Kali is going to give you a 
> splitting headache. Stick with Ubuntu, learn python, install the tools as you 
> need them and you will learn so much more.
> 

I will second that, and add if you really NEED Kali, it’s possible to run it as 
a Live image (eg, off a USB stick); you don’t need to install it to use it.
https://docs.kali.org/downloading/kali-linux-live-usb-install

Doing it this way, you get better flexibility with having Kali without 
[potentially] destroying what’s currently on your system through trying to set 
up a multi-boot environment.

Bite of smaller chunks instead of trying to learn everything at once and you 
will be a lot happier.


— 
David Rock
da...@graniteweb.com




___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Need help in learning Python

2018-08-12 Thread James Gledhill via Tutor
I know this is a python focused mail group, but you asked about Linux so I'll 
answer. :-)
I would strongly recommend that you skip Kali Linux for the next little while. 
Every tool available on Kali can be obtained on Ubuntu. Kali is not beginner 
friendly, and while the community is great, honestly it's not the most beginner 
friendly either. If you don't feel comfortable installing the tools you need 
for your course on Ubuntu, Kali is going to give you a splitting headache. 
Stick with Ubuntu, learn python, install the tools as you need them and you 
will learn so much more.

Trust me, it took me years to learn that lesson. :-|

 Original Message 
On Aug 11, 2018, 12:48 PM, Carlos Monge wrote:

> I bought two books to help me learn Python. "Python Crash Course" and
> "Python for Informatics". I have done all of the basic lessons in "Python
> Crash Course", but it has two additional sections to help instill what I
> have learned To do those sections I need to install Pygame and make sure I
> have 'pip' as well as Matplotlib. I have followed the directions in the
> book but can't get anything to download so I can use it.
> For the "Python for Informatics" book I need to have files from the
> internet load where I have Python so I can manipulate them, but I can't
> seem to get that to work.
>
> Also, I would like to install Ubuntu on a second drive with Python,
> Idle, C language and its compiler so I can also learn Linux. On the Linux
> drive, I need to install Kali Linux for a class on Cyber Security.
> I know this is a lot to ask, but I don't need it all at once. I would
> appreciate help from someone with experience in downloading all of these
> things onto a windows computer with a second drive for Ubuntu and all of
> the other software.
> Any help is appreciated, and if I find someone with the needed
> expertise, I will happily subscribe on the Python-Tutor Info Page/
> ___
> 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] Need help in learning Python

2018-08-11 Thread Alan Gauld via Tutor
On 11/08/18 18:48, Carlos Monge wrote:

> have learned To do those sections I need to install Pygame and make sure I
> have 'pip' as well as Matplotlib. 

If you are using a recent Python (v3.4+) then pip should
already be installed. PyGame comes with a Windows installer
that should set everything up for you.

Matplotlib I don;t know about.

I suggest you work on each one individually.
Let us know what you try and what results you get.
Tell us your OS and Python versions and cut n paste
any error messages into your mails.

Don;t attempt a second install until the first one succeeds.

Start with checking that pip is there (or installing it if not)
Then do PyGae
Then do Matplotlib


>  Also, I would like to install Ubuntu on a second drive with Python,
> Idle, C language and its compiler so I can also learn Linux. On the Linux
> drive, I need to install Kali Linux for a class on Cyber Security.

Do you want Ubuntu or Kali - they are separate distros and
you can't have both at the same time. Since you need Kali
for your course I'd suggest going straight to it.

As for Python packages on Linux you should find that your
distribution has some kind of package manager or software
manager for installing new apps. You should find almost
all the Python libraries and tools are available there
and you can install them that way. It tends to be easier
than using pip etc.

>  Any help is appreciated, and if I find someone with the needed
> expertise, I will happily subscribe on the Python-Tutor Info Page/

That's not how it works. The whole group acts as a virtual
tutor. You post questions here and whoever is available/qualified
jumps in with the answer. That often means you get multiple
(possible different) answers to your question, but the best
will usually become apparent quite quickly.


-- 
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] Need help in learning Python

2018-08-11 Thread Carlos Monge
 I bought two books to help me learn Python. "Python Crash Course" and
"Python for Informatics". I have done all of the basic lessons in "Python
Crash Course", but it has two additional sections to help instill what I
have learned To do those sections I need to install Pygame and make sure I
have 'pip' as well as Matplotlib. I have followed the directions in the
book but can't get anything to download so I can use it.
 For the "Python for Informatics" book I need to have files from the
internet load where I have Python so I can manipulate them, but I can't
seem to get that to work.

 Also, I would like to install Ubuntu on a second drive with Python,
Idle, C language and its compiler so I can also learn Linux. On the Linux
drive, I need to install Kali Linux for a class on Cyber Security.
 I know this is a lot to ask, but I don't need it all at once. I would
appreciate help from someone with experience in downloading all of these
things onto a windows computer with a second drive for Ubuntu and all of
the other software.
 Any help is appreciated, and if I find someone with the needed
expertise, I will happily subscribe on the Python-Tutor Info Page/
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor