Can't install spyder - python

I'm trying to install Spyder from pip install which I have done several times previously.
However, I can't seem to install it anymore. I get the following message when I try to install it.
EDIT: Full message added
Microsoft Windows [Version 10.0.18363.1256]
(c) 2019 Microsoft Corporation. All rights reserved.
C:\Users\MRCH.COWI>pip install spyder
Collecting spyder
Using cached spyder-4.2.1-py3-none-any.whl (10.9 MB)
Requirement already satisfied: qdarkstyle>=2.8 in c:\program files\python37\lib\site-packages (from spyder) (2.8)
Requirement already satisfied: pyqt5<5.13 in c:\program files\python37\lib\site-packages (from spyder) (5.12.3)
Requirement already satisfied: qtpy>=1.5.0 in c:\program files\python37\lib\site-packages (from spyder) (1.9.0)
Requirement already satisfied: nbconvert>=4.0 in c:\program files\python37\lib\site-packages (from spyder) (5.6.1)
Requirement already satisfied: intervaltree>=3.0.2 in c:\program files\python37\lib\site-packages (from spyder) (3.0.2)
Requirement already satisfied: paramiko>=2.4.0 in c:\program files\python37\lib\site-packages (from spyder) (2.7.1)
Requirement already satisfied: atomicwrites>=1.2.0 in c:\program files\python37\lib\site-packages (from spyder) (1.3.0)
Requirement already satisfied: sphinx>=0.6.6 in c:\program files\python37\lib\site-packages (from spyder) (2.3.1)
Requirement already satisfied: diff-match-patch>=20181111 in c:\program files\python37\lib\site-packages (from spyder) (20181111)
Requirement already satisfied: cloudpickle>=0.5.0 in c:\program files\python37\lib\site-packages (from spyder) (1.2.2)
Requirement already satisfied: pyqtwebengine<5.13 in c:\program files\python37\lib\site-packages (from spyder) (5.12.1)
Requirement already satisfied: qtawesome>=0.5.7 in c:\program files\python37\lib\site-packages (from spyder) (0.6.1)
Requirement already satisfied: psutil>=5.3 in c:\program files\python37\lib\site-packages (from spyder) (5.6.7)
Requirement already satisfied: numpydoc>=0.6.0 in c:\program files\python37\lib\site-packages (from spyder) (0.9.2)
Requirement already satisfied: pexpect>=4.4.0 in c:\program files\python37\lib\site-packages (from spyder) (4.8.0)
Requirement already satisfied: pylint>=1.0 in c:\program files\python37\lib\site-packages (from spyder) (2.4.4)
Requirement already satisfied: keyring>=17.0.0 in c:\program files\python37\lib\site-packages (from spyder) (21.1.0)
Requirement already satisfied: pickleshare>=0.4 in c:\program files\python37\lib\site-packages (from spyder) (0.7.5)
Requirement already satisfied: setuptools>=39.0.0 in c:\program files\python37\lib\site-packages (from spyder) (40.8.0)
Requirement already satisfied: pygments>=2.0 in c:\program files\python37\lib\site-packages (from spyder) (2.5.2)
Requirement already satisfied: jsonschema>=3.2.0 in c:\program files\python37\lib\site-packages (from spyder) (3.2.0)
Requirement already satisfied: pyzmq>=17 in c:\program files\python37\lib\site-packages (from spyder) (18.1.1)
Requirement already satisfied: ipython>=7.6.0 in c:\program files\python37\lib\site-packages (from spyder) (7.12.0)
Requirement already satisfied: chardet>=2.0.0 in c:\program files\python37\lib\site-packages (from spyder) (3.0.4)
Collecting jedi==0.17.2
Using cached jedi-0.17.2-py2.py3-none-any.whl (1.4 MB)
Collecting parso==0.7.0
Using cached parso-0.7.0-py2.py3-none-any.whl (100 kB)
Requirement already satisfied: sortedcontainers<3.0,>=2.0 in c:\program files\python37\lib\site-packages (from intervaltree>=3.0.2->spyder) (2.1.0)
Requirement already satisfied: traitlets>=4.2 in c:\program files\python37\lib\site-packages (from ipython>=7.6.0->spyder) (4.3.3)
Requirement already satisfied: decorator in c:\program files\python37\lib\site-packages (from ipython>=7.6.0->spyder) (4.4.1)
Requirement already satisfied: colorama in c:\program files\python37\lib\site-packages (from ipython>=7.6.0->spyder) (0.4.3)
Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in c:\program files\python37\lib\site-packages (from ipython>=7.6.0->spyder) (3.0.3)
Requirement already satisfied: backcall in c:\program files\python37\lib\site-packages (from ipython>=7.6.0->spyder) (0.1.0)
Requirement already satisfied: importlib-metadata in c:\program files\python37\lib\site-packages (from jsonschema>=3.2.0->spyder) (1.5.0)
Requirement already satisfied: attrs>=17.4.0 in c:\program files\python37\lib\site-packages (from jsonschema>=3.2.0->spyder) (19.3.0)
Requirement already satisfied: pyrsistent>=0.14.0 in c:\program files\python37\lib\site-packages (from jsonschema>=3.2.0->spyder) (0.15.7)
Requirement already satisfied: six>=1.11.0 in c:\program files\python37\lib\site-packages (from jsonschema>=3.2.0->spyder) (1.14.0)
Requirement already satisfied: pywin32-ctypes!=0.1.0,!=0.1.1 in c:\program files\python37\lib\site-packages (from keyring>=17.0.0->spyder) (0.2.0)
Requirement already satisfied: defusedxml in c:\program files\python37\lib\site-packages (from nbconvert>=4.0->spyder) (0.6.0)
Requirement already satisfied: bleach in c:\program files\python37\lib\site-packages (from nbconvert>=4.0->spyder) (3.1.0)
Requirement already satisfied: jinja2>=2.4 in c:\program files\python37\lib\site-packages (from nbconvert>=4.0->spyder) (2.11.1)
Requirement already satisfied: pandocfilters>=1.4.1 in c:\program files\python37\lib\site-packages (from nbconvert>=4.0->spyder) (1.4.2)
Requirement already satisfied: nbformat>=4.4 in c:\program files\python37\lib\site-packages (from nbconvert>=4.0->spyder) (5.0.4)
Requirement already satisfied: jupyter-core in c:\program files\python37\lib\site-packages (from nbconvert>=4.0->spyder) (4.6.1)
Requirement already satisfied: testpath in c:\program files\python37\lib\site-packages (from nbconvert>=4.0->spyder) (0.4.4)
Requirement already satisfied: mistune<2,>=0.8.1 in c:\program files\python37\lib\site-packages (from nbconvert>=4.0->spyder) (0.8.4)
Requirement already satisfied: entrypoints>=0.2.2 in c:\program files\python37\lib\site-packages (from nbconvert>=4.0->spyder) (0.3)
Requirement already satisfied: MarkupSafe>=0.23 in c:\program files\python37\lib\site-packages (from jinja2>=2.4->nbconvert>=4.0->spyder) (1.1.1)
Requirement already satisfied: ipython-genutils in c:\program files\python37\lib\site-packages (from nbformat>=4.4->nbconvert>=4.0->spyder) (0.2.0)
Requirement already satisfied: pynacl>=1.0.1 in c:\program files\python37\lib\site-packages (from paramiko>=2.4.0->spyder) (1.3.0)
Requirement already satisfied: cryptography>=2.5 in c:\program files\python37\lib\site-packages (from paramiko>=2.4.0->spyder) (2.8)
Requirement already satisfied: bcrypt>=3.1.3 in c:\program files\python37\lib\site-packages (from paramiko>=2.4.0->spyder) (3.1.7)
Requirement already satisfied: cffi>=1.1 in c:\program files\python37\lib\site-packages (from bcrypt>=3.1.3->paramiko>=2.4.0->spyder) (1.13.2)
Requirement already satisfied: pycparser in c:\program files\python37\lib\site-packages (from cffi>=1.1->bcrypt>=3.1.3->paramiko>=2.4.0->spyder) (2.19)
Requirement already satisfied: ptyprocess>=0.5 in c:\program files\python37\lib\site-packages (from pexpect>=4.4.0->spyder) (0.6.0)
Requirement already satisfied: wcwidth in c:\program files\python37\lib\site-packages (from prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0->ipython>=7.6.0->spyder) (0.1.8)
Requirement already satisfied: mccabe<0.7,>=0.6 in c:\program files\python37\lib\site-packages (from pylint>=1.0->spyder) (0.6.1)
Requirement already satisfied: isort<5,>=4.2.5 in c:\program files\python37\lib\site-packages (from pylint>=1.0->spyder) (4.3.21)
Requirement already satisfied: astroid<2.4,>=2.3.0 in c:\program files\python37\lib\site-packages (from pylint>=1.0->spyder) (2.3.3)
Requirement already satisfied: lazy-object-proxy==1.4.* in c:\program files\python37\lib\site-packages (from astroid<2.4,>=2.3.0->pylint>=1.0->spyder) (1.4.3)
Requirement already satisfied: wrapt==1.11.* in c:\program files\python37\lib\site-packages (from astroid<2.4,>=2.3.0->pylint>=1.0->spyder) (1.11.2)
Requirement already satisfied: typed-ast<1.5,>=1.4.0 in c:\program files\python37\lib\site-packages (from astroid<2.4,>=2.3.0->pylint>=1.0->spyder) (1.4.1)
Collecting pyls-black>=0.4.6
Using cached pyls_black-0.4.6-py3-none-any.whl (4.2 kB)
Requirement already satisfied: python-language-server in c:\program files\python37\lib\site-packages (from pyls-black>=0.4.6->spyder) (0.31.9)
Collecting black>=19.3b0
Using cached black-20.8b1.tar.gz (1.1 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Collecting click>=7.1.2
Using cached click-7.1.2-py2.py3-none-any.whl (82 kB)
Collecting mypy-extensions>=0.4.3
Using cached mypy_extensions-0.4.3-py2.py3-none-any.whl (4.5 kB)
Collecting pathspec<1,>=0.6
Using cached pathspec-0.8.1-py2.py3-none-any.whl (28 kB)
Collecting pyls-spyder>=0.3.0
Using cached pyls_spyder-0.3.0-py2.py3-none-any.whl (8.1 kB)
Requirement already satisfied: PyQt5_sip<13,>=4.19.14 in c:\program files\python37\lib\site-packages (from pyqt5<5.13->spyder) (12.7.1)
Collecting python-language-server[all]<1.0.0,>=0.36.2
Using cached python_language_server-0.36.2-py2.py3-none-any.whl (51 kB)
Requirement already satisfied: pluggy in c:\program files\python37\lib\site-packages (from python-language-server[all]<1.0.0,>=0.36.2->spyder) (0.13.1)
Collecting python-jsonrpc-server>=0.4.0
Using cached python_jsonrpc_server-0.4.0-py3-none-any.whl (8.9 kB)
Requirement already satisfied: autopep8 in c:\program files\python37\lib\site-packages (from python-language-server[all]<1.0.0,>=0.36.2->spyder) (1.5)
Requirement already satisfied: yapf in c:\program files\python37\lib\site-packages (from python-language-server[all]<1.0.0,>=0.36.2->spyder) (0.29.0)
Requirement already satisfied: pydocstyle>=2.0.0 in c:\program files\python37\lib\site-packages (from python-language-server[all]<1.0.0,>=0.36.2->spyder) (5.0.2)
Requirement already satisfied: rope>=0.10.5 in c:\program files\python37\lib\site-packages (from python-language-server[all]<1.0.0,>=0.36.2->spyder) (0.16.0)
Collecting flake8>=3.8.0
Using cached flake8-3.8.4-py2.py3-none-any.whl (72 kB)
Collecting pycodestyle<2.7.0,>=2.6.0
Using cached pycodestyle-2.6.0-py2.py3-none-any.whl (41 kB)
Requirement already satisfied: snowballstemmer in c:\program files\python37\lib\site-packages (from pydocstyle>=2.0.0->python-language-server[all]<1.0.0,>=0.36.2->spyder) (2.0.0)
Collecting pyflakes<2.3.0,>=2.2.0
Using cached pyflakes-2.2.0-py2.py3-none-any.whl (66 kB)
Collecting pylint>=1.0
Using cached pylint-2.6.0-py3-none-any.whl (325 kB)
Using cached pylint-2.5.3-py3-none-any.whl (324 kB)
Using cached pylint-2.5.2-py3-none-any.whl (324 kB)
Using cached pylint-2.5.1-py3-none-any.whl (324 kB)
Using cached pylint-2.5.0-py3-none-any.whl (324 kB)
INFO: pip is looking at multiple versions of pyflakes to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of pydocstyle to determine which version is compatible with other requirements. This could take a while.
Collecting pydocstyle>=2.0.0
Using cached pydocstyle-5.1.1-py3-none-any.whl (35 kB)
Using cached pydocstyle-5.1.0-py3-none-any.whl (35 kB)
Using cached pydocstyle-5.0.1-py3-none-any.whl (35 kB)
Using cached pydocstyle-5.0.0-py3-none-any.whl (35 kB)
Using cached pydocstyle-4.0.1-py3-none-any.whl (33 kB)
Using cached pydocstyle-4.0.0-py3-none-any.whl (33 kB)
Using cached pydocstyle-3.0.0-py3-none-any.whl (33 kB)
INFO: pip is looking at multiple versions of pyflakes to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of pydocstyle to determine which version is compatible with other requirements. This could take a while.
Using cached pydocstyle-2.1.1-py3-none-any.whl (31 kB)
Using cached pydocstyle-2.1.0-py2.py3-none-any.whl (31 kB)
Using cached pydocstyle-2.0.0-py2.py3-none-any.whl (30 kB)
INFO: pip is looking at multiple versions of pycodestyle to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of flake8 to determine which version is compatible with other requirements. This could take a while.
Collecting flake8>=3.8.0
Using cached flake8-3.8.3-py2.py3-none-any.whl (72 kB)
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what happened here: https://pip.pypa.io/surveys/backtracking
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what happened here: https://pip.pypa.io/surveys/backtracking
Using cached flake8-3.8.2-py2.py3-none-any.whl (72 kB)
Using cached flake8-3.8.1-py2.py3-none-any.whl (72 kB)
Using cached flake8-3.8.0-py2.py3-none-any.whl (72 kB)
INFO: pip is looking at multiple versions of python-language-server[all] to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of python-jsonrpc-server to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of python-language-server to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of pyrsistent to determine which version is compatible with other requirements. This could take a while.
Collecting pyrsistent>=0.14.0
Using cached pyrsistent-0.17.3.tar.gz (106 kB)
INFO: pip is looking at multiple versions of pycodestyle to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of flake8 to determine which version is compatible with other requirements. This could take a while.
Using cached pyrsistent-0.16.1.tar.gz (108 kB)
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what happened here: https://pip.pypa.io/surveys/backtracking
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what happened here: https://pip.pypa.io/surveys/backtracking
Using cached pyrsistent-0.16.0.tar.gz (108 kB)
Using cached pyrsistent-0.15.6.tar.gz (107 kB)
Using cached pyrsistent-0.15.5.tar.gz (107 kB)
Using cached pyrsistent-0.15.4.tar.gz (107 kB)
Using cached pyrsistent-0.15.3.tar.gz (106 kB)
INFO: pip is looking at multiple versions of python-language-server[all] to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of python-jsonrpc-server to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of python-language-server to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of pyrsistent to determine which version is compatible with other requirements. This could take a while.
Using cached pyrsistent-0.15.2.tar.gz (106 kB)
Using cached pyrsistent-0.15.1.tar.gz (106 kB)
Using cached pyrsistent-0.15.0.tar.gz (105 kB)
Using cached pyrsistent-0.14.11.tar.gz (104 kB)
Using cached pyrsistent-0.14.10.tar.gz (104 kB)
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what happened here: https://pip.pypa.io/surveys/backtracking
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what happened here: https://pip.pypa.io/surveys/backtracking
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what happened here: https://pip.pypa.io/surveys/backtracking
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what happened here: https://pip.pypa.io/surveys/backtracking
Using cached pyrsistent-0.14.9.tar.gz (104 kB)
Using cached pyrsistent-0.14.8.tar.gz (104 kB)
Using cached pyrsistent-0.14.7.tar.gz (103 kB)
Using cached pyrsistent-0.14.6.tar.gz (100 kB)
Using cached pyrsistent-0.14.5.tar.gz (99 kB)
Using cached pyrsistent-0.14.4.tar.gz (98 kB)
Using cached pyrsistent-0.14.3.tar.gz (98 kB)
Using cached pyrsistent-0.14.2.tar.gz (97 kB)
Using cached pyrsistent-0.14.1.tar.gz (97 kB)
Using cached pyrsistent-0.14.0.tar.gz (96 kB)
INFO: pip is looking at multiple versions of pyqtwebengine to determine which version is compatible with other requirements. This could take a while.
Collecting pyqtwebengine<5.13
Using cached PyQtWebEngine-5.12-5.12.1-cp35.cp36.cp37.cp38-none-win_amd64.whl (47.8 MB)
INFO: pip is looking at multiple versions of pyqt5-sip to determine which version is compatible with other requirements. This could take a while.
Collecting PyQt5_sip<13,>=4.19.14
Using cached PyQt5_sip-12.8.1-cp37-cp37m-win_amd64.whl (62 kB)
Using cached PyQt5_sip-12.8.0-cp37-cp37m-win_amd64.whl (62 kB)
Using cached PyQt5_sip-12.7.2-cp37-cp37m-win_amd64.whl (58 kB)
INFO: pip is looking at multiple versions of pyqtwebengine to determine which version is compatible with other requirements. This could take a while.
Using cached PyQt5_sip-12.7.0-cp37-cp37m-win_amd64.whl (58 kB)
Using cached PyQt5_sip-4.19.19-cp37-none-win_amd64.whl (52 kB)
Using cached PyQt5_sip-4.19.18-cp37-none-win_amd64.whl (51 kB)
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what happened here: https://pip.pypa.io/surveys/backtracking
Using cached PyQt5_sip-4.19.17-cp37-none-win_amd64.whl (51 kB)
INFO: pip is looking at multiple versions of pyqt5-sip to determine which version is compatible with other requirements. This could take a while.
Using cached PyQt5_sip-4.19.15-cp37-none-win_amd64.whl (51 kB)
Using cached PyQt5_sip-4.19.14-cp37-none-win_amd64.whl (51 kB)
INFO: pip is looking at multiple versions of pyqt5 to determine which version is compatible with other requirements. This could take a while.
Collecting pyqt5<5.13
Using cached PyQt5-5.12.2-5.12.3-cp35.cp36.cp37.cp38-none-win_amd64.whl (47.5 MB)
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what happened here: https://pip.pypa.io/surveys/backtracking
Using cached PyQt5-5.12.1-5.12.2-cp35.cp36.cp37.cp38-none-win_amd64.whl (47.4 MB)
Using cached PyQt5-5.12-5.12.1_a-cp35.cp36.cp37.cp38-none-win_amd64.whl (49.4 MB)
Using cached PyQt5-5.11.3-5.11.2-cp35.cp36.cp37.cp38-none-win_amd64.whl (93.4 MB)
ERROR: Exception:
Traceback (most recent call last):
File "C:\Users\MRCH.COWI\AppData\Roaming\Python\Python37\site-packages\pip\_internal\cli\base_command.py", line 224, in _main
status = self.run(options, args)
File "C:\Users\MRCH.COWI\AppData\Roaming\Python\Python37\site-packages\pip\_internal\cli\req_command.py", line 180, in wrapper
return func(self, options, args)
File "C:\Users\MRCH.COWI\AppData\Roaming\Python\Python37\site-packages\pip\_internal\commands\install.py", line 321, in run
reqs, check_supported_wheels=not options.target_dir
File "C:\Users\MRCH.COWI\AppData\Roaming\Python\Python37\site-packages\pip\_internal\resolution\resolvelib\resolver.py", line 122, in resolve
requirements, max_rounds=try_to_avoid_resolution_too_deep,
File "C:\Users\MRCH.COWI\AppData\Roaming\Python\Python37\site-packages\pip\_vendor\resolvelib\resolvers.py", line 445, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "C:\Users\MRCH.COWI\AppData\Roaming\Python\Python37\site-packages\pip\_vendor\resolvelib\resolvers.py", line 325, in resolve
for item in self.state.criteria.items()
File "C:\Users\MRCH.COWI\AppData\Roaming\Python\Python37\site-packages\pip\_vendor\resolvelib\resolvers.py", line 326, in <listcomp>
if not self._is_current_pin_satisfying(*item)
File "C:\Users\MRCH.COWI\AppData\Roaming\Python\Python37\site-packages\pip\_vendor\resolvelib\resolvers.py", line 193, in _is_current_pin_satisfying
for r in criterion.iter_requirement()
AttributeError: 'NoneType' object has no attribute 'iter_requirement'
C:\Users\MRCH.COWI>
I'm using Python 3.7.4
.........................................................................................................

Install pyqt5:
pip install pyqt5
Install spyder:
pip install spyder
If that doesn't work, try using pip3.

I ended up uninstalling the entire Python directory and installing Python 3.9 instead. Now I can install Spyder again.

Related

while installing mu editor, i get error metadata-generation-failed and error subprocess-exited-with-error. I've updated pip, am running python 3.10.4

Defaulting to user installation because normal site-packages is not
writeable Requirement already satisfied: mu-editor in
./.local/lib/python3.10/site-packages (1.0.3) Requirement already
satisfied: pycodestyle==2.4.0 in ./.local/lib/python3.10/site-packages
(from mu-editor) (2.4.0) Requirement already satisfied:
qtconsole==4.3.1 in ./.local/lib/python3.10/site-packages (from
mu-editor) (4.3.1) Requirement already satisfied: PyQtChart==5.14.0 in
./.local/lib/python3.10/site-packages (from mu-editor) (5.14.0)
Requirement already satisfied: gpiozero>=1.4.1 in
./.local/lib/python3.10/site-packages (from mu-editor) (1.6.2)
Requirement already satisfied: Pillow>=5.2.0 in
/usr/lib/python3/dist-packages (from mu-editor) (9.0.1) Requirement
already satisfied: requests>=2.19.1 in /usr/lib/python3/dist-packages
(from mu-editor) (2.25.1) Requirement already satisfied: semver>=2.8.0
in ./.local/lib/python3.10/site-packages (from mu-editor) (2.13.0)
Collecting pgzero==1.2 Using cached pgzero-1.2-py3-none-any.whl (69
kB) Collecting pyqt5==5.14.1 Using cached
PyQt5-5.14.1-5.14.1-cp35.cp36.cp37.cp38-abi3-manylinux2014_x86_64.whl
(63.5 MB) Requirement already satisfied: pyserial==3.4 in
./.local/lib/python3.10/site-packages (from mu-editor) (3.4)
Requirement already satisfied: qscintilla==2.11.4 in
./.local/lib/python3.10/site-packages (from mu-editor) (2.11.4)
Requirement already satisfied: pigpio>=1.40.post1 in
./.local/lib/python3.10/site-packages (from mu-editor) (1.78)
Requirement already satisfied: nudatus>=0.0.3 in
./.local/lib/python3.10/site-packages (from mu-editor) (0.0.5)
Requirement already satisfied: appdirs>=1.4.3 in
./.local/lib/python3.10/site-packages (from mu-editor) (1.4.4)
Requirement already satisfied: guizero>=1.1.0 in
./.local/lib/python3.10/site-packages (from mu-editor) (1.3.0)
Requirement already satisfied: matplotlib==2.2.2 in
./.local/lib/python3.10/site-packages (from mu-editor) (2.2.2)
Requirement already satisfied: pyflakes==2.0.0 in
./.local/lib/python3.10/site-packages (from mu-editor) (2.0.0)
Collecting kiwisolver>=1.0.1 Using cached
kiwisolver-1.4.2-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
(1.6 MB) Requirement already satisfied: six>=1.10 in
/usr/lib/python3/dist-packages (from matplotlib==2.2.2->mu-editor)
(1.16.0) Requirement already satisfied:
pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in
/usr/lib/python3/dist-packages (from matplotlib==2.2.2->mu-editor)
(2.4.7) Collecting python-dateutil>=2.1 Using cached
python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB) Collecting
cycler>=0.10 Using cached cycler-0.11.0-py3-none-any.whl (6.4 kB)
Requirement already satisfied: pytz in /usr/lib/python3/dist-packages
(from matplotlib==2.2.2->mu-editor) (2022.1) Requirement already
satisfied: numpy>=1.7.1 in ./.local/lib/python3.10/site-packages (from
matplotlib==2.2.2->mu-editor) (1.22.3) Collecting pygame<2.0,>=1.9.2
Using cached pygame-1.9.6.tar.gz (3.2 MB) Preparing metadata
(setup.py) ... error error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [12 lines of output]
WARNING, No "Setup" File Exists, Running "buildconfig/config.py"
Using UNIX configuration...
/bin/sh: 1: sdl-config: not found
/bin/sh: 1: sdl-config: not found
/bin/sh: 1: sdl-config: not found
Unable to run "sdl-config". Please make sure a development version of SDL is installed.
Hunting dependencies...
WARNING: "sdl-config" failed!
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed
× Encountered error while generating package metadata. ╰─> See above
for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
I've installed python 3.10.4, reinstalled pip3 and updated it (tried to at least).
I've followed the instructions on mu's website.
I'm using Pop!_OS 22.04 LTS x86_64. I recently updated my pop os from 20.04 LTS. After updating, mu-editor worked for a while and now I got this problem. I'm assuming it's due to my messing up some sort of code.
Any help or suggestions r greatly appreciated!
I suggest either
try running with --use-deprecated=backtrack-on-build-failures for
example pip install pygames --use-deprecated=backtrack-on-build-failures
OR
Try this command which I got from another stackoverflow question
sudo apt-get install python-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libsmpeg-dev python-numpy subversion libportmidi-dev ffmpeg libswscale-dev libavformat-dev libavcodec-dev libfreetype6-dev Before running your commands

Python isn't running openai script after installing it with pip

I'm having an issue with my terminal while trying to run the openai scripts.
I install it using pip install openai and then when I try to run it typing openai I have the error: openai : The term 'openai' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of At line:1 char:1.
But the installation is always successfull:
WARNING: Ignoring invalid distribution -ip (c:\python39\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python39\lib\site-packages)
Collecting openai
Using cached openai-0.11.0.tar.gz (150 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: requests>=2.20 in c:\users\igor\appdata\roaming\python\python39\site-packages (from openai) (2.26.0)
Requirement already satisfied: tqdm in c:\users\igor\appdata\roaming\python\python39\site-packages (from openai) (4.62.3)
Requirement already satisfied: pandas>=1.2.3 in c:\python39\lib\site-packages (from openai) (1.3.4)
Requirement already satisfied: pandas-stubs>=1.1.0.11 in c:\users\igor\appdata\roaming\python\python39\site-packages (from openai) (1.2.0.38)
Requirement already satisfied: openpyxl>=3.0.7 in c:\users\igor\appdata\roaming\python\python39\site-packages (from openai) (3.0.9)
Requirement already satisfied: et-xmlfile in c:\python39\lib\site-packages (from openpyxl>=3.0.7->openai) (1.1.0)
Requirement already satisfied: python-dateutil>=2.7.3 in c:\python39\lib\site-packages (from pandas>=1.2.3->openai) (2.8.2)
Requirement already satisfied: pytz>=2017.3 in c:\python39\lib\site-packages (from pandas>=1.2.3->openai) (2021.3)
Requirement already satisfied: numpy>=1.17.3 in c:\python39\lib\site-packages (from pandas>=1.2.3->openai) (1.21.4)
Requirement already satisfied: charset-normalizer~=2.0.0 in c:\python39\lib\site-packages (from requests>=2.20->openai) (2.0.7)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\python39\lib\site-packages (from requests>=2.20->openai) (1.26.7)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\igor\appdata\roaming\python\python39\site-packages (from requests>=2.20->openai) (2021.10.8)
Requirement already satisfied: idna<4,>=2.5 in c:\python39\lib\site-packages (from requests>=2.20->openai) (3.3)
Requirement already satisfied: colorama in c:\users\igor\appdata\roaming\python\python39\site-packages (from tqdm->openai) (0.4.4)
Requirement already satisfied: six>=1.5 in c:\python39\lib\site-packages (from python-dateutil>=2.7.3->pandas>=1.2.3->openai) (1.16.0)
Using legacy 'setup.py install' for openai, since package 'wheel' is not installed.
WARNING: Ignoring invalid distribution -ip (c:\python39\lib\site-packages)
Installing collected packages: openai
Running setup.py install for openai ... done
Successfully installed openai-0.11.0
WARNING: Ignoring invalid distribution -ip (c:\python39\lib\site-packages)
I had this issue on powershell and on git bash either.
make sure to use Linux, as everything of OpenAI is based on linux.
I hope it helps
-- random stranger ;)

How to downgrade python version without affecting other files

When I am installing tensorflow in python 3.8.0 then it shows error. How to downgrade python version without affecting other files.
(base) C:\Users\Akanksha-Lab-PC>pip uninstall python 3.8.4
WARNING: Skipping python as it is not installed.
WARNING: Skipping 3.8.4 as it is not installed.
(base) C:\Users\Akanksha-Lab-PC>pip uninstall python-3.8.4
WARNING: Skipping python-3.8.4 as it is not installed.
(base) C:\Users\Akanksha-Lab-PC>make altinstall python-3.7
'make' is not recognized as an internal or external command,
operable program or batch file.
(base) C:\Users\Akanksha-Lab-PC>pip install python-3.7
ERROR: Could not find a version that satisfies the requirement python-3.7 (from versions: none)
ERROR: No matching distribution found for python-3.7
When I type the command pip show tensorflow it gives me this
(base) C:\Users\Akanksha-Lab-PC>python --version
Python 3.8.5
(base) C:\Users\Akanksha-Lab-PC>pip show tensorflow
WARNING: Package(s) not found: tensorflow
When I am installing tensorflow by using this command:
pip install tensorflow
it gives this error
(base) C:\Users\Akanksha-Lab-PC>pip install tensorflow
Collecting tensorflow
Using cached tensorflow-2.4.1-cp38-cp38-win_amd64.whl (370.7 MB)
Requirement already satisfied: six~=1.15.0 in c:\programdata\anaconda3\lib\site-packages (from tensorflow) (1.15.0)
Collecting astunparse~=1.6.3
Using cached astunparse-1.6.3-py2.py3-none-any.whl (12 kB)
Requirement already satisfied: protobuf>=3.9.2 in c:\programdata\anaconda3\lib\site-packages (from tensorflow) (3.14.0)
Requirement already satisfied: typing-extensions~=3.7.4 in c:\programdata\anaconda3\lib\site-packages (from tensorflow) (3.7.4.3)
Requirement already satisfied: wheel~=0.35 in c:\programdata\anaconda3\lib\site-packages (from tensorflow) (0.35.1)
Requirement already satisfied: numpy~=1.19.2 in c:\programdata\anaconda3\lib\site-packages (from tensorflow) (1.19.2)
Processing c:\users\akanksha-lab-pc\appdata\local\pip\cache\wheels\a0\16\9c\5473df82468f958445479c59e784896fa24f4a5fc024b0f501\termcolor-1.1.0-py3-none-any.whl
Requirement already satisfied: flatbuffers~=1.12.0 in c:\programdata\anaconda3\lib\site-packages (from tensorflow) (1.12)
Collecting absl-py~=0.10
Using cached absl_py-0.11.0-py3-none-any.whl (127 kB)
Requirement already satisfied: h5py~=2.10.0 in c:\programdata\anaconda3\lib\site-packages (from tensorflow) (2.10.0)
Collecting keras-preprocessing~=1.1.2
Using cached Keras_Preprocessing-1.1.2-py2.py3-none-any.whl (42 kB)
Requirement already satisfied: google-pasta~=0.2 in c:\programdata\anaconda3\lib\site-packages (from tensorflow) (0.2.0)
Collecting gast==0.3.3
Using cached gast-0.3.3-py2.py3-none-any.whl (9.7 kB)
Collecting grpcio~=1.32.0
Using cached grpcio-1.32.0-cp38-cp38-win_amd64.whl (2.6 MB)
Collecting tensorflow-estimator<2.5.0,>=2.4.0
Using cached tensorflow_estimator-2.4.0-py2.py3-none-any.whl (462 kB)
Collecting tensorboard~=2.4
Using cached tensorboard-2.4.1-py3-none-any.whl (10.6 MB)
Collecting opt-einsum~=3.3.0
Using cached opt_einsum-3.3.0-py3-none-any.whl (65 kB)
Processing c:\users\akanksha-lab-pc\appdata\local\pip\cache\wheels\5f\fd\9e\b6cf5890494cb8ef0b5eaff72e5d55a70fb56316007d6dfe73\wrapt-1.12.1-py3-none-any.whl
Collecting google-auth-oauthlib<0.5,>=0.4.1
Using cached google_auth_oauthlib-0.4.2-py2.py3-none-any.whl (18 kB)
Requirement already satisfied: setuptools>=41.0.0 in c:\programdata\anaconda3\lib\site-packages (from tensorboard~=2.4->tensorflow) (50.3.1.post20201107)
Collecting markdown>=2.6.8
Using cached Markdown-3.3.3-py3-none-any.whl (96 kB)
Collecting google-auth<2,>=1.6.3
Using cached google_auth-1.24.0-py2.py3-none-any.whl (114 kB)
Collecting tensorboard-plugin-wit>=1.6.0
Using cached tensorboard_plugin_wit-1.8.0-py3-none-any.whl (781 kB)
Requirement already satisfied: requests<3,>=2.21.0 in c:\programdata\anaconda3\lib\site-packages (from tensorboard~=2.4->tensorflow) (2.24.0)
Requirement already satisfied: werkzeug>=0.11.15 in c:\programdata\anaconda3\lib\site-packages (from tensorboard~=2.4->tensorflow) (1.0.1)
Collecting requests-oauthlib>=0.7.0
Using cached requests_oauthlib-1.3.0-py2.py3-none-any.whl (23 kB)
Collecting pyasn1-modules>=0.2.1
Using cached pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)
Collecting cachetools<5.0,>=2.0.0
Using cached cachetools-4.2.1-py3-none-any.whl (12 kB)
Collecting rsa<5,>=3.1.4; python_version >= "3.6"
Using cached rsa-4.7-py3-none-any.whl (34 kB)
Requirement already satisfied: certifi>=2017.4.17 in c:\programdata\anaconda3\lib\site-packages (from requests<3,>=2.21.0->tensorboard~=2.4->tensorflow) (2020.6.20)
Requirement already satisfied: idna<3,>=2.5 in c:\programdata\anaconda3\lib\site-packages (from requests<3,>=2.21.0->tensorboard~=2.4->tensorflow) (2.10)
Requirement already satisfied: chardet<4,>=3.0.2 in c:\programdata\anaconda3\lib\site-packages (from requests<3,>=2.21.0->tensorboard~=2.4->tensorflow) (3.0.4)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in c:\programdata\anaconda3\lib\site-packages (from requests<3,>=2.21.0->tensorboard~=2.4->tensorflow) (1.25.11)
Collecting oauthlib>=3.0.0
Using cached oauthlib-3.1.0-py2.py3-none-any.whl (147 kB)
Collecting pyasn1<0.5.0,>=0.4.6
Using cached pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
Installing collected packages: astunparse, termcolor, absl-py, keras-preprocessing, gast, grpcio, tensorflow-estimator, oauthlib, requests-oauthlib, pyasn1, pyasn1-modules, cachetools, rsa, google-auth, google-auth-oauthlib, markdown, tensorboard-plugin-wit, tensorboard, opt-einsum, wrapt, tensorflow
Attempting uninstall: wrapt
Found existing installation: wrapt 1.11.2
Uninstalling wrapt-1.11.2:
ERROR: Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'c:\\programdata\\anaconda3\\lib\\site-packages\\wrapt-1.11.2.dist-info\\INSTALLER'
Consider using the `--user` option or check the permissions.
Can anybody tell me the solution of this?
pip uninstall python 3.8.4
This command will never work. pip is a python package manager, i.e. for an installation of python, pip is responsible to install modules to that python installation. It does not manage the installation of python itself
To your error with the tensorflow installation:
pip install tensorflow
and
ERROR: Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'c:\\programdata\\anaconda3\\lib\\site-packages\\wrapt-1.11.2.dist-info\\INSTALLER'
This is caused by the fact that the c:\\programdata is write protected from non-admin users, so in order for your command to succeed, you should run your cmd as admin.
BUT:
It seems like you have installed anaconda and are trying to install tensorflow into the base environment using pip. Pip in turn tries to uninstall some already existing package, probably to fulfill the tensorflow requirements. But the already existing package are probably installed by conda when you first installed anaconda, so you ware getting into dangerous waters here and you are risking to break your base environment, so two suggestions:
Create a new environment conda create -n tf tensorflow-gpu
Use conda commands to install tensorflow. conda install tensorflow-gpu will give you tensorflow
To your other question:
How to downgrade python
The solution is also to use a conda command:
conda install python=<some version>
or, even better, simply create an environment with the version you need:
conda create -n py37 python=3.7
would for example give you an environment called py37 with python3.7 installed. It can be activated and used with
conda activate py37

Not able to install locust on windows

I installed locust using the command on windows
py -m pip install locustio
This is the output I got
Collecting locustio
Using cached https://files.pythonhosted.org/packages/98/12/60351b28a00c76d36022d79bead7dc217e9e49cddd7091cb164319196323/locustio-0.11.0-py2.py3-none-any.whl
Collecting gevent>=1.2.2 (from locustio)
Downloading https://files.pythonhosted.org/packages/8a/dd/417aad4e69fa7f8882534b778c46cb28eb0421ffa1e924ec3b4efcfcc81f/gevent-1.4.0-cp37-cp37m-win_amd64.whl (3.0MB)
100% |████████████████████████████████| 3.0MB 356kB/s
Requirement already satisfied: requests>=2.9.1 in c:\python37\lib\site-packages (from locustio) (2.22.0)
Collecting six>=1.10.0 (from locustio)
Using cached https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Collecting msgpack>=0.4.2 (from locustio)
Downloading https://files.pythonhosted.org/packages/d1/67/476640810609471e0f3a32c9f4388bf1318b773d0a64b116305d3b604dca/msgpack-0.6.1-cp37-cp37m-win_amd64.whl (68kB)
100% |████████████████████████████████| 71kB 354kB/s
Collecting flask>=0.10.1 (from locustio)
Using cached https://files.pythonhosted.org/packages/9b/93/628509b8d5dc749656a9641f4caf13540e2cdec85276964ff8f43bbb1d3b/Flask-1.1.1-py2.py3-none-any.whl
Collecting pyzmq>=16.0.2 (from locustio)
Downloading https://files.pythonhosted.org/packages/62/15/27d1655af3f96c59073073b03022c6a0c1cbfa583c036b46ae8c33d51ee6/pyzmq-18.1.0-cp37-cp37m-win_amd64.whl (1.0MB)
100% |████████████████████████████████| 1.1MB 314kB/s
Collecting cffi>=1.11.5; sys_platform == "win32" and platform_python_implementation == "CPython" (from gevent>=1.2.2->locustio)
Downloading https://files.pythonhosted.org/packages/2f/ad/9722b7752fdd88c858be57b47f41d1049b5fb0ab79caf0ab11407945c1a7/cffi-1.12.3-cp37-cp37m-win_amd64.whl (171kB)
100% |████████████████████████████████| 174kB 108kB/s
Collecting greenlet>=0.4.14; platform_python_implementation == "CPython" (from gevent>=1.2.2->locustio)
Downloading https://files.pythonhosted.org/packages/90/a3/da8593df08ee2efeb86ccf3201508a1fd2a3749e2735b7cadb7dd00416c6/greenlet-0.4.15-cp37-cp37m-win_amd64.whl
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in c:\python37\lib\site-packages (from requests>=2.9.1->locustio) (1.25.3)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\python37\lib\site-packages (from requests>=2.9.1->locustio) (3.0.4)
Requirement already satisfied: certifi>=2017.4.17 in c:\python37\lib\site-packages (from requests>=2.9.1->locustio) (2019.6.16)
Requirement already satisfied: idna<2.9,>=2.5 in c:\python37\lib\site-packages (from requests>=2.9.1->locustio) (2.8)
Collecting itsdangerous>=0.24 (from flask>=0.10.1->locustio)
Using cached https://files.pythonhosted.org/packages/76/ae/44b03b253d6fade317f32c24d100b3b35c2239807046a4c953c7b89fa49e/itsdangerous-1.1.0-py2.py3-none-any.whl
Collecting Jinja2>=2.10.1 (from flask>=0.10.1->locustio)
Using cached https://files.pythonhosted.org/packages/1d/e7/fd8b501e7a6dfe492a433deb7b9d833d39ca74916fa8bc63dd1a4947a671/Jinja2-2.10.1-py2.py3-none-any.whl
Collecting Werkzeug>=0.15 (from flask>=0.10.1->locustio)
Using cached https://files.pythonhosted.org/packages/d1/ab/d3bed6b92042622d24decc7aadc8877badf18aeca1571045840ad4956d3f/Werkzeug-0.15.5-py2.py3-none-any.whl
Collecting click>=5.1 (from flask>=0.10.1->locustio)
Using cached https://files.pythonhosted.org/packages/fa/37/45185cb5abbc30d7257104c434fe0b07e5a195a6847506c074527aa599ec/Click-7.0-py2.py3-none-any.whl
Collecting pycparser (from cffi>=1.11.5; sys_platform == "win32" and platform_python_implementation == "CPython"->gevent>=1.2.2->locustio)
Using cached https://files.pythonhosted.org/packages/68/9e/49196946aee219aead1290e00d1e7fdeab8567783e83e1b9ab5585e6206a/pycparser-2.19.tar.gz
Collecting MarkupSafe>=0.23 (from Jinja2>=2.10.1->flask>=0.10.1->locustio)
Downloading https://files.pythonhosted.org/packages/65/c6/2399700d236d1dd681af8aebff1725558cddfd6e43d7a5184a675f4711f5/MarkupSafe-1.1.1-cp37-cp37m-win_amd64.whl
Installing collected packages: pycparser, cffi, greenlet, gevent, six, msgpack, itsdangerous, MarkupSafe, Jinja2, Werkzeug, click, flask, pyzmq, locustio
Running setup.py install for pycparser ... done
The script flask.exe is installed in 'C:\Python37\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
The script locust.exe is installed in 'C:\Python37\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed Jinja2-2.10.1 MarkupSafe-1.1.1 Werkzeug-0
Now when I run the command locust --help
I get this on the command line
'locust' is not recognized as an internal or external command,
operable program or batch file
What could be the issue?Any help would be appreciated.
It seems that you have not added python 3.7 in the environment variable PATH. While this could have been achieved while installing python itself by checking the box to Add Python to the path. However, you can still add the location of Python37(where python37 is installed) by going to This PC--Right-Click->Properties-->Advanced System Settings-->Environment Variables tab-->System Variables--Edit Path & add value*.
I recently wrote steps for setting up locust on windows which might help -https://www.qamilestone.com/post/set-up-locust-on-windows
-Regards,
Anuradha

Why did a new version of a library get installed when the current one satisfied setup.py requirements?

I developed a package that uses matplotlib and so I've added the following line to my project's setup.py: (link to setup.py)
install_requires=[
'matplotlib>=2.0.0',
...other libs
]
However, when I tried to install my package into a virtualenv (via pip install) that already had matplolib version 2.1.0 installed, pip fetched and installed matplotlib version 3 regardless.
Is this expected behaviour or was there something else happening here?
Let's me try with a new empty virtualenv:
$ pip install matplotlib==2.1.0
Collecting matplotlib==2.1.0
Downloading https://files.pythonhosted.org/packages/6c/90/cf10bb2020d2811da811a49601f6eafcda022c6ccd296fd05aba093dee96/matplotlib-2.1.0.tar.gz (35.7MB)
100% |################################| 35.7MB 412kB/s
Collecting numpy>=1.7.1 (from matplotlib==2.1.0)
Using cached https://files.pythonhosted.org/packages/45/04/7a738e489a25a9638520a43a0cbfcc4be3ed056266e3110a330a905b36b5/numpy-1.16.2-cp35-cp35m-manylinux1_i686.whl
Collecting six>=1.10 (from matplotlib==2.1.0)
Using cached https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Collecting python-dateutil>=2.0 (from matplotlib==2.1.0)
Using cached https://files.pythonhosted.org/packages/41/17/c62faccbfbd163c7f57f3844689e3a78bae1f403648a6afb1d0866d87fbb/python_dateutil-2.8.0-py2.py3-none-any.whl
Collecting pytz (from matplotlib==2.1.0)
Downloading https://files.pythonhosted.org/packages/3d/73/fe30c2daaaa0713420d0382b16fbb761409f532c56bdcc514bf7b6262bb6/pytz-2019.1-py2.py3-none-any.whl (510kB)
100% |################################| 512kB 8.4MB/s
Collecting cycler>=0.10 (from matplotlib==2.1.0)
Using cached https://files.pythonhosted.org/packages/f7/d2/e07d3ebb2bd7af696440ce7e754c59dd546ffe1bbe732c8ab68b9c834e61/cycler-0.10.0-py2.py3-none-any.whl
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 (from matplotlib==2.1.0)
Downloading https://files.pythonhosted.org/packages/dd/d9/3ec19e966301a6e25769976999bd7bbe552016f0d32b577dc9d63d2e0c49/pyparsing-2.4.0-py2.py3-none-any.whl (62kB)
100% |################################| 71kB 10.8MB/s
Building wheels for collected packages: matplotlib
Building wheel for matplotlib (setup.py) ... done
Stored in directory: /home/phd/.cache/pip/wheels/a7/99/eb/b5566219ff5a526f98e802144d551feaa6b9340b3569bf86df
Successfully built matplotlib
Installing collected packages: numpy, six, python-dateutil, pytz, cycler, pyparsing, matplotlib
Successfully installed cycler-0.10.0 matplotlib-2.1.0 numpy-1.16.2 pyparsing-2.4.0 python-dateutil-2.8.0 pytz-2019.1 six-1.12.0
$ pip install dsutil
Collecting dsutil
Downloading https://files.pythonhosted.org/packages/17/58/ea2ccb9d071040eb5baa16b91327a6799decec6cfbfb12222388e37951d7/dsutil-0.1.1-py3-none-any.whl
Collecting scikit-learn>=0.20.0 (from dsutil)
Downloading https://files.pythonhosted.org/packages/ee/40/d5e691b6f103f5cdfbd2e1468cb172f2267224844330ffe494409ff6a3d5/scikit_learn-0.20.3-cp35-cp35m-manylinux1_i686.whl (4.9MB)
100% |################################| 4.9MB 4.3MB/s
Collecting pandas>=0.20.0 (from dsutil)
Downloading https://files.pythonhosted.org/packages/b1/57/069982c126d22bbdb4de71912eec2c1d8d303149a0d7b17927797479a0ed/pandas-0.24.2-cp35-cp35m-manylinux1_i686.whl (8.7MB)
100% |################################| 8.7MB 3.0MB/s
Requirement already satisfied: matplotlib>=2.0.0 in ./lib/python3.5/site-packages (from dsutil) (2.1.0)
Requirement already satisfied: numpy>=1.8.2 in ./lib/python3.5/site-packages (from scikit-learn>=0.20.0->dsutil) (1.16.2)
Collecting scipy>=0.13.3 (from scikit-learn>=0.20.0->dsutil)
Using cached https://files.pythonhosted.org/packages/19/7b/fdd034bbd1c266b05bc5c38bc91e6733c0e19bc9d3630fd32d869998b6e3/scipy-1.2.1-cp35-cp35m-manylinux1_i686.whl
Requirement already satisfied: python-dateutil>=2.5.0 in ./lib/python3.5/site-packages (from pandas>=0.20.0->dsutil) (2.8.0)
Requirement already satisfied: pytz>=2011k in ./lib/python3.5/site-packages (from pandas>=0.20.0->dsutil) (2019.1)
Requirement already satisfied: cycler>=0.10 in ./lib/python3.5/site-packages (from matplotlib>=2.0.0->dsutil) (0.10.0)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in ./lib/python3.5/site-packages (from matplotlib>=2.0.0->dsutil) (2.4.0)
Requirement already satisfied: six>=1.10 in ./lib/python3.5/site-packages (from matplotlib>=2.0.0->dsutil) (1.12.0)
Installing collected packages: scipy, scikit-learn, pandas, dsutil
Successfully installed dsutil-0.1.1 pandas-0.24.2 scikit-learn-0.20.3 scipy-1.2.1
See? matplotlib is not upgraded. Requirement already satisfied: matplotlib>=2.0.0. Can you show similar output of your terminal so we better understand what is going on?
Since you are specifying version to be >=2.0.0 (greater than 2.x.x), pip is installing latest version 3.x.x.
If you want to install version 2.0.0 then try using following code:
install_requires=[
'matplotlib==2.0.0'
]
Link for more information about versioning.

Categories

Resources