Giter VIP home page Giter VIP logo

Comments (10)

jonhelium avatar jonhelium commented on July 18, 2024 2

Hooray!!! I followed the 1st four bullet points from above and now everything is working fine (including calling scikit-misc)! Thanks so much for helping out so much with these issues, really appreciate! :)

from comp-econ-sp19.

jmbejara avatar jmbejara commented on July 18, 2024

That's strange. Try restarting jupyter completely. I can't say for sure. Maybe you could share the terminal output you get after you install 'scikit-misc'. We could try some other things after that

from comp-econ-sp19.

jonhelium avatar jonhelium commented on July 18, 2024

I tried restarting Jupyter and the kernel but the same error keeps appearing. Here is a screenshot of my terminal output after trying install 'scikit-misc' again:

pip scikit-misc

from comp-econ-sp19.

jmbejara avatar jmbejara commented on July 18, 2024

Hmm. You might have an issue of having multiple installations of python. Try running the following commands in the command line: which pip and which python. Do this in the regular command prompt and the anaconda command prompt. Copy and paste the results for each.

from comp-econ-sp19.

jonhelium avatar jonhelium commented on July 18, 2024

I've tried using which pip and which python in both the regular command prompt and Anaconda command prompt but neither seem to recognize which as a command.
which_error

from comp-econ-sp19.

jmbejara avatar jmbejara commented on July 18, 2024

Could you try the same thing with where ? If that doesn't work, it might be best to try to work through the issue in Ari's office hours tomorrow.

from comp-econ-sp19.

jonhelium avatar jonhelium commented on July 18, 2024

I tried using where and it does tell me where my installation of pip and python are... I don't think this indicates that I have multiple installs of Python but I wouldn't sure of that.
where_pip_python

from comp-econ-sp19.

jmbejara avatar jmbejara commented on July 18, 2024

I'm assuming that you installed Anaconda and are using Anaconda. The path that is returned is not the default path for an Anaconda installation. It looks like you have a second installation of Python on your computer. (https://xkcd.com/1987/ :) ) Try these things:

  • run `pip install scikit-misc' in the Anaconda prompt. See if that fixes things.
  • If that doesn't work, try opening control panel and go to "add or remove programs". Look for a non-Anaconda version of Python 3.7 and uninstall it. Then try the previous step again.

from comp-econ-sp19.

jonhelium avatar jonhelium commented on July 18, 2024

I've tried the above after uninstalling a non-Anaconda version of Python but it doesn't seem like anything was resolved - there is now another more urgent issue of a Kernel error I am now receiving in every jupyter notebook: "FileNotFoundError: [WinError 2] The system cannot find the file specified" :(

Do I have to re-install Python again?
Edit: Or could this possibly be an error with my PATH variables?

from comp-econ-sp19.

jmbejara avatar jmbejara commented on July 18, 2024

Oh no! Sorry this is such a pain. Ok. It seems like the issue is that Jupyter notebook has been configured to run with a different Python installation than the one that was installed by Anaconda. You need to change the settings to let Jupyter know to use the Anaconda one. Try this.

  • Make sure all other command prompt are closed. Make sure Jupyter and all anaconda apps are closed.
  • Open the anaconda prompt (it's important to use the Anaconda prompt)
  • Run this command: python -m ipykernel install --user
  • Then type jupyter notebook
  • Try running your file again and see if that fixed the issue.
  • If it didn't work, run this in an Anaconda prompt: jupyter kernelspec list
  • Open File Explorer and delete the file that is returned by the command jupyter kernelspec list
  • Try again to see if this fixed the problem. If not, uninstall Anaconda. Uninstall all Python programs you can find. Install Anaconda from scratch.

Here are my references:

from comp-econ-sp19.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.