Cannot install jupyter on windows - python

I've been trying to install jupyter on my notebook. I just installed python 3.7 and when I try to install it using pip this happens image.
b/python_dateutil-2.8.0-py2.py3-none-any.whl
Collecting six>=1.9.0 (from prompt-toolkit<2.1.0,>=2.0.0->jupyter-console->jupyter)
Using cached https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721cOacOecfedb80e0d88c64:
9/six-1.12.0-py2.py3-none-any.whl Collecting wcwidth (from prompt-toolkit<2.1.0,>=2.0.0->jupyter-console->jupyter)
Using cached https://files.pythonhosted.org/packages/7e/9f/526a6947247599b084ee5232e4f9190a38f398d7300d866af3ab571a5b'
e/wcwidth-0.1.7-py2.py3-none-any.whl
Collecting webencodings (from bleach->nbconvert->jupyter)
It gets stuck there forever, I haven't seen this problem anywhere.
What's going on?

Related

Librosa installation pip fail

I am trying to install librosa by pip install librosa on the mac terminal, pip3 also has the same problem. It also gets stuck when I try to install scikit-learn.
Doesn't go any further than:
Collecting librosa
Using cached librosa-0.8.1-py3-none-any.whl (203 kB)
Collecting packaging>=20.0
Using cached packaging-21.0-py3-none-any.whl (40 kB)
Requirement already satisfied: numpy>=1.15.0 in /opt/homebrew/lib/python3.9/site-packages (from librosa) (1.21.0)
Requirement already satisfied: scipy>=1.0.0 in /opt/homebrew/lib/python3.9/site-packages (from librosa) (1.7.0)
Collecting numba>=0.43.0
Using cached numba-0.53.1.tar.gz (2.2 MB)
Collecting resampy>=0.2.2
Using cached resampy-0.2.2.tar.gz (323 kB)
Requirement already satisfied: soundfile>=0.10.2 in /opt/homebrew/lib/python3.9/site-packages (from librosa) (0.10.3.post1)
Collecting scikit-learn!=0.19.0,>=0.14.0
Using cached scikit-learn-0.24.2.tar.gz (7.5 MB)
Installing build dependencies ... \
I am very new at this, please help I just want to draw some spectrograms.
python --version
Python 2.7.16
python3 --version
Python 3.9.6
pip --version
pip 21.1.3 from /opt/homebrew/lib/python3.9/site-packages/pip (python 3.9)
It might be useful for you to work in a virtual environment. If you are trying to install with python 3.9 there may be a number of dependency issues, so using a lower version may also solve your issues. However, do try to with a conda environment as this will allow you to more easily keep track of install packages etc. Here are the install instructions:
After the install you can create a conda environment with a lower python version:
conda create -n "py38" python=3.8 ipython
Activate the environment:
conda activate py38
Install librosa:
conda install -c conda-forge librosa

pip install automl gets stuck

I've tried to install automl (https://pypi.org/project/automl/) from PyCharm and conda but consistently get stuck at the end of the following text:
Requirement already satisfied: multiprocess>=0.70.7 in c:\path1\path2\path3\test1\venv\lib\site-packages (from pathos<0.3.0,>=0.2.1->automl) (0.70.11.1)
Collecting multiprocess>=0.70.7
Using cached multiprocess-0.70.11-py3-none-any.whl (98 kB)
Using cached multiprocess-0.70.10.zip (2.4 MB)
Using cached multiprocess-0.70.9.tar.gz (1.6 MB)
Using cached multiprocess-0.70.8.tar.gz (1.6 MB)
Using cached multiprocess-0.70.7.tar.gz (1.4 MB)
I don't know why it keeps trying to access subsequently older versions of multiprocess and have no idea how to proceed from here.
In the command prompt on pycharm, do start venv/Scripts/python.exe -m pip install automl --no-cache-dir
I solved this problem by lowering the Python version from 3.9 to 3.6.

Pip failing to install matplotlib

I had to redownload Python and PyCharm due to some issues with my old versions, and am now reinstalling some packages for my project. numpy and pandas installed fine using the PyCharm package manager interface, but when I try to install matplotlib I just get an error with message
ERROR: Command errored out with exit status 1:
When I look for more information, PyCharm suggests that I "Try to run pip install matplotlib from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at [my path]". When I try to run the command in terminal, I get the following message:
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Defaulting to user installation because normal site-packages is not writeable
Collecting matplotlib
Using cached matplotlib-2.2.5-cp27-cp27mu-manylinux1_x86_64.whl (12.8 MB)
Collecting python-dateutil>=2.1
Using cached python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
Collecting kiwisolver>=1.0.1
Using cached kiwisolver-1.1.0-cp27-cp27mu-manylinux1_x86_64.whl (93 kB)
Collecting numpy>=1.7.1
Using cached numpy-1.16.6-cp27-cp27mu-manylinux1_x86_64.whl (17.0 MB)
Collecting six>=1.10
Using cached six-1.15.0-py2.py3-none-any.whl (10 kB)
Collecting cycler>=0.10
Using cached cycler-0.10.0-py2.py3-none-any.whl (6.5 kB)
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1
Using cached pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
Collecting pytz
Using cached pytz-2020.4-py2.py3-none-any.whl (509 kB)
Collecting backports.functools-lru-cache
Using cached backports.functools_lru_cache-1.6.1-py2.py3-none-any.whl (5.7 kB)
Collecting subprocess32
Using cached subprocess32-3.5.4-cp27-cp27mu-manylinux2014_x86_64.whl (69 kB)
Requirement already satisfied: setuptools in /home/[myusername]/.local/lib/python2.7/site-packages (from kiwisolver>=1.0.1->matplotlib) (44.1.1)
Installing collected packages: six, python-dateutil, kiwisolver, numpy, cycler, pyparsing, pytz, backports.functools-lru-cache, subprocess32, matplotlib
Successfully installed backports.functools-lru-cache-1.6.1 cycler-0.10.0 kiwisolver-1.1.0 matplotlib-2.2.5 numpy-1.16.6 pyparsing-2.4.7 python-dateutil-2.8.1 pytz-2020.4 six-1.15.0 subprocess32-3.5.4
I'm using windows, but have Ubuntu installed, which I used to try to run that command, since when I try to do anything with pip on git bash I get bash: /c/Users/[myusername]/AppData/Local/Microsoft/WindowsApps/python: Permission denied.
Anyways, I suppose the problem is that I have Python 2.7 installed (python --version agrees), which won't cooperate with matplotlib. So, I go to /home/[myusername]/.local/lib/python2.7/site-packages using Ubuntu terminal and use rm -r python2.7 to delete folder. Since I have Python 3.9 installed at C:\Users\[myusername]\AppData\Local\Programs\Python\Python39\python.exe I assumed that this would just default to the newer version. However, when I restart everything, Python 2.7 just appears again in its old location, and that version continues to run. I believe this has something to do with how I'm using Ubuntu, since Python 2.7 exists only outside my C: drive. But, I'm not sure how to go from here to install matplotlib. Would appreciate any help!

Could not find a version that satisfies the requirement menuinst (from conda)

I am using Windows 10 with python version 3.7 installed. Now I need to use the command pip install conda but it is showing an error. I searched for it but couldn't find a suitable answer. Please help.
C:\Users\ATech>pip install conda
Collecting conda
Using cached https://files.pythonhosted.org/packages/74/4e/c533c3136427be62c38cc0e038cabf167bb54489c2ced2f6df903c456861/conda-4.3.16.tar.gz
Collecting pycosat>=0.6.1 (from conda)
Using cached https://files.pythonhosted.org/packages/c0/fd/e38d68774c0a345b0090d608a90f1fbf423970d812f7ec7aef9ac024e648/pycosat-0.6.3.zip
Collecting requests>=2.12.4 (from conda)
Using cached https://files.pythonhosted.org/packages/7d/e3/20f3d364d6c8e5d2353c72a67778eb189176f08e873c9900e10c0287b84b/requests-2.21.0-py2.py3-none-any.whl
Collecting ruamel.yaml>=0.11.14 (from conda)
Using cached https://files.pythonhosted.org/packages/ae/84/bcd094e5e1c0bfdfc87e31ecb9505b8d46998a9ab3eefc6a7183be3db84d/ruamel.yaml-0.15.88-cp37-cp37m-win32.whl
Collecting menuinst (from conda)
Could not find a version that satisfies the requirement menuinst (from conda) (from versions: )
No matching distribution found for menuinst (from conda)
Checking the PyPi conda project it seems python 3.7 is not supported (check the bottom left of the page).The package only looks to support up to python 3.6.
Edit
Though I posted a comment to this effect on your post, in case you missed it you should note that using pip install conda or easy_install conda will not give you conda as a standalone application.

Install Mayavi for Python 3.7.1 in Windows 10

Under Windows 10, I'm trying to run a Python script which contains the line
from mayavi import mlab
Therefore I'm trying to install Mayavi by running
pip install mayavi
from the Windows PowerShell. I then get
Collecting mayavi
Using cached https://files.pythonhosted.org/packages/83/9e/293ba57353ed258c2f64d54bf00ca1447c1f38f4eb60d0e762ddec57bf51/mayavi-4.6.2.tar.bz2
Collecting apptools (from mayavi)
Using cached https://files.pythonhosted.org/packages/78/84/64764e2c87fcb7ad7521bdabc7c44c109b80691f94218cbddd5df2ee682c/apptools-4.4.0.tar.bz2
Collecting envisage (from mayavi)
Using cached https://files.pythonhosted.org/packages/ea/2a/7efcd2c44a638a5e3e65e39f7e5bd4cf952ef4ffc71768730cf19fef1e4e/envisage-4.7.0-py3-none-any.whl
Requirement already satisfied: numpy in c:\users\adria\appdata\local\programs\python\python37-32\lib\site-packages (from mayavi) (1.15.4)
Collecting pyface>=6.0.0 (from mayavi)
Using cached https://files.pythonhosted.org/packages/45/fe/7150742f7053cb5082f15704c064a5c683f42dfc00411ce173287651e33a/pyface-6.0.0.tar.gz
Collecting pygments (from mayavi)
Using cached https://files.pythonhosted.org/packages/13/e5/6d710c9cf96c31ac82657bcfb441df328b22df8564d58d0c4cd62612674c/Pygments-2.3.1-py2.py3-none-any.whl
Collecting traits>=4.6.0 (from mayavi)
Using cached https://files.pythonhosted.org/packages/56/47/03f50e82e1ff1e8a602c5f2cf12f08675f79a7169629fe4ce521e59d265f/traits-4.6.0.tar.bz2
Collecting traitsui>=6.0.0 (from mayavi)
Using cached https://files.pythonhosted.org/packages/f2/06/3ad35a78e1ca82d762e2d9ffe9ed6c9dd405caa340066052d7ec186b9b1b/traitsui-6.0.0.tar.gz
Collecting vtk (from mayavi)
Could not find a version that satisfies the requirement vtk (from mayavi) (from versions: )
No matching distribution found for vtk (from mayavi)
Running pip install vtk gives
Collecting vtk
Could not find a version that satisfies the requirement vtk (from versions: )
No matching distribution found for vtk
I installed VTK manually with https://www.vtk.org/files/release/7.1/vtkpython-7.1.1-Windows-64bit.exe but it does not solve the problem.
Running python --version returns Python 3.7.1 and running pip --version or pip3 --version returns pip 18.1 from c:\users\adria\appdata\local\programs\python\python37-32\lib\site-packages\pip (python 3.7).
How do I solve this problem?
Go to anaconda cloud then search mayavi then, in the python console, tape
conda install -c conda-forge mayavi
Perhaps before you have to install VTK module with
conda install -c conda-forge vtk
Then restart the console, and enjoy!

Categories

Resources