我已经安装了这个包。https:/github.comretostaufferPyGFSV2。,用pip。这个包里有两个可执行文件(GFSV2_get和GFSV2_bulk)。但是,我不知道如何在Python中打开可执行文件,所以,在安装后,作者建议尝试用以下方式安装:调用:GFSV2_get和GFSV2_bulk。
所以,在安装之后,软件包作者建议通过调用来尝试安装。
GFSV2_get --step 12 24 --level 700 850 --param tmp_pres --date 2005-01-01
所以,我把Anaconda Prompt放进了下一个。
(base) C:\Users\vrida>CD C:\Users\vrida\anaconda3\Scripts
(base) C:\Users\vrida\anaconda3\Scripts>python GFSV2_get --step 12 24 --level 700 850 --param tmp_pres --date 2005-01-01
但是,它没有工作。出现了这样的提示:我是Python初学者。
# DEBUG Loading default config file from package source.
# INFO Config file read, return.
# INFO Processing date 2005-01-01 00Z
# INFO Downloading inventory information data
# DEBUG Reading ftp://ftp.cdc.noaa.gov/Projects/Reforecast2/2005/200501/2005010100/mean/latlon\tmp_pres_2005010100_mean.grib2.inv
# ERROR Problems reading file, reason: "ftp error: URLError("ftp error: error_perm('550 Failed to change directory.')")".
# ERROR Could not download inventory file! Skip this.
# INFO Inventory empty, skip this file
# INFO Downloading inventory information data
# DEBUG Reading ftp://ftp.cdc.noaa.gov/Projects/Reforecast2/2005/200501/2005010100/sprd/latlon\tmp_pres_2005010100_sprd.grib2.inv
# ERROR Problems reading file, reason: "ftp error: URLError("ftp error: error_perm('550 Failed to change directory.')")".
# ERROR Could not download inventory file! Skip this.
# INFO Inventory empty, skip this file
我是Python的初学者 所以我有两个问题。
1 - 如何运行这些可执行文件,例如用Anaconda Prompt?
2 - 有谁能下载这个包,在尝试安装后,如果成功,告诉我如何才能使之相同?
显然,这个库试图通过 ftp 下载一些文件,使用系统文件分隔符,在你的情况下(因为你使用的是 Windows),而不是 .NET。ftp:/ftp.cdc.noaa.govProjectsReforecast220052005012005010100meanlatlon。\tmp_pres_2005010100_mean.grib2.inv。
该文件可以通过一个标准的ftp客户端匿名访问,所以这应该是python库的问题。