I tried to output top 250 movies according to imdb rating with python. When I type the code as in the following screenshot1
import imdb
ia = imdb.IMDb()
search = ia.get_top250_movies()
for i in range(10):
print(search[i])
It gave me error saying no module imdb. So, I tried to install imdb python file with command pip install imdbpy
, but still gave me the error as:
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