Closed Henrike-Schwenn closed 3 years ago
Jupyter Notebook
in terminal(base) henrike@henrike-HP-250-G5-Notebook-PC:~$ Jupyter Notebook
Der Befehl 'Jupyter' wurde nicht gefunden, meinten Sie:
Befehl 'jupyter' aus dem Snap jupyter (1.0.0)
Befehl 'jupyter' aus dem deb jupyter-core (4.6.3-3)
Informationen zu neuen Versionen sind mit 'snap info <snapname>' zu finden.
(base) henrike@henrike-HP-250-G5-Notebook-PC:~$ jupyter notebook
Der Befehl 'jupyter' wurde nicht gefunden, kann aber installiert werden mit:
sudo snap install jupyter # version 1.0.0, or
sudo apt install jupyter-core # version 4.6.3-3
Informationen zu neuen Versionen sind mit 'snap info jupyter' zu finden.
sudo snap install jupyter # version 1.0.0
(base) henrike@henrike-HP-250-G5-Notebook-PC:~$ su henrike
Passwort:
(base) henrike@henrike-HP-250-G5-Notebook-PC:~$ sudo snap install jupyter # version 1.0.0
[sudo] Passwort für henrike:
jupyter 1.0.0 aus Jupyter Project (projectjupyter✓) installiert
Jupyter Notebook
in terminal again(base) henrike@henrike-HP-250-G5-Notebook-PC:~$ jupyter notebook
Befehl »jupyter« ist unter »/snap/bin/jupyter« verfügbar
Der Befehl konnte nicht gefunden werden, weil »/snap/bin« nicht Teil der Umgebungsvariable PATH ist.
jupyter: Befehl nicht gefunden.
Change directory to folder 'anaconda3/bin', which contains 'jupyter notebook'
Re-run jupyter notebook
Works
Only allows access to files within 'anaconda3/bin'
Change directory to repo 'Predicting bike rental demand'
Re-run jupyter notebook
Works
Leads to project files
import pandas
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-14-38d4b0363d82> in <module>
----> 1 import pandas
ModuleNotFoundError: No module named 'pandas'
Check file path 'pandas' sys.path.append("/home/henrike/Schreibtisch/anaconda3/lib/python3.7/site-packages")
sys.path.append("/home/henrike/Schreibtisch/anaconda3/lib/python3.8/site-packages")
import pandas
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-21-38d4b0363d82> in <module>
----> 1 import pandas
ModuleNotFoundError: No module named 'pandas'
Hm.
sys.path.append("/home/henrike/anaconda3/lib/python3.8/site-packages")
/home/henrike/anaconda3/lib/python3.8/site-packages/numpy/__init__.py:140: UserWarning: mkl-service package failed to import, therefore Intel(R) MKL initialization ensuring its correct out-of-the box operation under condition when Gnu OpenMP had already been loaded by Python process is not assured. Please install mkl-service package, see http://github.com/IntelPython/mkl-service
from . import _distributor_init
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-25-38d4b0363d82> in <module>
----> 1 import pandas
/home/henrike/anaconda3/lib/python3.8/site-packages/pandas/__init__.py in <module>
15 if missing_dependencies:
16 raise ImportError(
---> 17 "Unable to import required dependencies:\n" + "\n".join(missing_dependencies)
18 )
19 del hard_dependencies, dependency, missing_dependencies
ImportError: Unable to import required dependencies:
numpy:
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.
We have compiled some common reasons and troubleshooting tips at:
https://numpy.org/devdocs/user/troubleshooting-importerror.html
Please note and check the following:
* The Python version is: Python3.7 from "/snap/jupyter/6/bin/python"
* The NumPy version is: "1.18.5"
and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.
Original error was: No module named 'numpy.core._multiarray_umath'
sys.path.append("/home/henrike/anaconda3/lib/python3.8/site-packages")
No effect.
Interrupt for troubleshooting numpy import error
Working time: 40 minutes
17.10.2020