tienbm90 / prettytable

Automatically exported from code.google.com/p/prettytable
Other
0 stars 0 forks source link

Windows installation problem #38

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I tried the "hard way" for installing in Windows, but, altough I can do import 
prettytable, I cannot access the inside functions neither cant do from 
prettytable import modules (tried with PrettyTable and from_db_cursor).

I am missing something?

I've just copied the folder inside site-packages, renaming it to prettytable.

Thanks in advance.
Josep

Original issue reported on code.google.com by jmsal...@gmail.com on 1 Oct 2013 at 10:45

GoogleCodeExporter commented 8 years ago
Sorry, I forgot to mention that I'm using Python 3.3.

Original comment by jmsal...@gmail.com on 1 Oct 2013 at 10:47

GoogleCodeExporter commented 8 years ago
Hmm.  It sounds like maybe you've put the entire PrettyTable folder (with 
setup.py, prettytable_tests.py, etc) inside site-packages?  If that's true, 
delete that folder and copy just the prettytable.py file, by itself, into 
site-packages and try again.  That's the way it's supposed to be done - I 
apologise if the installation instructions aren't clear.  Let me know if it 
still doesn't work.

Original comment by luke@maurits.id.au on 1 Oct 2013 at 11:04

GoogleCodeExporter commented 8 years ago
Hi. Finally I've solved the issue installing previously easy_install in windows 
and then running easy_install.exe prettytable.

Just a curiosity, installed in this way, I can see and egg file but not the 
prettytable.py file. Is this compiled or just placed in another folder?

Sorry for the question, but I'm just beginning with Python.

Thanks a lot.

Original comment by jmsal...@gmail.com on 1 Oct 2013 at 11:09

GoogleCodeExporter commented 8 years ago
I am glad you were able to get the library installed.  I'm afraid I actually 
don't know much about how easy_install works with regard to placement of files 
etc.  When I use pip to install prettytable on my linux machine, I end up with 
both an egg directory and the prettytable.py file in my dist-packages.  It's 
possible the Windows case works differently.  If you are able to use the 
library, then the prettytable.py file must have ended up somewhere!

Original comment by luke@maurits.id.au on 7 Oct 2013 at 6:00

GoogleCodeExporter commented 8 years ago
Thanks for your answer. I've been searching prettytable.py with no luck. My 
supposition is that all is contained in the egg file.

But well. At the end. It's working.

Thanks a lot and congratulations for the library!

Original comment by jmsal...@gmail.com on 7 Oct 2013 at 8:13