Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #79275 > unrolled thread
| Started by | ryguy7272 <ryanshuell@gmail.com> |
|---|---|
| First post | 2014-10-18 12:54 -0700 |
| Last post | 2014-10-19 14:10 +1100 |
| Articles | 11 — 7 participants |
Back to article view | Back to comp.lang.python
Quick Question About Setting Up Pytz ryguy7272 <ryanshuell@gmail.com> - 2014-10-18 12:54 -0700
Re: Quick Question About Setting Up Pytz Joel Goldstick <joel.goldstick@gmail.com> - 2014-10-18 16:01 -0400
Re: Quick Question About Setting Up Pytz Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-10-18 21:20 +0100
Re: Quick Question About Setting Up Pytz ryguy7272 <ryanshuell@gmail.com> - 2014-10-18 19:44 -0700
Re: Quick Question About Setting Up Pytz Chris Angelico <rosuav@gmail.com> - 2014-10-19 13:49 +1100
Re: Quick Question About Setting Up Pytz Ben Finney <ben+python@benfinney.id.au> - 2014-10-19 13:50 +1100
Re: Quick Question About Setting Up Pytz Ben Finney <ben+python@benfinney.id.au> - 2014-10-19 13:54 +1100
Re: Quick Question About Setting Up Pytz Rustom Mody <rustompmody@gmail.com> - 2014-10-18 20:16 -0700
Re: Quick Question About Setting Up Pytz Ryan Shuell <ryanshuell@gmail.com> - 2014-10-19 16:18 -0400
Re: Quick Question About Setting Up Pytz Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-10-20 09:19 +0100
Re: Quick Question About Setting Up Pytz Chris Angelico <rosuav@gmail.com> - 2014-10-19 14:10 +1100
| From | ryguy7272 <ryanshuell@gmail.com> |
|---|---|
| Date | 2014-10-18 12:54 -0700 |
| Subject | Quick Question About Setting Up Pytz |
| Message-ID | <afacd3f6-f46e-419b-a765-5d836d8b5f1d@googlegroups.com> |
I downloaded PYTZ and put it here. C:\Python27\pytz Now, in the cmd window, I typed this: C:\Python27\pytz\setup.py A text file opens and nothing else happens. I thought it was supposed to install the PYTZ library. What am I doing wrong?
[toc] | [next] | [standalone]
| From | Joel Goldstick <joel.goldstick@gmail.com> |
|---|---|
| Date | 2014-10-18 16:01 -0400 |
| Message-ID | <mailman.14972.1413662487.18130.python-list@python.org> |
| In reply to | #79275 |
On Sat, Oct 18, 2014 at 3:54 PM, ryguy7272 <ryanshuell@gmail.com> wrote: > I downloaded PYTZ and put it here. > C:\Python27\pytz > > Now, in the cmd window, I typed this: > C:\Python27\pytz\setup.py > > A text file opens and nothing else happens. I thought it was supposed to install the PYTZ library. > > What am I doing wrong? > -- > https://mail.python.org/mailman/listinfo/python-list have you tried: python c:\Python27/pytz/setup.py -- Joel Goldstick http://joelgoldstick.com
[toc] | [prev] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2014-10-18 21:20 +0100 |
| Message-ID | <mailman.14973.1413663666.18130.python-list@python.org> |
| In reply to | #79275 |
On 18/10/2014 20:54, ryguy7272 wrote: > I downloaded PYTZ and put it here. > C:\Python27\pytz > > Now, in the cmd window, I typed this: > C:\Python27\pytz\setup.py > > A text file opens and nothing else happens. I thought it was supposed to install the PYTZ library. > > What am I doing wrong? > You will end up confusing yourself very quickly if you insist on placing files in c:\Python27. Please put them anywhere except that spot, say in downloads or on the desktop. Let's assume your desktop is here c:\Users\ryguy7272\Desktop. Open a cmd window then cd c:\Users\ryguy7272\Desktop setup.py install should work if and only if you have the file types and file associations correctly set, please see https://docs.python.org/2/using/windows.html#executing-scripts Better still take the hard work out of it by getting pip by following the instructions here http://pip.readthedocs.org/en/latest/installing.html -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence
[toc] | [prev] | [next] | [standalone]
| From | ryguy7272 <ryanshuell@gmail.com> |
|---|---|
| Date | 2014-10-18 19:44 -0700 |
| Message-ID | <aa08bad3-18c1-43e8-8673-ac8ce7fc4e7e@googlegroups.com> |
| In reply to | #79275 |
On Saturday, October 18, 2014 3:55:02 PM UTC-4, ryguy7272 wrote: > I downloaded PYTZ and put it here. > > C:\Python27\pytz > > > > Now, in the cmd window, I typed this: > > C:\Python27\pytz\setup.py > > > > A text file opens and nothing else happens. I thought it was supposed to install the PYTZ library. > > > > What am I doing wrong? Thanks Mark. That makes sense. I moved the folder to the desktop and I just tried that: C:\Users\Ryan\Desktop\pytz>setup.py install So, when I run it, the setup.py text file opens. Nothing runs; nothing installs. This makes no sense whatsoever. If I tell a program to install something, it should install something. It should not pop open a text file. I'll probably give it until the end of the year, and start learning Chinese. There's other things I want to do with my time. I know 10 programming languages. I thought it would be fun to learn Python, but after 2 months, I still can't run a single line of code. This language makes no sense whatsoever, and it never does anything that you tell it to do.
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2014-10-19 13:49 +1100 |
| Message-ID | <mailman.14979.1413686943.18130.python-list@python.org> |
| In reply to | #79285 |
On Sun, Oct 19, 2014 at 1:44 PM, ryguy7272 <ryanshuell@gmail.com> wrote: > I'll probably give it until the end of the year, and start learning Chinese. There's other things I want to do with my time. I know 10 programming languages. I thought it would be fun to learn Python, but after 2 months, I still can't run a single line of code. This language makes no sense whatsoever, and it never does anything that you tell it to do. > Try learning Python itself, rather than playing around with extension packages like pytz. You're having trouble installing add-ons - that's like saying "Computers are total rubbish, I bought this fancy new ISA card and I can't make it work!". Start with what you have, and worry about the extra complexities later. ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Ben Finney <ben+python@benfinney.id.au> |
|---|---|
| Date | 2014-10-19 13:50 +1100 |
| Message-ID | <mailman.14980.1413687030.18130.python-list@python.org> |
| In reply to | #79285 |
ryguy7272 <ryanshuell@gmail.com> writes:
> So, when I run it, the setup.py text file opens. Nothing runs; nothing
> installs.
You have somehow (either manually, or by answering a question to some
program) associated the ‘.py’ suffix with “Open this file in my text
editor”.
That's fine, but it means that if you don't want to edit the file but
instead want to execute it, you need to *explicitly* start Python:
python /whatever/path/to/setup.py install
> This makes no sense whatsoever.
This is an issue with your operating system, so I would hope you can
learn more about that to distinguish what is causing your frustration
:-)
--
\ “I got an answering machine for my phone. Now when someone |
`\ calls me up and I'm not home, they get a recording of a busy |
_o__) signal.” —Steven Wright |
Ben Finney
[toc] | [prev] | [next] | [standalone]
| From | Ben Finney <ben+python@benfinney.id.au> |
|---|---|
| Date | 2014-10-19 13:54 +1100 |
| Message-ID | <mailman.14981.1413687307.18130.python-list@python.org> |
| In reply to | #79285 |
Chris Angelico <rosuav@gmail.com> writes: > Try learning Python itself, rather than playing around with extension > packages like pytz. To be fair, “You need to install ‘pytz’ to work correctly with date and time values” is correct advice. If the OP doesn't install it early, then works with timestamps, problems are inevitable — at which point “oh, you needed to do that first” will be inevitable. It's lose–lose. It's a sad fact that MS Windows has completely useless timezone support, and this “install a third-party package” hurdle is a cost that is paid by all people trying to set up Python on MS Windows. -- \ “Nothing is more sacred than the facts.” —Sam Harris, _The End | `\ of Faith_, 2004 | _o__) | Ben Finney
[toc] | [prev] | [next] | [standalone]
| From | Rustom Mody <rustompmody@gmail.com> |
|---|---|
| Date | 2014-10-18 20:16 -0700 |
| Message-ID | <1d9290de-e6a0-4591-9163-eab19771a68c@googlegroups.com> |
| In reply to | #79288 |
On Sunday, October 19, 2014 8:25:53 AM UTC+5:30, Ben Finney wrote:
> Chris Angelico writes:
> > Try learning Python itself, rather than playing around with extension
> > packages like pytz.
> To be fair, "You need to install 'pytz' to work correctly with date and
> time values" is correct advice. If the OP doesn't install it early, then
> works with timestamps, problems are inevitable -- at which point "oh, you
> needed to do that first" will be inevitable. It's lose-lose.
Yes
> It's a sad fact that MS Windows has completely useless timezone support,
> and this "install a third-party package" hurdle is a cost that is paid
> by all people trying to set up Python on MS Windows.
About MS-lacunae Ive nothing to say
[Just head over to a debian list like users or vote or.. and witness the
riot going on over systemd... Hard to believe all's right in Linux-land]
As for this OP and similar problems -- yes python is in a peculiar position.
Because of 'batteries included' beginners can do powerful stuff.
However sometimes the batteries need to be supplemented.
And then there's a problem -- its not clear whether
- the beginner is having classic noob problems.
Expert just needs to tweak a command a bit and he's sailing
- the beginner is in somewhat uncharted (research-needed) land -- charting
the route between mutually complementary AND competing setup tools
I believe python must be some sort of record setter in this that
o pip is a replacement for easy_install
o you install pip with easy_install
!!
[toc] | [prev] | [next] | [standalone]
| From | Ryan Shuell <ryanshuell@gmail.com> |
|---|---|
| Date | 2014-10-19 16:18 -0400 |
| Message-ID | <mailman.14992.1413789753.18130.python-list@python.org> |
| In reply to | #79290 |
[Multipart message — attachments visible in raw view] — view raw
Ok, thanks everyone. I just need to spend more time with this stuff. It's definitely slow going. On Sat, Oct 18, 2014 at 11:16 PM, Rustom Mody <rustompmody@gmail.com> wrote: > On Sunday, October 19, 2014 8:25:53 AM UTC+5:30, Ben Finney wrote: > > Chris Angelico writes: > > > > Try learning Python itself, rather than playing around with extension > > > packages like pytz. > > > To be fair, "You need to install 'pytz' to work correctly with date and > > time values" is correct advice. If the OP doesn't install it early, then > > works with timestamps, problems are inevitable -- at which point "oh, you > > needed to do that first" will be inevitable. It's lose-lose. > > Yes > > > It's a sad fact that MS Windows has completely useless timezone support, > > and this "install a third-party package" hurdle is a cost that is paid > > by all people trying to set up Python on MS Windows. > > About MS-lacunae Ive nothing to say > > [Just head over to a debian list like users or vote or.. and witness the > riot going on over systemd... Hard to believe all's right in Linux-land] > > As for this OP and similar problems -- yes python is in a peculiar > position. > Because of 'batteries included' beginners can do powerful stuff. > However sometimes the batteries need to be supplemented. > And then there's a problem -- its not clear whether > - the beginner is having classic noob problems. > Expert just needs to tweak a command a bit and he's sailing > - the beginner is in somewhat uncharted (research-needed) land -- charting > the route between mutually complementary AND competing setup tools > > I believe python must be some sort of record setter in this that > o pip is a replacement for easy_install > o you install pip with easy_install > > !! > -- > https://mail.python.org/mailman/listinfo/python-list >
[toc] | [prev] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2014-10-20 09:19 +0100 |
| Message-ID | <mailman.14997.1413793205.18130.python-list@python.org> |
| In reply to | #79290 |
On 19/10/2014 21:18, Ryan Shuell wrote: > Ok, thanks everyone. I just need to spend more time with this stuff. > It's definitely slow going. > Please don't top post on this list, thank you. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2014-10-19 14:10 +1100 |
| Message-ID | <mailman.14982.1413688263.18130.python-list@python.org> |
| In reply to | #79285 |
On Sun, Oct 19, 2014 at 1:54 PM, Ben Finney <ben+python@benfinney.id.au> wrote: > Chris Angelico <rosuav@gmail.com> writes: > >> Try learning Python itself, rather than playing around with extension >> packages like pytz. > > To be fair, “You need to install ‘pytz’ to work correctly with date and > time values” is correct advice. If the OP doesn't install it early, then > works with timestamps, problems are inevitable — at which point “oh, you > needed to do that first” will be inevitable. It's lose–lose. > > It's a sad fact that MS Windows has completely useless timezone support, > and this “install a third-party package” hurdle is a cost that is paid > by all people trying to set up Python on MS Windows. That's a rough business to be in... I mean... that's unfortunate. However, I'd still advise anyone to learn the language itself first, even if that means a rule like "avoid working with international or historical time". There are plenty of other things Python can do, even just with a basic Windows installation. ChrisA
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web