Cannot install jupyter notebook - windows-7

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

Related

No module named 'torch' in Jupyter Notebook but it is installed (Mac OS)

So when I try to import torch in jupyter notebook it gives the error no module named 'torch'.
I created a conda environment named "Thesis" where I work in and install my packages.
When I try these commands in my terminal it says the package is installed (see three images below):
torch1
torch2
torch3
I tried many commands to install the package:
pip install torchvision
python3 -m pip install torchvision
conda install pytorch torchvision -c pytorch
I also tried installing the package directly in the jupyter notebook itself via:
import sys
!{sys.executable} -m pip install torchvision
It at least shows something but I got the following dependency error
dependency error
I also created a kernel
ipython kernel install --name "thesis" --user
All did not help and I still receive the error in jupyter notebook.
Does somebody know how to resolve this?
I solved the problem by downloading and activating virtualenv with:
python3 -m pip install virtualenv
virtualenv <my_env_name>
source <my_env_name>/bin/activate
And getting the path in the jupyter notebook by:
import sys
print(sys.executable)
which outputs:
/Users/{username}/opt/anaconda3/bin/python
And installing the packages in the terminal via:
/Users/{username}/opt/anaconda3/bin/python -m pip install {package_name}

Unable to create process using "c:\users\hp\anaconda3\python.exe"

C:\Users\HP\badminton_site\badminton>scrapy shell https://stackoverflow.com/questions/ask
Fatal error in launcher: Unable to create process using '"c:\users\hp\anaconda3\python.exe" "C:\Users\HP\Anaconda3\Scripts\scrapy.exe" shell https://stackoverflow.com/questions/ask: The system cannot find the file specified.
Why it is showing such error in anaconda prompt and command prompt?
Uninstall and reinstall the pip:
python -m pip uninstall pip
python -m pip install --upgrade pip
Update pip
python -m pip install -upgrade pip
i reinstalled the anaconda in another diretory and that worked for me

Jupyter error Consider using the `--user` option or check the permissions

ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python3.5/dist-packages/defusedxml-0.6.0.dist-info'
Consider using the --user option or check the permissions.
pip install --user jupyter
the above command doesnt seem to work
I faced sam issue trying to upgrade pip.
I wasn't been able to do that with:
!python -m pip install --upgrade pip
But it run ok with:
!python -m pip install --upgrade --user pip
For installing Jupyter Notebook
try using:
pip install --user notebook
instead of:
pip install notebook
If you have root access you can try:
sudo pip install jupyter

Multiple problems with pip3, python3 and pygame

I'm trying to install pygame on my mac. I'm running OSX El Capitan 10.11.5. When i try installing pygame via pip3:
pip3 install pygame
It comes out with this error
-bash: /usr/local/bin/pip3: /usr/local/opt/python3/bin/python3.5: bad interpreter: No such file or directory
I have checked that pip3 is actually installed by typing
which pip3 -version
/usr/local/bin/pip3
I am at a total loss and it's confusing me quite a bit.. Am i doing it wrong?
Upgrade pip and try
pip install -U pip
After install a virtualenv
pip install --ignore-installed virtualenvwrapper
Edit .bash_profile, in terminal write
echo "source /usr/local/bin/virtualenvwrapper.sh" >> .bash_profile
Refresh bash_profile, in Terminal write source .bash_profile
Make a virtualenv and using python3
mkvirtualenv MyProject --python=python3
And go to your virtualenv
workon MyProject
Now install pygame from pip pip install pygame or pip3 install pygame

New to Homebrew, no pip install?

I just downloaded homebrew, and want to download ipython notebook.
pip install ipython
-bash: pip: command not found
Thanks.
I ended up doing a brew sudo install pip, and now I'll do sudo pip install for every package.

Resources