Wednesday, December 25, 2024

python – How ought to I set up Core Lightning if my VPS will not let me use pip set up?

openoms instructed this repair on Telegram to maintain utilizing pip:

sudo rm /usr/lib/python3.*/EXTERNALLY-MANAGED

Christian Decker added some context round Core Lightning’s use of Python in its construct course of:

Python shouldn’t be a runtime dependency, which is why it’s not
being listed as a direct dependency, however we use it for a wide range of
construct steps. The error you acquired is as a result of the pip setting is
owned by root because you put in it through the bundle supervisor. In case you
wish to set up the construct dependencies we strongly recommend utilizing a
virtualenv. Steps on find out how to set that up depend upon the OS, and your
Python setup, therefore why it’s left undocumented (it is not CLN
particular, and any documentation on find out how to create virtualenvs would
bitrot, and we will not be authoritative anyway, since it’s an exterior
venture). We simply must discover a good level to chop off the lengthy tail,
and for venv that was the place that felt proper.

Python dependency administration grew fairly organically, which explains the mess of various concepts and fashions being combined. Often you have got the system setting, which you’ll prolong by means of a consumer setting that will get overlaid. This doesn’t work nevertheless if a consumer bundle clashes with a system bundle. We appear to depend on relatively latest bundle variations, which will conflict, inflicting this error. A virtualenv (initialized with --no-site-packages) creates a clean web page with out bizarre mixtures of system and consumer packages.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles