Portál AbcLinuxu, 10. května 2025 13:28
Nastavuje se balík python3-pip (8.1.1-2ubuntu0.4) …
Fatal Python error: Py_Initialize: Unable to get the locale encoding
File "/usr/lib/python2.7/encodings/__init__.py", line 123
raise CodecRegistryError,\
^
SyntaxError: invalid syntax
Current thread 0x00007f6d34fc0700 (most recent call first):
Aborted
dpkg: chyba při zpracovávání balíku python3-pip (--configure):
podproces instalovaný post-installation skript vrátil chybový status 134
Při zpracování nastaly chyby:
python3-pip
E: Sub-process /usr/bin/dpkg returned an error code (1)
Řešení dotazu:
pip install selenium
mi to vrací:
tomas@Tomas-Genesis ~ $ pip install selenium /home/tomas/.local/lib/python2.7/site-packages/pip/_vendor/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown. warnings.warn(warning, RequestsDependencyWarning) Collecting selenium Using cached https://files.pythonhosted.org/packages/80/d6/4294f0b4bce4de0abf13e17190289f9d0613b0a44e5dd6a7f5ca98459853/selenium-3.141.0-py2.py3-none-any.whl Requirement already satisfied: urllib3 in ./.local/lib/python2.7/site-packages (from selenium) (1.24.1) Installing collected packages: selenium Could not install packages due to an EnvironmentError: [Errno 13] Operace zamítnuta: '/usr/local/lib/python2.7/dist-packages/selenium-3.141.0.dist-info' Consider using the `--user` option or check the permissions.
pip install --user selenium
.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.