Re: [Tutor] Virtual environment question

2018-03-12 Thread Mats Wichmann
you are talking about different sides of isolation. you install into a virtualenv and those pkgs don't go into the system area. that says nothing about using existing bits of the system... On March 12, 2018 6:31:47 PM PDT, Jim wrote: >On 03/12/2018 04:04 AM, eryk sun wrote: >> On Mon, Mar 12, 2

Re: [Tutor] Virtual environment question

2018-03-12 Thread eryk sun
On Tue, Mar 13, 2018 at 1:31 AM, Jim wrote: > On 03/12/2018 04:04 AM, eryk sun wrote: >> >> On Mon, Mar 12, 2018 at 12:44 AM, Jim wrote: >>> >>> home = /usr/bin >>> include-system-site-packages = false >> >> [...] >>> >>> resp = opener.open(request, timeout=self._timeout) >>>File "/usr/l

Re: [Tutor] Virtual environment question

2018-03-12 Thread Jim
On 03/12/2018 04:04 AM, eryk sun wrote: On Mon, Mar 12, 2018 at 12:44 AM, Jim wrote: home = /usr/bin include-system-site-packages = false [...] resp = opener.open(request, timeout=self._timeout) File "/usr/lib/python3.5/urllib/request.py", line 466, in open This is normal. Virtual

Re: [Tutor] prime factorisation

2018-03-12 Thread Bruce Todd Puls
I think You would do much better if You wrote pseudo code first, i.e. write each step out in words, code is much easier to write following pseudo code Are You trying to factor Prime Numbers? Prime Number factored (Prime Number and 1) https://en.wikipedia.org/wiki/Table_of_prime_factors#1_to_100

Re: [Tutor] prime factorisation

2018-03-12 Thread Steven D'Aprano
Hello Bernd, My comments below, interleaved with yours. On Sun, Mar 11, 2018 at 04:23:02PM +0100, Bernd Hewener wrote: > Functions for reading in the number and finding the primes are working > alright (of Course, finding primes up to ½ Number would suffice). Actually you only need to go up to

Re: [Tutor] Virtual environment question

2018-03-12 Thread eryk sun
On Mon, Mar 12, 2018 at 12:44 AM, Jim wrote: > > home = /usr/bin > include-system-site-packages = false [...] > resp = opener.open(request, timeout=self._timeout) > File "/usr/lib/python3.5/urllib/request.py", line 466, in open This is normal. Virtual environments are not isolated from the