pythonic-emacs / anaconda-mode

Code navigation, documentation lookup and completion for Python.
GNU General Public License v3.0
706 stars 87 forks source link

python: remove implicit pip dependency #421

Open fortaa opened 1 year ago

fortaa commented 1 year ago

The pip package is not a part of the standard library. The following error might happen in Python3 environments (from the *anaconda-mode* buffer):


/usr/bin/python3: No module named pip
Traceback (most recent call last):
  File "/home/user/.emacs.d/straight/build/anaconda-mode/anaconda-mode.py", line 85, in <module>
    install_deps_pip()
  File "/home/user/.emacs.d/straight/build/anaconda-mode/anaconda-mode.py", line 78, in install_deps_pip
    subprocess.check_call(cmd)
  File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python3', '-m', 'pip', 'install', '--target', '/home/user/.emacs.d/anaconda-mode/0.1.15-py3', 'jedi==0.18.1', 'service_factory==0.1.6']' returned non-zero exit status 1.```