Open jsulopzs opened 5 years ago
Simple enough fix actually. Just not documented as of yet. Note: do not use sudo for the installation. If this is on a Windows box, not as 'administrator'. Doing so will fubar certain permissions for the user. So utilize "--user" as noted below and you should be good to go.
$python3 -m pip install --upgrade pip setuptools wheel Note: --user NOT required for above command.
$python3 -m pip install 'python-language-server[all]' --user Note: Run the above command until all errors have been resolved with example error below.
Errors in red noting a current python module requires a higher version where I made the module name where the error occurred on in bold in this example: "ERROR: autopep8 1.4.4 has requirement pycodestyle>=2.4.0, but you'll have pycodestyle 2.3.1 which is incompatible."
To correct this particular error, run $python3 -m pip install --upgrade pycodestyle --user Note: Substitute the module name from any error that you may see that may need upgrading.
Hope this resolves your issue.
Same issue here.
Even tried @wildhair2 's suggestion. No cigar
rchaud$ python3 -m pip install 'python-language-server[all]' Requirement already satisfied: python-language-server[all] in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (0.28.1) Requirement already satisfied: future>=0.14.0 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from python-language-server[all]) (0.17.1) Requirement already satisfied: pluggy in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from python-language-server[all]) (0.12.0) Requirement already satisfied: jedi!=0.14.0,<0.15,>=0.13.2 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from python-language-server[all]) (0.14.1) Requirement already satisfied: python-jsonrpc-server>=0.1.0 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from python-language-server[all]) (0.2.0) Requirement already satisfied: yapf; extra == "all" in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from python-language-server[all]) (0.28.0) Requirement already satisfied: pycodestyle; extra == "all" in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from python-language-server[all]) (2.5.0) Requirement already satisfied: pyflakes>=1.6.0; extra == "all" in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from python-language-server[all]) (2.1.1) Requirement already satisfied: autopep8; extra == "all" in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from python-language-server[all]) (1.4.4) Requirement already satisfied: mccabe; extra == "all" in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from python-language-server[all]) (0.6.1) Requirement already satisfied: pydocstyle>=2.0.0; extra == "all" in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from python-language-server[all]) (4.0.1) Requirement already satisfied: pylint; extra == "all" in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from python-language-server[all]) (2.3.1) Requirement already satisfied: rope>=0.10.5; extra == "all" in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from python-language-server[all]) (0.14.0) Requirement already satisfied: importlib-metadata>=0.12 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from pluggy->python-language-server[all]) (0.19) Requirement already satisfied: parso>=0.5.0 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from jedi!=0.14.0,<0.15,>=0.13.2->python-language-server[all]) (0.5.1) Requirement already satisfied: snowballstemmer in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from pydocstyle>=2.0.0; extra == "all"->python-language-server[all]) (1.9.0) Requirement already satisfied: astroid<3,>=2.2.0 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from pylint; extra == "all"->python-language-server[all]) (2.2.5) Requirement already satisfied: isort<5,>=4.2.5 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from pylint; extra == "all"->python-language-server[all]) (4.3.21) Requirement already satisfied: zipp>=0.5 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from importlib-metadata>=0.12->pluggy->python-language-server[all]) (0.5.2) Requirement already satisfied: wrapt in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from astroid<3,>=2.2.0->pylint; extra == "all"->python-language-server[all]) (1.11.2) Requirement already satisfied: lazy-object-proxy in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from astroid<3,>=2.2.0->pylint; extra == "all"->python-language-server[all]) (1.4.2) Requirement already satisfied: six in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from astroid<3,>=2.2.0->pylint; extra == "all"->python-language-server[all]) (1.12.0) Requirement already satisfied: typed-ast>=1.3.0; implementation_name == "cpython" in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from astroid<3,>=2.2.0->pylint; extra == "all"->python-language-server[all]) (1.4.0)
`
You can install it through python, not python3. That’ll work for both kernels.
ice-python doesn't work when installing with the code
python3 -m pip install python-language-server[all]
. It does withpython -m pip install python-language-server[all]
. I have faced this problem in other packages, could someone explain me why does this happen?As I have understood, pip is not going to be supported. So I'd rather prefer to install everything with pip3, instead of pip. Although, when I install a package with pip it's also available for python3 kernel.
I wouldn't like to have many duplicates, that's why I try to install all the packages with pip3. If you install with pip is the same than pip3? Problems like the one described above make me nuts to install packages with pip instead pip3.