system / pip readline versions mismatch

  • Last Update :
  • Techknowledgy :

I figured it out -- it seems that I can just make a symlink using the new version of readline, by:

sudo ln - s / usr / lib / libreadline.so .8 .0 / usr / lib / libreadline.so .7

Suggestion : 2

I understand this is a mismatch of python versions (System is 3.9 and LO is 3.7). LO has no pip installed. What is the way forward?,LO has no pip installed. What is the way forward?,pip installed it to my system version of python (V3.9.0) which LO doesn’t access,How is a python package for the Libre Office Version installed? pip installed it to my system version of python (V3.9.0) which LO doesn’t access. (Common problem without a real answer.)

How is a python package for the Libre Office Version installed? pip installed it to my system version of python (V3.9.0) which LO doesn’t access. (Common problem without a real answer.)

APSO python console [LibreOffice]
3.7.10 (default, May 6 2021, 16:23:28) [MSC v.1928 64 bit (AMD64)]
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os
<module 'os' from 'C:\\Program Files\\LibreOffice\\program\\python-core-3.7.10\\lib\\os.py'>
1._
C: \Users\ User > pip install--prefix = "C:\Program Files\LibreOffice\program\python-core-3.7.10\lib\site-packages"
scipy.optimize
ERROR: Could not find a version that satisfies the requirement scipy.optimize(from versions: none)
ERROR: No matching distribution found
for scipy.optimize

I understand this is a mismatch of python versions (System is 3.9 and LO is 3.7). LO has no pip installed. What is the way forward?

C: \PROGRAM FILES\ LIBREOFFICE\ PROGRAM\ PYTHON - CORE - 3.7 .10├─── bin└─── lib├─── asyncio├─── collections├─── concurrent│└─── futures├─── ctypes│└─── macholib├─── distutils│└─── command├─── email│└─── mime├─── encodings├─── html├─── http├─── importlib├─── json├─── lib2to3│└─── fixes├─── logging├─── multiprocessing│└─── dummy├─── pgen2├─── pydoc_data├─── site - packages├─── unittest│└─── test│└─── testmock├─── urllib├─── wsgiref├─── xml│├─── dom│├─── etree│├─── parsers│└─── sax└─── xmlrpc

You could download a wheel of pip and then use it like this (no strict need to install pip itself):

path\ to\ python.exe path\ to\ pip.whl / pip install Something

Focusing purely on the original command you quoted:

C: \Users\ User > pip install--prefix = "C:\Program Files\LibreOffice\program\python-core-3.7.10\lib\site-packages"
scipy.optimize

I’m confident there is no pip in LibreOffice but it’s certainly there after running that extension and installing python V3.9. Anyway, this covers everything except downloading pip.

C:\Program Files\LibreOffice\program>dir python.exe /s

Directory of C:\Program Files\LibreOffice\program
11/08/2021 11:04 AM 31,280 python.exe

Directory of C:\Program Files\LibreOffice\program\python-core-3.8.10\bin
11/08/2021 11:05 AM 103,472 python.exe


C:\Program Files\LibreOffice\program>python
Python 3.8.10 (default, Aug 10 2021, 19:39:20) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> ^Z


C:\Program Files\LibreOffice\program>python -m pip

Usage:
C:\Program Files\LibreOffice\program\python-core-3.8.10\bin\python.exe -m pip <command> [options]
   ...

   C:\Program Files\LibreOffice\program>python -m pip install fire
   Defaulting to user installation because normal site-packages is not writeable
   Collecting fire
   Downloading fire-0.4.0.tar.gz (87 kB)
   |████████████████████████████████| 87 kB 633 kB/s
   Collecting six
   Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
   Collecting termcolor
   Downloading termcolor-1.1.0.tar.gz (3.9 kB)
   Building wheels for collected packages: fire, termcolor
   Building wheel for fire (setup.py) ... done
   Created wheel for fire: filename=fire-0.4.0-py2.py3-none-any.whl size=115943 sha256=7ba8877ce397e185e7d1c9a74744d4371418ac62c0d44d77497372d454b153f9
   Stored in directory: c:\users\user\appdata\local\pip\cache\wheels\1f\10\06\2a990ee4d73a8479fe2922445e8a876d38cfbfed052284c6a1
   Building wheel for termcolor (setup.py) ... done
   Created wheel for termcolor: filename=termcolor-1.1.0-py3-none-any.whl size=4847 sha256=9a1fa612ae2fd7d2d96df6f9e2462491ddac6d0497930c5731df49a5c5736af5
   Stored in directory: c:\users\user\appdata\local\pip\cache\wheels\a0\16\9c\5473df82468f958445479c59e784896fa24f4a5fc024b0f501
   Successfully built fire termcolor
   Installing collected packages: termcolor, six, fire
   Successfully installed fire-0.4.0 six-1.16.0 termcolor-1.1.0

   C:\Users\User\AppData\Roaming\Python\Python38\site-packages>dir f*
   Volume in drive C is OS

   Directory of C:\Users\User\AppData\Roaming\Python\Python38\site-packages

   16/08/2021 11:29 PM <DIR> fire
      16/08/2021 11:29 PM <DIR> fire-0.4.0.dist-info

Suggestion : 3

Is this happening with the latest version of Pip? It is probable that your issues were fixed a while ago, so just to discard that, please get the latest Pip release (22.1.2).,I honestly have no idea what’s happening here. The new version of pip that uses just sysconfig works fine so we will likely resolve this issue by upgrading, but I am still perplexed how can the distutils path differ from the sysconfig one.,This is not an error, you can safely ignore the message. The warning is a means to allow pip developers gather information about environments that may have issues when we switch the location backend.,@uranusjr Edited adding the warning message I get, seems to be the same no matter what I try to install. This is just a pip update attempt

WARNING: Value
for scheme.scripts does not match.Please report this to < https: //github.com/pypa/pip/issues/10151

Then, comment below with content like this so we can learn about your environment:

Output of 'pip debug':

   ``
`
pip version: pip X.Y.Z from /....
sys.version: ...
sys.executable: /path/to/python
...
`
``

Error output:

   ``
`
WARNING: Value for [location-key] does not match. Please report this to ...
distutils: /xxxxx
sysconfig: /yyyyy
WARNING: Additional context:
user = False
home = None
root = None
prefix = None
`
``

While installing requirements.txt for a Django project I am getting this warning.

C:\Users\Dell\FR_updateAI\core>pip install -r requirements.txt
WARNING: Value for scheme.platlib does not match. Please report this to <https: //github.com/pypa/pip/issues/10151>
   distutils: c:\msys64\mingw64\lib\python3.8\site-packages
   sysconfig: c:\msys64\mingw64\lib\python3.8
   WARNING: Value for scheme.purelib does not match. Please report this to <https: //github.com/pypa/pip/issues/10151>
      distutils: c:\msys64\mingw64\lib\python3.8\site-packages
      sysconfig: c:\msys64\mingw64\lib\python3.8
      WARNING: Additional context:
      user = False
      home = None
      root = None
      prefix = None

While building Python-3.9.9 on AIX - “make install” when using DESTDIR reports:

/opt/bin/make install DESTDIR=/var/aixtools/python/py39/3.9.9.0 > .buildaix/install.out
WARNING: Value for scheme.headers does not match. Please report this to <https: //github.com/pypa/pip/issues/10151>
   distutils: /var/aixtools/python/py39/3.9.9.0/opt/include/python3.9/UNKNOWN
   sysconfig: /var/aixtools/python/py39/3.9.9.0/data/prj/python/src/Python-3.9.9/Include/UNKNOWN
   WARNING: Additional context:
   user = False
   home = None
   root = '/var/aixtools/python/py39/3.9.9.0/'
   prefix = None
   WARNING: Value for scheme.headers does not match. Please report this to <https: //github.com/pypa/pip/issues/10151>
      distutils: /var/aixtools/python/py39/3.9.9.0/opt/include/python3.9/setuptools
      sysconfig: /var/aixtools/python/py39/3.9.9.0/data/prj/python/src/Python-3.9.9/Include/setuptools
      WARNING: Value for scheme.headers does not match. Please report this to <https: //github.com/pypa/pip/issues/10151>
         distutils: /var/aixtools/python/py39/3.9.9.0/opt/include/python3.9/pip
         sysconfig: /var/aixtools/python/py39/3.9.9.0/data/prj/python/src/Python-3.9.9/Include/pip
         WARNING: The scripts pip3 and pip3.9 are installed in '/var/aixtools/python/py39/3.9.9.0/opt/bin' which is not on PATH.
         Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
         WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
  • imho: the distutils PATH look correct (after stripping the DESTDIR prefix); the sysconfig paths seem to be based on the oot (out-of-tree) sources.
  • there is no error section in the debug output, so the message above may only be occuring as part of the make install process (in particular to a DESTDIR)
root @x066: [/data/prj / python / py39 - 3.9 .9] pip3 debug
WARNING: This command is only meant
for debugging.Do not use this with automation
for parsing and getting these details, since the output and options of this command may change without notice.
pip version: pip 21.2 .4 from / opt / lib / python3 .9 / site - packages / pip(python 3.9)
sys.version: 3.9 .9(main, Jan 12 2022, 18: 54: 24)[C]
sys.executable: /opt/bin / python3 .9
sys.getdefaultencoding: utf - 8
sys.getfilesystemencoding: iso8859 - 1
locale.getpreferredencoding: ISO8859 - 1
sys.platform: aix
sys.implementation:
   name: cpython 'cert'
config value: Not specified
REQUESTS_CA_BUNDLE: None
CURL_CA_BUNDLE: None
pip._vendor.certifi.where(): /opt/lib / python3 .9 / site - packages / pip / _vendor / certifi / cacert.pem
pip._vendor.DEBUNDLED: False
vendored library versions:
   appdirs == 1.4 .4
CacheControl == 0.12 .6
colorama == 0.4 .4
distlib == 0.3 .2
distro == 1.5 .0(Unable to locate actual module version, using vendor.txt specified version)
html5lib == 1.1
msgpack == 1.0 .2(Unable to locate actual module version, using vendor.txt specified version)
packaging == 21.0
pep517 == 0.11 .0
progress == 1.5
pyparsing == 2.4 .7
requests == 2.26 .0
certifi == 2021.05 .30
chardet == 4.0 .0
idna == 3.2
urllib3 == 1.26 .6
resolvelib == 0.7 .1
setuptools == 44.0 .0(Unable to locate actual module version, using vendor.txt specified version)
six == 1.16 .0
tenacity == 8.0 .1(Unable to locate actual module version, using vendor.txt specified version)
tomli == 1.0 .3
webencodings == 0.5 .1(Unable to locate actual module version, using vendor.txt specified version)
Compatible tags: 33
cp39 - cp39 - aix_6107_1216_64
cp39 - abi3 - aix_6107_1216_64
cp39 - none - aix_6107_1216_64
cp38 - abi3 - aix_6107_1216_64
cp37 - abi3 - aix_6107_1216_64
cp36 - abi3 - aix_6107_1216_64
cp35 - abi3 - aix_6107_1216_64
cp34 - abi3 - aix_6107_1216_64
cp33 - abi3 - aix_6107_1216_64
cp32 - abi3 - aix_6107_1216_64
   ...[First 10 tags shown.Pass--verbose to show all.]

Output of pip debug

WARNING: This command is only meant
for debugging.Do not use this with automation
for parsing and getting these details, since the output and options of this command may change without notice.
pip version: pip 21.3 .1 from / usr / lib / python3 .10 / dist - packages / pip(python 3.10)
sys.version: 3.10 .0(
   default, Oct 4 2021, 22: 09: 55)[GCC 9.3 .0]
sys.executable: /usr/bin / python3 .10
sys.getdefaultencoding: utf - 8
sys.getfilesystemencoding: utf - 8
locale.getpreferredencoding: UTF - 8
sys.platform: linux
sys.implementation:
   name: cpython 'cert'
config value: Not specified
REQUESTS_CA_BUNDLE: None
CURL_CA_BUNDLE: None
pip._vendor.certifi.where(): /usr/lib / python3 .10 / dist - packages / pip / _vendor / certifi / cacert.pem
pip._vendor.DEBUNDLED: False
vendored library versions:
   CacheControl == 0.12 .6
colorama == 0.4 .4
distlib == 0.3 .3
distro == 1.6 .0
html5lib == 1.1
msgpack == 1.0 .2(Unable to locate actual module version, using vendor.txt specified version)
packaging == 21.0
pep517 == 0.12 .0
platformdirs == 2.4 .0
progress == 1.6
pyparsing == 2.4 .7
requests == 2.26 .0
certifi == 2021.05 .30
chardet == 4.0 .0
idna == 3.2
urllib3 == 1.26 .7
resolvelib == 0.8 .0
setuptools == 44.0 .0(Unable to locate actual module version, using vendor.txt specified version)
six == 1.16 .0
tenacity == 8.0 .1(Unable to locate actual module version, using vendor.txt specified version)
tomli == 1.0 .3
webencodings == 0.5 .1(Unable to locate actual module version, using vendor.txt specified version)
Compatible tags: 726
cp310 - cp310 - manylinux_2_31_x86_64
cp310 - cp310 - manylinux_2_30_x86_64
cp310 - cp310 - manylinux_2_29_x86_64
cp310 - cp310 - manylinux_2_28_x86_64
cp310 - cp310 - manylinux_2_27_x86_64
cp310 - cp310 - manylinux_2_26_x86_64
cp310 - cp310 - manylinux_2_25_x86_64
cp310 - cp310 - manylinux_2_24_x86_64
cp310 - cp310 - manylinux_2_23_x86_64
cp310 - cp310 - manylinux_2_22_x86_64
   ...[First 10 tags shown.Pass--verbose to show all.]

Error Output:

WARNING: Value for scheme.purelib does not match. Please report this to <https: //github.com/pypa/pip/issues/10151>
   distutils: /usr/lib/python3.10/dist-packages
   sysconfig: /usr/lib/python3.10/site-packages
   WARNING: Additional context:
   user = False
   home = None
   root = None
   prefix = None

Output of pip debug:

WARNING: This command is only meant
for debugging.Do not use this with automation
for parsing and getting these details, since the output and options of this command may change without notice.
pip version: pip 21.2 .3 from / usr / local / lib / python3 .11 / site - packages / pip(python 3.11)
sys.version: 3.11 .0 a0(heads / main: dc878240dc, Oct 3 2021, 10: 28: 40)[GCC 8.3 .0]
sys.executable: /usr/local / bin / python3
sys.getdefaultencoding: utf - 8
sys.getfilesystemencoding: utf - 8
locale.getpreferredencoding: UTF - 8
sys.platform: linux
sys.implementation:
   name: cpython 'cert'
config value: Not specified
REQUESTS_CA_BUNDLE: None
CURL_CA_BUNDLE: None
pip._vendor.certifi.where(): /usr/local / lib / python3 .11 / site - packages / pip / _vendor / certifi / cacert.pem
pip._vendor.DEBUNDLED: False
vendored library versions:
   appdirs == 1.4 .4
CacheControl == 0.12 .6
colorama == 0.4 .4
distlib == 0.3 .2
distro == 1.5 .0(Unable to locate actual module version, using vendor.txt specified version)
html5lib == 1.1
msgpack == 1.0 .2(Unable to locate actual module version, using vendor.txt specified version)
packaging == 21.0
pep517 == 0.11 .0
progress == 1.5
pyparsing == 2.4 .7
requests == 2.26 .0
certifi == 2021.05 .30
chardet == 4.0 .0
idna == 3.2
urllib3 == 1.26 .6
resolvelib == 0.7 .1
setuptools == 44.0 .0(Unable to locate actual module version, using vendor.txt specified version)
six == 1.16 .0
tenacity == 8.0 .1(Unable to locate actual module version, using vendor.txt specified version)
tomli == 1.0 .3
webencodings == 0.5 .1(Unable to locate actual module version, using vendor.txt specified version)
Compatible tags: 714
cp311 - cp311 - manylinux_2_28_x86_64
cp311 - cp311 - manylinux_2_27_x86_64
cp311 - cp311 - manylinux_2_26_x86_64
cp311 - cp311 - manylinux_2_25_x86_64
cp311 - cp311 - manylinux_2_24_x86_64
cp311 - cp311 - manylinux_2_23_x86_64
cp311 - cp311 - manylinux_2_22_x86_64
cp311 - cp311 - manylinux_2_21_x86_64
cp311 - cp311 - manylinux_2_20_x86_64
cp311 - cp311 - manylinux_2_19_x86_64
   ...[First 10 tags shown.Pass--verbose to show all.]

Error output:

WARNING: Value for scheme.headers does not match. Please report this to <https: //github.com/pypa/pip/issues/10151>
   distutils: /usr/local/include/python3.11/UNKNOWN
   sysconfig: /home/rosuav/cpython/Include/UNKNOWN
   WARNING: Additional context:
   user = False
   home = None
   root = '/'
   prefix = None
   Looking in links: /tmp/tmpop_27sho

Suggestion : 4

Startup files can be found in /etc/ipython/startup or {sys.prefix}/etc/ipython/startup in addition to the profile directory, for system-wide or env-specific startup files.,If you are looking for an IPython version compatible with Python 2.7, please use the IPython 5.x LTS release and refer to its documentation (LTS is the long term support release).,IPython now looks for config files in {sys.prefix}/etc/ipython for environment-specific configuration.,Some deprecated features are listed in this section. Don’t forget to enable DeprecationWarning as an error if you are using IPython in a Continuous Integration setup or in your testing in general:

In[1]: from IPython.display
import ProgressBar
   ...: pb = ProgressBar(100)
   ...: pb

In[2]: pb.progress = 50

# progress bar in cell 1 updates.
ip = get_ipython()
ip.sphinxify_docstring = True
ip.enable_html_pager = True
import numpy as np
np.histogram ?
import warnings
warnings.filterwarnings('error', '.*', DeprecationWarning, module = 'yourmodule.*')