My default python version in jupyter notebook is 3.6.5
I want to run code under python 3.7.1 in my jupyter notebook.
Can it be possible?
Related
I get a moduleNotFoundError when importing pandas in my Jupyter Notebook.
There is not error when I do the same on the Terminal. The default python on my machine is python 3.8
This is the code that i am running on Jupyter
Why Jupyter is unable to find the pandas installed on my machine?
It is indeed caused by different versions of python. Jupyter is not executing the default version installed on my system.
To fetch the right version we need to use print(sys.executable).
Thus, the following code worked for me,
import sys
!{sys.executable} -m pip install pandas
Anaconda Jupyter notebook is not starting through command prompt when I provide the command jupyter notebook. I'm getting this error:
first you need to activate anaconda conda activate then jupyter notebook
On bringing up octave 4.4.0 for anaconda 3 Jupyter Notebook on windows 10
the 1st octave-gui.exe system error is:
The code execution cannot proceed becuase liboctave-5.dll was not found. Reinstalling the program may fix this problem.
Octave 4.4.0 runs in the gui by itself but not with jupyter Notebook.
Using Python 3.6.5 which runs in Jupyter Notebook.
I was able to run Octave 4.0.1 in Jupyter Notebook.
I am running into some issues with packages I can access in anaconda prompt vs what is available in Jupyter Notebook.
I recently created an environment for python 3.6. I installed a few packages, including pandas, using:
conda install pandas
And all is well:
When I check conda list, I also see pandas installed for py36.
conda list
Now, I run the following line to start my jupyter notebook from this same location:
jupyter notebook
I then run into an error when I try to import pandas. I then try to install pandas with no luck.
My guess is this stems from having downloaded anaconda for python 2.7, but I assume there is a way to get things working in both versions of python for jupyter notebook.
To add, I am able to use pandas when I use python 2.7 (referred to as "root"):
activate root
jupyter notebook
Any help would be greatly appreciated!
I am running Apache Toree for Pyspark Notebook. I had anaconda 3.5 and jupyter hub installed on unix machines. When I am invoking pyspark from Jupyter notebook it's starting with Python 2.7 instead of Anaconda 3.5.
Requesting your help in changing python version.
Please see I had already tried changing python version via os.environ but it didn't worked.
Followed Below steps for configuring Toree with Python-3:
Installed a new kernel with spark home and python path.
jupyter toree install --spark_home="spark_path" --kernel_name=tanveer_kernel1 --interpreters=PySpark,SQL --python="python_path"
After doing above there were issues with Driver Python version and Executor Python version. Corrected Python Version in spark-env.sh by adding
export PYSPARK_PYTHON="/usr/lib/anaconda3/bin/python"
export PYSPARK_DRIVER_PYTHON="/usr/lib/anaconda3/bin/python"
Restarted spark services.