简体   繁体   中英

'import intake' in google colab generates ContextualVersionConflict

!pip install intake-esm 

install the latest version of intake-esm (2020.12.18) in google colab

but the import intake statement generates the following error:

ContextualVersionConflict: (requests 2.23.0 (/usr/local/lib/python3.6/dist-packages), Requirement.parse('requests>=2.24.0'), {'intake-esm'})

could anybody please tell me what is going wrong or how to fix this?

At first install intake-esm

!pip install intake-esm

Then install astropy >= 3.1 and sunpy

!pip install astropy>=3.1
!pip install sunpy

Finally, import intake

import intake

Following this, I can import intake .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM