EY-Data-Science-Program / 2021-Better-Working-World-Data-Challenge

This github repository has been created for participants in the Better Working World Data Challenge. It contains code and documentation used to set up and manage an analysis environment for completing the Challenge. Please use the Discussions tab for any questions, or to have friendly discussions with other participants in the challenge!
MIT License
9 stars 5 forks source link

cannot import name 'CRS' from 'pyproj' #54

Open cheukhin1024 opened 3 years ago

cheukhin1024 commented 3 years ago

I failed to import name 'CRS' from 'pyproj'. And I google-searched about it.

There are some suggested solutions, but it doesn't work for me because I am using Anaconda Jupyter Notebook to do modeling.

螢幕擷取畫面 2021-05-04 044913

alexgleith commented 3 years ago

Building Python environments is tricky. What has happened here is that your version of pyproj is different to the one we are expecting you to have.

Looking here, Datacube should work with pyproj >= 2.5: https://github.com/opendatacube/datacube-core/blob/develop/setup.py#L92

What is the output of pip freeze?

It may be that your version is too recent, or too old!

cheukhin1024 commented 3 years ago

Building Python environments is tricky. What has happened here is that your version of pyproj is different to the one we are expecting you to have.

Looking here, Datacube should work with pyproj >= 2.5: https://github.com/opendatacube/datacube-core/blob/develop/setup.py#L92

What is the output of pip freeze?

It may be that your version is too recent, or too old!

Pyproj is a very old version... []https://pyproj4.github.io/pyproj/stable/installation.html

btw, I want to know whether importing data from datacube is necessary? because I realize that some structured training data and test data are provided, such as []https://datascience.ey.com/challenge/5

Dataset files challenge1_train.csv sample_submission.csv challenge1_test.csv Challenge_Terms_and_conditions.pdf