python-language-server: Error when running pip install: python setup.py egg_info" failed with error code 1
Have tries a couple of times now, but each time the result is the same:
pip install python-language-server
Collecting python-language-server
Downloading https://files.pythonhosted.org/packages/97/4c/b561716780888f8df9ed44b5e2b8b499258c31b7722d96da0002483fcdd2/python-language-server-0.19.0.tar.gz (55kB)
100% |████████████████████████████████| 61kB 150kB/s
Complete output from command python setup.py egg_info:
error in python-language-server setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Expected version spec in configparser; python_version<"3.0" at ; python_version<"3.0"
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/l1/mjqxjq7j08jb6z6_f7j5wcgw0000gn/T/pip-install-5Zy4C7/python-language-server/
Not sure if it is an XCode thing or perhaps the version of Python.
OS: macOS High Sierra v10.13.4 Python: 2.7.10
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 10
- Comments: 43 (3 by maintainers)
Please update setup tools
pip install -U setuptoolsI have a seem question when i install minepy ,and then i try they way you did ,finally success,thank u here is my code
sudo pip3 install --upgrade pip setuptools wheelsudo pip3 install minepyGreat… I faced a similar issue while installing mysqlclient for python sudo pip3 install MySQL client
Issue Resolved
Using conda, mine was fixed by executing:
conda install shapelyIf you are using pip try:pip install shapelyCan you try
brew install pythoninstead of use the Mac’s native one? There are some issues with it it would seem.In order to connect to mysql from python (mine 3.7) (import mysql.connector), I used ‘pip install mysql-connector-python’. Worked for me
@gatesn Did this previously, so I did
brew reinstall pythonHere is the output of that:
The did
echo 'export PATH="/usr/local/opt/sqlite/bin:$PATH"' >> ~/.zshrcThen did:
pip3 install --upgrade pip setuptools wheeland gotSo I did:
sudo pip3 install --upgrade pip setuptools wheeland gotThe directory ‘/Users/schalkneethling/Library/Caches/pip/http’ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag. The directory ‘/Users/schalkneethling/Library/Caches/pip’ or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag. Requirement already up-to-date: pip in /usr/local/lib/python3.6/site-packages (10.0.1) Requirement already up-to-date: setuptools in /usr/local/lib/python3.6/site-packages (39.2.0) Requirement already up-to-date: wheel in /usr/local/lib/python3.6/site-packages (0.31.1)
Then did
sudo pip3 install python-language-serverAnd it seems to have worked:
Oh ow, that is causing an even bigger error 😕
Any suggestions? Thanks a lot
I used pip install psycopg2-binary and it worked for me. thanks for the help guys.
with conda you can do this:
conda install py-xgboostI had the same issue with pip. Executing:
sudo python -m pip install scipyworked for meHmmm, tried
sudoandsudo -Hbut pretty much the same:Tried so many things and this finally worked. thank you!!
xcode-select --install worked for me
For me the problem was while installing psycopg2 Sollution: For python 2: sudo apt-get install libpq-dev python-dev For python 3 sudo apt-get install libpq-dev python3-dev
Thanks @shreyashk09 for me also ‘pip install mysql-connector-python’ worked
i am also this question
Hello can someone please help me with this. I have tried everything mentioned above but the error doesn’t go away.
Command “python setup.py egg_info” failed with error code 1 in /private/var/folders/8z/gpqdyh8x14ddw7p75n63wzkh0000gn/T/pip-install-45NKk3/psycopg2/
Please try “xcode-select --install” as mentioned by @bjxgcl
It also works for me.
Command “python setup.py egg_info” failed with error code 1 in /private/tmp/pip-install-44321s9y/distribute/
For me fixes after:
sudo apt-get install libpq-devoriginal
pip install --upgrade pip setuptools wheel worked for my case
I am trying to install pyradar in ubuntu 18.04 with python 3.6 using pip
Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-install-itd9hctk/pyradar/ is the error I am getting.
I have updated setuptools and development packages too. Please help