LeDataSciFi / FinTech-Capstone-2023

https://ledatascifi.github.io/FinTech-Capstone-2023/
3 stars 0 forks source link

Help Request on import #5

Closed XiaozheZhangLehigh closed 1 year ago

XiaozheZhangLehigh commented 1 year ago

I am having importing issues, and I had try to fix this for many times, and it does not working on my machine, could you try to run my code in my branch: Xiaozhe's branch? I am able to add more variables for cenpy before, but, there is importing error as I mess around for import. @donbowen

donbowen commented 1 year ago

Still stuck? I can look at it now if needed.

donbowen commented 1 year ago

The error code I see is telling you the problem. You need to install some things for cenpy to work. So, open another terminal window and run pip install rtree Then pip install geopandas

It should work after that.

XiaozheZhangLehigh commented 1 year ago

I tried so many times and I think something nasty happened to my terminal. I tried to install what it says missing but not good. It was working before, but I believe something bad happens when I try to install something to import complexity for python

Is there a way that I can reset them to default so that everything/packages I download before can be uninstalled?

image image
donbowen commented 1 year ago
  1. Did you install rtree successfully?
  2. Did you install geopandas successfully?
  3. Why do you need contextily?
donbowen commented 1 year ago

If you did install those two things, reset your kernel. It should work. You just made need to have those loaded up.

If it fails again, save your file and push it to github. I can only see what's online.

XiaozheZhangLehigh commented 1 year ago

I can confirm that I install rtree and geopandas successfully. I was messing around with _complexity as the cenpy document show the power of complexity to create geographic image_ reflection density of different variables, but... I have pushed the file called Setup.ipyb_ to Xiaozhe's branch__

image
donbowen commented 1 year ago

Ok so the installs work. Good. Seems like that other package messed it up, as you said. That stinks.

Try to close out Jupyter lab, close the terminal, and then reopen JLab in a new terminal window. This should force it to use your reinstalls. Delete the line importing the complexity and run the code. If it fails again, we can try something else tomorrow. -- Sent from my phone. Please excuse brevity and typos.