[英]What does PATH need to point to for pysolar on Win7. i.e. to use “from pysolar.solar …”
I have found several examples on the web of using pysolar to calculate the suns altitude and other discussions of setting up the Win7 PATH however nothing has explained what PATH should be actually directed at. 我在网上找到了一些使用pysolar来计算太阳高度的示例,以及有关设置Win7 PATH的其他讨论,但是没有任何解释说明PATH应该真正针对的是什么。 ie a particular pysolar directory or file. 即特定的pysolar目录或文件。 My aim is to add the suns altitude data (get_altitude) to a gnuplot graph of bat house activity captured as temperatures and echo detection, and if linked to sunrise and sunset times. 我的目标是将太阳高度数据(get_altitude)添加到蝙蝠屋活动的gnuplot图中,该图以温度和回波检测以及与日出和日落时间的关联捕获。
To be able to import libraries, you the module file should exist in the PYTHONPATH environment variable. 为了能够导入库,模块文件应该存在于PYTHONPATH环境变量中。 To check what exists in that variable right now, you can try 要立即检查该变量中存在什么,可以尝试
When you install a library, eg 安装库时,例如
sudo pip3 install pysolar
The path should automatically be pointing to the files (to get really technical, it will exist in the C:\\\\Lib\\site-package folder), and you can start importing it immediately. 该路径应自动指向文件(要真正使用该文件,它将存在于C:\\\\ Lib \\ site-package文件夹中),您可以立即开始导入它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.