5 ms·
stop trying to use the system python for application development. You will break your OS and you will make your code machine specific. Go read up on Virtual E
by amias 2y ago
stop trying to use the system python for application development. You will break your OS and you will make your code machine specific. Go read up on Virtual Envs , you were the problem here.
- tupolef 2y agoAnd for the lazy ones, pipx uses Virtual Envs and can install most things from a path, an archive or a package name. Install pipx and check pipx install --help.
- evilduck 2y agoPython has like a dozen competing solutions in their package management space. Python is clearly the problem, not the user. Their docs don’t say that, they advertise exactly what the GP ran. Python needs to unfuck its ecosystem.
- smaudet 2y agoYeah they kinda screwed the pooch on that. That being said, venv is the official solution, and it works fairly well. pipenv/pipx are some alternatives...but yeah. What exactly is your system installation for if you aren't supposed to install anything to it? The package system should be able to attempt installing via venv or be able to block uncompatible packages with sane error messages.
- adolph 2y agovenv not always a panacea for system python $ docker run --rm -it python bash [...] root@211646f0fa99:/# which python /usr/local/bin/python root@211646f0fa99:/# python -m venv .venv root@211646f0fa99:/# source .venv/bin/activate (.venv) root@211646f0fa99:/# which python /.venv/bin/python (.venv) root@211646f0fa99:/# ls -l "$(which python)" lrwxrwxrwx 1 root root 21 May 7 14:47 /.venv/bin/python -> /usr/local/bin/python
- kwhitefoot 2y agoWhy is this directed at me? I'm not the one doing the software development, I was just trying to install an application.
- UncleEntity 2y ago> stop trying to use the system python for application development. Umm... who exactly makes sure the app runs correctly with the version of python installed by the system? I, for one, aren't going to bump up a python version to run a single app in a virtual environment because some dev decided to use 'python nightly' to code against.
- sensen7 2y agoIf venvs were a reasonable solution here, presumably the pyspread authors would have included them in the installation instructions. Instead they just say to "pip install", which predictably does not work for most people. It sounds a bit unfair to tell someone that "they're the problem" when they followed the official installation instructions to the letter. I would agree in classifying this as another case of python developers being unable to provide a working way to install their software (if code that the average person can't even get to execute can even be called "software".)