pingswept / pysolar

Pysolar is a collection of Python libraries for simulating the irradiation of any point on earth by the sun. It includes code for extremely precise ephemeris calculations.
http://pysolar.org
GNU General Public License v3.0
376 stars 125 forks source link

PATH requirements for use in Windows #82

Closed skiddaw closed 6 years ago

skiddaw commented 6 years ago

I'm trying to get pysolar to work on a Win7 laptop but am having no luck 'finding' e.g. get_altitude. Might a "Windows" heading be added to the manual with a short description of what needs appending to PATH or PYTHONPATH etc. i.e. what file is in the folder I need to direct PATH to?

efiring commented 6 years ago

There should be no need to add anything to PYTHONPATH, on Windows or on any other platform. (PATH is irrelevant here.) When the package is installed, it goes in a standard location that is known to the python version used to install it. Therefore the possible problems are (1) if you have more than one python version, you might be trying to import with one version when the installation was another version, or (2) there is confusion as to the name of the package and the names of the modules and functions within it. I think (2) is most likely, because there have been big changes in naming from 0.6 to 0.7 and then to 0.8-RC1.

pingswept commented 6 years ago

Not an issue with the Pysolar library itself. Closing.