Maquinas de facultad | Instalación de librerias

Re: Maquinas de facultad | Instalación de librerias

de Eugenio Andres Lacuesta Pessina -
Número de respuestas: 0
No tenemos permisos para instalar globalmente, pero es posible instalar paquetes en entornos virtuales (https://docs.python.org/3/library/venv.html).

$ python3 -m venv virtualenv-redes  # crear virtualenv
$ source virtualenv-redes/bin/activate  # activar virtualenv
$ pip install pynput
Collecting pynput
  Downloading https://files.pythonhosted.org/packages/fd/f7/cb6e7edb8bb46bb38ac8c4f8065e6e3abaaef3436ecd7fe139ca5ba93c3c/pynput-1.7.3-py2.py3-none-any.whl (99kB)
    100% |████████████████████████████████| 102kB 5.3MB/s 
Collecting six (from pynput)
  Downloading https://files.pythonhosted.org/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl
Collecting evdev>=1.3; "linux" in sys_platform (from pynput)
  Downloading https://files.pythonhosted.org/packages/4d/ec/bb298d36ed67abd94293253e3e52bdf16732153b887bf08b8d6f269eacef/evdev-1.4.0.tar.gz
Collecting python-xlib>=0.17; "linux" in sys_platform (from pynput)
  Downloading https://files.pythonhosted.org/packages/c2/16/950463d36e8b64067c4d535038c5512de8200015e793d7d0a3f400187cbf/python_xlib-0.31-py2.py3-none-any.whl (179kB)
    100% |████████████████████████████████| 184kB 9.3MB/s 
Installing collected packages: six, evdev, python-xlib, pynput
  Running setup.py install for evdev ... done
Successfully installed evdev-1.4.0 pynput-1.7.3 python-xlib-0.31 six-1.16.0