I get stuck when i use pip install to install scikit-learn on jupyter notebook
I tried to find other solution that I found on internet but it is always the same issue
I was opening jupyter notebook with sagemath, it seems that the problem was from it. It works if I open jupyter notebook without sagemath
Related
I checked the method of importing this package on the Internet, and I also entered the pip command in cmd, but it still cannot be imported. May I ask why?
Probably because the kernel of your jupyterhub has not the right environment.
Try to reinstall the package using the terminal of jupyter hub (see new drop box) it will do the trick once you have installed the package and refreshed the kernel.
Try this on your Jupyter cell:
pip install git+https://github.com/ematvey/pybacktest.git
Link to github https://github.com/ematvey/pybacktest
Edit for your comment:
run the below command on your Jupyter cell.
pip install pandas_datareader
In the official jupyter labs installation guide, it says to install jupyter labs with pip install jupyterlab and then launch with jupyter-lab.
However, what I did was try the first installation method, and when the jupyter-lab command to open didn't work, I tried installing again with python -m pip install jupyterlab.
Now the jupyter-lab command that is listed still isn't recognized, but after playing around, I found that python -m jupyterlab opens jupyter labs for me.
Why is this?
Should I be concerned that I messed anything up, should I just keep using the command that I found, or try to fix my installation so that the official jupyer-lab opens the program up?
Thanks
I am facing this weird issue where I have a jupyter notebook which is giving me ModuleNotFound error on Library but I did not face same issue on other notebook.
Path for notebook1 is C:\Users\Avinash Jha\Documents\Python\SB\GITHUB\project1\Notebooks\xyz.py
Path for notebook2 is C:\Users\Avinash Jha\Documents\Python\SB\GITHUB\project2\Notebooks\acb.py
CMD screenshot when i tried to install the module.
May be your jupyter notebook is running in different virtual environment try to run same pip command from notebook with append '!' like this
!pip install library
I was doing my Logistic Regression with a Neural Network mindset when my submit button disappeared. I followed some instructions that told me to delete the notebook and that a fresh notebook would come back later, but the notebook completely disappeared. Every time I try to access it, I get a 404. I would much appreciate some help
If you deleted jupyter so try to install it from Anaconda Prompt with below command.
pip install ipykernel or conda install ipykernel
Once its completed then run below command..
python -m ipykernel install --user --name=NewEnv
Now run jupyter notebook from anaconda prompt it will work fine..
For More information Visit Link
I hope this question is not redundant, but I couldn’t find a solution on the internet so far. I’ve followed the github guide (https://github.com/fastai/fastai) to install the fastai library on my Anaconda environment. I want to use this library to tackle the ML course and solve other Kaggle competitions with it.
As per below, I’m opening my conda environment, selecting fastai and opening Jupyter Notebook:
When trying to run the packages in Jupyter, I still get an Import Error with No module named ‘fastai’. Any suggestions on what I’m doing wrong?
Had same issue. It looks like the problem is with "softlinks" fastai which are not working on Windows.
I fixed it with replacing that soflinks with real module fastai from root of repository. Just copied it to courses\dl1, courses\dl2, courses\dm1 and tutorials folders.
Prerry dirty. But works. Let me know how to fix it without copying.
Add a cell to the beginning of the notebook, !python -m pip install git+https://github.com/fastai/fastai.git
Edit:
Now that fastai is 1.0 and on pip, you probably just want to !python -m pip install fastai.
I prefer the !python -m pip syntax over just calling pip when mixing anaconda and pip, but it probably just reflects my system's python being messed up.
I had trouble making fastai_v1 work in jupyter lab, however it was working on the terminal. So the problem was with the virtual environment not being selected in the jupyter lab when it was launched.
I used the below code to make it work. Replace 'myenv' with your virtual environment name.
source activate myevn
python -m ipykernel install --user --name myenv --display-name "Python (myenv)"
jupyter lab
more info here: Conda environments not showing up in Jupyter Notebook