wting / python-graph

Automatically exported from code.google.com/p/python-graph
Other
5 stars 4 forks source link

Absolute beginner : How to run pygraph on windows #74

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Trying to import pygraph

>>> import pygraph

What is the expected output? What do you see instead?

I see:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named pygraph
>>>

What version of the product are you using? On what operating system?

Python '2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)]'
on winXP

Please provide any additional information below.

I downloaded and unpacked the .zip file, but don't know where to put it, so
I unzipped it to 
C:\Python26\Lib\site-packages\python-graph-1.7.0
parallel to my other packages like numpy.

Original issue reported on code.google.com by MartinHv...@gmail.com on 25 Apr 2010 at 9:44

GoogleCodeExporter commented 9 years ago
How did you install python-graph? If you used setuptools / distribute with the 
"-m" 
option you need to "require" the module before you import it. Distribute allows 
you to 
have multiple versions of any given library installed on your computer but it 
adds an 
extra complication by forcing you to select which version you actually want 
before you 
can import.

Original comment by salimfadhley@gmail.com on 25 Apr 2010 at 10:31

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Python has some excellent documentation that will give you a thorough 
understanding how to install 
new packages http://docs.python.org/install/ 

Tips:
- download lib
- extract 
- cd into python-graph folder 
- run python setup.py install with admin privileges
- run python -c "import pygraph" to check if everything is ok

I'm marking this issue as invalid for now. 

Regards, Tomaž

Original comment by tomaz.ko...@gmail.com on 25 Apr 2010 at 9:55

GoogleCodeExporter commented 9 years ago
Alternatively, you can use Distribute to install python-graph. We have 
instructions
here: http://code.google.com/p/python-graph/wiki/Installation

Original comment by pmatiello on 25 Apr 2010 at 10:07