简体   繁体   English

对于Win7上的pysolar,PATH需要指向什么。 即使用“ from pysolar.solar…”

[英]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.

相关问题 如何使用pysolar获取太阳天顶角? - How to get solar zenith angle using pysolar? 括号里的数据叫什么? 即:数据[i] - What is the data in brackets called? i.e.: data[i] 为什么 print("..."),即连续三个点,打印空白? - Why does print("..."), i.e. three dots in a row, print blank? 如何在带管道(OR)的正则表达式中使用'*',即'匹配零或更多'? - How can I use the '*' , i.e. 'match zero or more', in regular expressions with a pipe (OR)? 使用 Python 中的外部/帮助文件(即模块)修改 class 属性(自身)的最佳方法是什么? - What is the best way to modify a class attribute (self) using an external/helper file (i.e. module) in Python? Python 闭包是否需要外部作用域超出作用域(即结束) - Does Python closure require the outer scope going out of scope(i.e. ended) 从 ip 地址获取本地主机名,即 Windows 10 上的 192.168.1.x python 3 - get local hostname from ip adress i.e. 192.168.1.x python 3 on windows 10 有没有办法用“#”替换字符串中从索引 0 到索引 -4(即除最后 4 个字符之外的所有字符)中的字符 - Is there a way to replace characters in a string from index 0 to index -4 (i.e. all but last 4 characters) with a '#' `A.__new__(B)` 的用例,即 python 中的“使用一个 class 制作另一个” - Use cases for `A.__new__(B)` i.e. “using one class to make another” in python numpy 的基本操作是否矢量化,即它们是否使用 SIMD 操作? - Are numpy's basic operations vectorized, i.e. do they use SIMD operations?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM