After creating a new environment, it is not recognizing jupyter notebook when i am trying to launch it from there. Able to launch it from base environment.
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
To activate this environment, use
$ conda activate ipl_score
To deactivate an active environment, use
$ conda deactivate
(base) E:>conda activate ipl_score
(ipl_score) E:>jupyter notebook
'jupyter' is not recognized as an internal or external command,
operable program or batch file.
(ipl_score) E:>
You can install jupyter notebook with conda or pip
pip
$ pip install notebook
conda
$ conda install -c conda-forge notebook
Start jupyter notebook using the command below in cmd
$ jupyter notebook
Jupyter Notebook has to be individually installed in every environment you create.
If you have Anaconda Navigator installed, open the navigator, select the ipl_score environment and install Jupyter Notebook.
You can also install jupyter notebook from the command line using pip or conda in the activated environment.
pip install notebook
conda install -c conda-forge notebook
You can follow the below article if you need more information
https://jupyter.org/install
Related
opened anaconda prompt as administrator,
first updated conda using
conda update conda
then tried installing Orange3 using
conda config --add channels conda-forge
conda install pyqt
conda install orange3
as per https://orangedatamining.com/download/#windows.
gave me the following problem:
it stays on this for at least an hour.
What am I missing or misunderstanding here?
everything was Ok with jupyter notebook, but then I tried to install by:
!conda install --yes --prefix {syz.prefix} psycopg2-binary and I got this error in jupyter EnvironmentLocationNotFound: Not a conda environment: C:\Users\Anonymous\{sys.prefix}
You can't mix virtualenv or venv with conda environements.
Learn conda basics here: Managing conda environments
I have installed Miniforge on my macbook air m1, and then did the following steps to successfully install jupyter and launch it:
chmod +x ~/Downloads/Miniforge3-MacOSX-arm64.sh
sh ~/Downloads/Miniforge3-MacOSX-arm64.sh
source ~/miniforge3/bin/activate
mkdir data-science
cd data-science
conda create --prefix ./env python=3.8
conda activate ./env
conda install -y jupyter
conda install pandas numpy matplotlib scikit-learn tqdm
Then: I launched Jupyter this way:
jupyter notebook
Everything worked fine. But when I exited the terminal and opened again and typed:
jupyter notebook
I got this error: zsh: command not found: jupyter
What is the problem?
I know that this is a path problem, but even when I go to env environment, and I run jupyter notebook I get the same command error.
Im not sure but I think you need to reactivate the environment each time you restart the terminal sesion.
conda activate ./env
then run your code
I am on a Windows machine running WSL2 with Ubuntu 22.04 (fresh install) afterwards I installed Anaconda with wget https://repo.anaconda.com/archive/Anaconda3-5.1.0-Linux-x86_64.sh and bash Anaconda3-5.1.0-Linux-x86_64.sh. I also update my conda by running conda update conda
However when I create a new conda enviroment (conda create --name=test-env python=3.8) and activate my test-env environment to install pip (conda install pip), so I can install packages with pip, all package I install with pip are installed into the base anaconda environment.
f which -a pip returns /home/user/anaconda3/bin/pip I've tried adding /home/user/anaconda3/envs/test-env/lib/python3.8/site-packages to my $PATH variable by executing export PATH=/home/user/anaconda3/envs/test-env/lib/python3.8/site-packages:$PATH and executing source ~/.bashrc but this doesn't even change anything to the result of which -a pip (pip installed in my environment is not added), so it still installs my pip packages inside base instead of my environment.
How do I get ubuntu wsl2 to run the correct pip package manager when I activate my environment? Some goes for python, if I run python when my environment is active it references python that is installed in base and not my active environment
I recently create a anaconda env by:
conda create -n tensorflow_env python=3.6
conda activate tensorflow_env
conda install -c conda-forge tensorflow
Then I install jupyter notebook in the tensorflow_env,
conda install jupyter
Then I run it with
jupyter notebook
I got a blank website:
Anyone knows what's going on here? I use windows 10. And the jupyter notebook works fine if I don't run it with in the tensorflow_env environment. But if I don't run the jupyter in that environment, I can't import tensorflow.
You may need to install additional package:
conda install nb_conda_kernels
and restart the Jupyter notebook server again.