[Tutor] Running programs that import 3rd party packages installed using pip.

2018-10-04 Thread Roger B. Atkins
System: Windows 10, Anaconda, Python 3, Spyder3 Problem: Running programs that import requests, pyperclip, bs4 and/or other modules from 3rd party packages works fine within Spyder IDE, but not from command line, or Win/R. The error message indicates no such module. Therefore, my programs crash a

[Tutor] coding problem

2018-10-04 Thread ramanpreet baidwan
Can anyone tell me how to code to display permutations in a table for all values of z=x^2+y by getting input from user for range of x and y? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/m

Re: [Tutor] Running programs that import 3rd party packages installed using pip.

2018-10-04 Thread Alan Gauld via Tutor
On 04/10/18 04:20, Roger B. Atkins wrote: > System: Windows 10, Anaconda, Python 3, Spyder3 > > I changed my system path variable to include: > C:\Users\rba21\Anaconda3\lib\site-packages# Result: same error message When you say the "system path" do you mean the PYTHONPATH variable? It's PYT

Re: [Tutor] coding problem

2018-10-04 Thread Mark Lawrence
On 04/10/18 05:22, ramanpreet baidwan wrote: Can anyone tell me how to code to display permutations in a table for all values of z=x^2+y by getting input from user for range of x and y? Sorry but no as we do not do homework. -- My fellow Pythonistas, ask not what our language can do for you,

Re: [Tutor] coding problem

2018-10-04 Thread Alan Gauld via Tutor
On 04/10/18 05:22, ramanpreet baidwan wrote: > Can anyone tell me how to code to display permutations in a table > for all values of z=x^2+y by getting input from user for range of x and y? There are several problems with your question. First it sounds suspiciously like homework and we won't do t

Re: [Tutor] coding problem

2018-10-04 Thread Steven D'Aprano
On Wed, Oct 03, 2018 at 11:22:45PM -0500, ramanpreet baidwan wrote: > Can anyone tell me how to code to display permutations in a table for > all values of z=x^2+y by getting input from user for range of x and y? Yes. Use a text editor to write your code in a text file. When you save the file,

Re: [Tutor] Running programs that import 3rd party packages installed using pip.

2018-10-04 Thread Mats Wichmann
On 10/03/2018 09:20 PM, Roger B. Atkins wrote: > System: Windows 10, Anaconda, Python 3, Spyder3 > > Problem: Running programs that import requests, pyperclip, bs4 and/or > other modules from 3rd party packages works fine within Spyder IDE, > but not from command line, or Win/R. The error message

Re: [Tutor] Running programs that import 3rd party packages installed using pip.

2018-10-04 Thread Roger B. Atkins
Thanks! That helps. I'll have to go back to the drawing board, but you've put me on the right "path". On Thu, Oct 4, 2018 at 12:47 AM Alan Gauld via Tutor wrote: > > On 04/10/18 04:20, Roger B. Atkins wrote: > > System: Windows 10, Anaconda, Python 3, Spyder3 > > > > > I changed my system path va

Re: [Tutor] Running programs that import 3rd party packages installed using pip.

2018-10-04 Thread Roger B. Atkins
That's very helpful, thanks. After reading the Tutor information last night, I wrote a little program I named sysinfo. The code run line by line in a Spyder console yields: In [3]: sys.path Out[3]: ['', 'C:\\Users\\rba21\\Anaconda3\\python36.zip', 'C:\\Users\\rba21\\Anaconda3\\DLLs', 'C:\\Users

Re: [Tutor] Running programs that import 3rd party packages installed using pip.

2018-10-04 Thread Alan Gauld via Tutor
On 04/10/18 15:15, Roger B. Atkins wrote: > That's very helpful, thanks. After reading the Tutor information last > night, I wrote a little program I named sysinfo. The code run line by > line in a Spyder console yields: > > In [3]: sys.path > Out[3]: > ['', > 'C:\\Users\\rba21\\Anaconda3\\python

[Tutor] Numpy documentation

2018-10-04 Thread Roger Lea Scherer
I truly don't think I'm this stupid, but I can't even understand the fourth paragraph of the numpy documentation. https://docs.scipy.org/doc/numpy/user/quickstart.html says: In the example pictured below, the array has 2 axes. The first axis has a length of 2, the second axis has a length of 3. [

Re: [Tutor] Numpy documentation

2018-10-04 Thread Alan Gauld via Tutor
On 04/10/18 20:02, Roger Lea Scherer wrote: > In the example pictured below, the array has 2 axes. The first axis has a > length of 2, the second axis has a length of 3. > [[ 1., 0., 0.], > [ 0., 1., 2.]] > > (I think) I understand the 2 axes. [1,0,0] (I'm lazy and don't want to type > the peri

Re: [Tutor] Numpy documentation

2018-10-04 Thread Steven D'Aprano
Hi Roger, My comments below, below yours. On Thu, Oct 04, 2018 at 12:02:01PM -0700, Roger Lea Scherer wrote: [...] > In the example pictured below, the array has 2 axes. The first axis has a > length of 2, the second axis has a length of 3. > [[ 1., 0., 0.], > [ 0., 1., 2.]] > > (I think) I u