Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #79032 > unrolled thread
| Started by | ryguy7272 <ryanshuell@gmail.com> |
|---|---|
| First post | 2014-10-12 19:55 -0700 |
| Last post | 2014-10-13 04:15 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.python
problem with pytz ryguy7272 <ryanshuell@gmail.com> - 2014-10-12 19:55 -0700
Re: problem with pytz Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-10-13 04:15 +0100
| From | ryguy7272 <ryanshuell@gmail.com> |
|---|---|
| Date | 2014-10-12 19:55 -0700 |
| Subject | problem with pytz |
| Message-ID | <fb1124e3-3083-4854-ad47-c81257c4e546@googlegroups.com> |
I just tried running the code from here.
http://www.thealgoengineer.com/2014/download_sp500_data/
I got this error.
Traceback (most recent call last):
File "C:/Python27/stock_data.py", line 4, in <module>
import pytz
ImportError: No module named pytz
So, I got here and download the files.
https://pypi.python.org/pypi/pytz/#downloads
I run this:
python setup.py install
I get this error.
python: can't open file 'setup.py': [Errno 2] No such file or directory
I tried this:
easy_install --upgrade pytz
Now, that seems like it downloaded and installed. So, I re-run the program, and I get the same error I had initially.
Traceback (most recent call last):
File "C:/Python27/stock_data.py", line 4, in <module>
import pytz
ImportError: No module named pytz
I don't get it. I go to the path 'C:\Python27\pytz' and the folder is right there! It's right there! It's a little frustrating because all my problems seem to be exactly the same, which is running scripts that should run easily...bu nothing actually runs. What else do I need to do to make this thing work?
[toc] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2014-10-13 04:15 +0100 |
| Message-ID | <mailman.14810.1413170153.18130.python-list@python.org> |
| In reply to | #79032 |
On 13/10/2014 03:55, ryguy7272 wrote: > I just tried running the code from here. > http://www.thealgoengineer.com/2014/download_sp500_data/ > > I got this error. > Traceback (most recent call last): > File "C:/Python27/stock_data.py", line 4, in <module> Please don't put your code here, what happens when you upgrade your Python version? > import pytz > ImportError: No module named pytz > > So, I got here and download the files. > https://pypi.python.org/pypi/pytz/#downloads > > I run this: > python setup.py install > > I get this error. > python: can't open file 'setup.py': [Errno 2] No such file or directory > > I tried this: > easy_install --upgrade pytz > > > Now, that seems like it downloaded and installed. So, I re-run the program, and I get the same error I had initially. > Traceback (most recent call last): > File "C:/Python27/stock_data.py", line 4, in <module> > import pytz > ImportError: No module named pytz > > > I don't get it. I go to the path 'C:\Python27\pytz' and the folder is right there! It's right there! It's a little frustrating because all my problems seem to be exactly the same, which is running scripts that should run easily...bu nothing actually runs. What else do I need to do to make this thing work? > It should be in c:\python27\lib\site-packages. It's also far easier to use pip to install code. It's already available as an option with 3.4 and I think will be automatically included with 3.5 Finally it looks as if you're using googlegroups. If that is the case would you please read and action this https://wiki.python.org/moin/GoogleGroupsPython to prevent us seeing double line spacing and single line paragraphs. Better yet access this list via https://mail.python.org/mailman/listinfo/python-list, thanks. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web