I want to install python language server on my Mac. In the installation guide in pyls ' repo there's a tip saying that if I encounter an error "'install_requires' must be a string or list of strings"
, I need to upgrade setuptools . The problem is that i can't modify it because the directory is protected by MacOS. I've already tried downloading pyls ' source and changing the setup.py file so it'll import setuptools from another directory but it didn't help much. Any ideas?
You can either use sudo
sudo pip install --upgrade setuptools
or, you can create your own, personal, environment using virtual env:
https://virtualenv.pypa.io/en/stable/
where you can install your own versions of packages that can differ from packages installed system wide.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.