我尝试使用python根据imdb评级输出前250部电影。当我输入以下屏幕快照中的代码时
import imdb
ia = imdb.IMDb()
search = ia.get_top250_movies()
for i in range(10):
print(search[i])
给我一个错误,说没有模块imdb。因此,我尝试使用命令pip install imdbpy
安装imdb python文件,但仍然给我以下错误:
ERROR: Could not find a version that satisfies the requirement imdbpy (from versions: none)
ERROR: No matching distribution found for imdbpy
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/:
There was a problem confirming the ssl certificate:
HTTPSConnectionPool(host='pypi.org', port=443):
Max retries exceeded with url:
/simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping