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
Related
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
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
I couldn't activate TensorFlow env on Ubuntu(16.04 LTS) bash
I have tried "activate tensorflow" and source "activate tensorflow", but it did not work
"activate tensorflow" and
"source activate tensorflow" not working
I expect this : (tensorflow)$
but I'am getting this:
"activate tensorflow" display: /home/user/anaconda3/bin/activate: 5: /home/user/anaconda3/envs/tensorflow/etc/conda/activate.d/activate-binutils_linux-64.sh: Syntax error: "(" unexpected
while "source activate tensorflow" displays nothing, though my TensorFlow environment is active.
Could you try creating a virtual environment using command in terminal virtualenv myenv. If virtualenv is not installed then install it using pip install virtualenv and run the above mentioned command again.
After creating it, open it using source myenv/bin/activate. Now you must be in the environment. If you see (myenv) on the left side in terminal then yes you are.
Now install TF using pip install tensorflow and you are good to go.
How about these three steps?
$ sudo apt-get install python-pip python-dev python-virtualenv
$ virtualenv --system-site-packages ~/tensorflow
$ source ~/tensorflow/bin/activate
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.
In windows 7, I try to install jupyter notebook using:
pip3 install jupyter
But I get error:
Command "python setup.py egg_info" failed with error code 1 in C:\Users\AppData\Local\Temp\pip-build-5in28fbw\pywinpty\
Best thing to do is to install Anaconda here
It includes its own "conda" terminal window for "windows", which will make it a lot easier for you to invoke jupiter notebook from the conda terminal, regardless of which folder you are in
First update if using linux system:
sudo apt-get update
sudo apt-get upgrade
Restart the system and try below steps:
Installing Jupyter with pip
As an existing or experienced Python user, you may wish to install Jupyter using Python’s package manager, pip, instead of Anaconda.
If you have Python 3 installed (which is recommended):
sudo python3 -m pip install --upgrade pip
sudo python3 -m pip install jupyter
If you have Python 2 installed:
sudo python -m pip install --upgrade pip
sudo python -m pip install jupyter
Congratulations, you have installed Jupyter Notebook! To run the notebook, run the following command at the Terminal (Mac/Linux) or Command Prompt (Windows Run CMD in Admin):
jupyter notebook
Update your setuptools and pip first then retry:
pip install --upgrade setuptools pip