2019-08-05 02:08:06.433349

In [1]:
import numpy
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-d4cdadb62aa7> in <module>
----> 1 import numpy

ModuleNotFoundError: No module named 'numpy'

As I started writing this post I realized how many days I have start writing blog posts that sound like this one. What I was writing about before I deleted all of it was how I started working on something, got stuck, and hunted down the solution. As an hour went by (I have spent far longer on easier solutions) I realized I was digging myself a hole and just stopped because writing this blog post was more important to me than staying up late to figure out something that I already kind of have a solution to. Here's some context:

Today I didn't have many ideas about what to work on. I wanted to Dataquest it up (a site that has you do data science training by challenges and what not, a resource I've used in the past and I have really liked it. I also do (want to) believe that in my learning, I have to have one learning path to come back to because I am a resource hog <- by that I mean I will spend more time hording resources than I will coding.

I opened up one of the missions and saw that it was doing a walkthrough of some data analysis. I wanted to copy it into my own notebook at the same time I was doing it. Above this blob of text is a cell that says import numpy. That's as far as I got.

A few weeks ago, I could import just about any data science library included in the Anaconda distribution and it would work. No problems at all. A week or two ago I ran conda update conda for some reason (which I never do), thinking that I haven't updated conda in awhile (or maybe I saw something, or read something. I honestly don't know) and every since then I cannot import anything that I've easily used before. Watch.

In [2]:
import pandas
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-2-38d4b0363d82> in <module>
----> 1 import pandas

ModuleNotFoundError: No module named 'pandas'
In [3]:
import matplotlib
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-3-0484cd13f94d> in <module>
----> 1 import matplotlib

ModuleNotFoundError: No module named 'matplotlib'

All stuff I have used before. There was a post I did a few days ago where I was using BeautifulSoup (another library included in the Anaconda distribution) and I had to reinstall it which I found weird. Selenium as well which I use constantly.

So I dove into Google fingertips first trying to find what the issue might be then realizing that it might something I can fix with a virtual environment. I started booting up my conda virtualenv and then I realized I couldn't figure out how to boot up a virtualenv, and the use a juptyer notebook on top of it/in it/around it/in it's vicinity..whatever.

Now I'm thinking about deleting Anaconda because this stuff used to be installed system-wide I thought but who knows now?

Here's the real problem though.

As a coder. or hold up.

As a person who literally only creates and solves problems. Working on things that are well outside of my realm of knowledge, every day I am going to have probably hundreds of days like this. Days that devolve into solving the smallest issues that there are probably hundreds of work arounds for. For example, I could/should have just kept working on Dataquest and then (I'm pretty sure) I could download the notebook afterwards. Also, IBM has a platform where you can use Jupyter Notebooks and everything you need is preinstalled. Microsoft too. Also Mode. There are a bunch of open source platforms now.

I've made my point. Many solutions.

I don't want to have hundreds of blog posts documenting how I ran into a problem, did something, and either overcame it or just "had one of those days" and then go on to rant about how coding "be like that sometimes."

I mean, mostly, I will always be solving problems but I want the solutions to start looking more like well documented scientific journal entries rather than multipost endless rants.

I know I'm in control of that too.

So here's what's going to happen. I ask myself three questions in my learning evaluation for the day.

What went well?

What didn't go so well?

What to change to make it better next time?

1) What went well?

Well I tried to actually code today. Even a few times. I normally do quite a bit of coding on the weekdays and not on the weekends so that's a huge win 

2) What didn't go so well?

I ran down the rabbit hole and sometimes it's a good chase but this time it was unnessary and I think some sort of self-created distraction of sorts.

3) What to change to make it better next time?

I think starting off in a environment that already has all the bells and whistles for next time would be a great first step but in all honesty, this not-having-the-right-stuff-installed problem hasn't been one for me in awhile so I do not know what's caused it. 

Also I should have started coding a little earlier in the day. I started coding late tonight and that's why I eventually quit trying to find a solution (which I didn't need) and didn't pivot to using an environment that would just work right off the bat. Also, if I had started earlier, I may have dove straight into fixing the issue as well.

So that's about it.

Let me know what you think.

see ya later day 11