Không thể tìm thấy phiên bản đáp ứng yêu cầu python dev?

Vì Python phân tán trong bộ LO không có pip , nên bạn phải thực hiện cài đặt thủ công pip vào môi trường của nó hoặc chỉ cần cài đặt gói bạn muốn theo cách thủ công

Nhóm LibreOffice đã phục vụ đầy đủ cho pip với những điều sau đây trong C:\Program Files\LibreOffice\program\python-core-3.8.10\lib\site-packages\README.txt"

Thư mục này tồn tại để có thể cài đặt các gói của bên thứ 3
tại đây. Đọc nguồn cho trang web. py để biết thêm chi tiết.

Địa điểm. py

"""Append module search paths for third-party packages to sys.path.

****************************************************************
* This module is automatically imported during initialization. *
****************************************************************

This will append site-specific paths to the module search path.  On
Unix [including Mac OSX], it starts with sys.prefix and
sys.exec_prefix [if different] and appends
lib/python/site-packages.
On other platforms [such as Windows], it tries each of the
prefixes directly, as well as with lib/site-packages appended.  The
resulting directories, if they exist, are appended to sys.path, and
also inspected for path configuration files.

If a file named "pyvenv.cfg" exists one directory above sys.executable,
sys.prefix and sys.exec_prefix are set to that directory and
it is also checked for site-packages [sys.base_prefix and
sys.base_exec_prefix will always be the "real" prefixes of the Python
installation]. If "pyvenv.cfg" [a bootstrap configuration file] contains
the key "include-system-site-packages" set to anything other than "false"
[case-insensitive], the system-level prefixes will still also be
searched for site-packages; otherwise they won't.

All of the resulting site-specific directories, if they exist, are
appended to sys.path, and also inspected for path configuration
files.

A path configuration file is a file whose name has the form
.pth; its contents are additional directories [one per line]
to be added to sys.path.  Non-existing directories [or
non-directories] are never added to sys.path; no directory is added to
sys.path more than once.  Blank lines and lines beginning with
'#' are skipped. Lines starting with 'import' are executed.

For example, suppose sys.prefix and sys.exec_prefix are set to
/usr/local and there is a directory /usr/local/lib/python2.5/site-packages
with three subdirectories, foo, bar and spam, and two path
configuration files, foo.pth and bar.pth.  Assume foo.pth contains the
following:

  # foo package configuration
  foo
  bar
  bletch

and bar.pth contains:

  # bar package configuration
  bar

Then the following directories are added to sys.path, in this order:

  /usr/local/lib/python2.5/site-packages/bar
  /usr/local/lib/python2.5/site-packages/foo

Note that bletch is omitted because it doesn't exist; bar precedes foo
because bar.pth comes alphabetically before foo.pth; and spam is
omitted because it is not mentioned in either path configuration file.

The readline module is also automatically configured to enable
completion for systems that support it.  This can be overridden in
sitecustomize, usercustomize or PYTHONSTARTUP.  Starting Python in
isolated mode [-I] disables automatic readline configuration.

After these operations, an attempt is made to import a module
named sitecustomize, which can perform arbitrary additional
site-specific customizations.  If this import fails with an
ImportError exception, it is silently ignored.
"""

Thật tuyệt khi trình cài đặt gói python mặc định của LibreOffice là một pip shell được viết bởi một trong cộng đồng [bằng tiếng Tây Ban Nha] - https. //git. cuat. net/elmau/zaz-pip

kpfleming

Vì vậy, nếu bạn sử dụng cơ sở đó

Nó hoạt động, nhưng bạn phải cài đặt tiện ích mở rộng LibreOffice được tạo gần đây

pf_moore

Cũng thế…

Không, đó không phải là ảnh chụp màn hình của tôi, tôi đang dùng Win10 và Có, ban đầu tôi đã nhầm tên gói nhưng đó không phải là vấn đề. Không thực sự có bất kỳ chuyên môn nào từ cộng đồng LO về vấn đề này, không ngạc nhiên sau 20 năm trăn hầu như không được sử dụng nhưng sự quan tâm ngày càng tăng

Đừng cho rằng các nhà phát triển LibreOffice biết bất cứ điều gì về python, đó là miền của người dùng và kể từ những năm 1980, ngôn ngữ bản địa là ngôn ngữ cơ bản. Vấn đề lớn nhất là python không có trong đường dẫn. Nó sẽ thực sự hữu ích cho những người biết đường đi của họ xung quanh trăn đã xem qua. Có lẽ nó nên ở trong một venv??

Con đường phía trước

  1. Tiện ích mở rộng đó thật khó chịu nhưng với một chút dọn dẹp thì nó hoạt động. Mọi suy nghĩ về việc thiếu dll và dọn dẹp. f2py.exe là gì?
  2. Lời khuyên về điều gì đó tốt hơn cho README.txt sẽ hữu ích

dây điện bay

Đừng cho rằng các nhà phát triển LibreOffice biết gì về python

Tôi không phải, nhưng cũng không cho rằng những người trong cộng đồng đóng gói Python có bất kỳ kiến ​​thức nào về LibreOffice. Nói chung, ngay sau khi quá trình cài đặt Python không còn giống như một bản cài đặt “tiêu chuẩn” [trong trường hợp này, bạn chưa cài đặt pip trong bản cài đặt LibreOffice của Python, và do đó, bạn cần sử dụng

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  [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              fire
16/08/2021  11:29 PM              fire-0.4.0.dist-info
0 để thực hiện cài đặt], bạn sẽ

Chọn một số điểm cụ thể mà bạn đã hỏi

dây điện bay

Gói python cho Phiên bản Libre Office được cài đặt như thế nào?

Không biết, điều đó hoàn toàn phụ thuộc vào những người dùng LibreOffice. Họ có thể làm bất kỳ việc nào trong số nhiều việc và không có cách nào biết được nếu không xem bản cài đặt LibreOffice

dây điện bay

pip đã cài đặt nó vào phiên bản python hệ thống của tôi [V3. 9. 0] mà LO không truy cập được

Nếu bạn không sử dụng phiên bản pip được cài đặt trong LibreOffice, điều đó được mong đợi

dây điện bay

LO chưa cài đặt pip. con đường phía trước là gì?

Về cơ bản, bạn đang ở trong lãnh thổ không được hỗ trợ vào thời điểm này. Câu trả lời được hỗ trợ là “cài đặt pip vào môi trường LO Python và sử dụng nó”. Bạn cũng có thể sử dụng

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  [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              fire
16/08/2021  11:29 PM              fire-0.4.0.dist-info
1 hoặc
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  [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              fire
16/08/2021  11:29 PM              fire-0.4.0.dist-info
0, nhưng những thứ đó phụ thuộc nhiều vào kỳ vọng của Python mục tiêu và bạn quay lại "nó phụ thuộc vào những gì cài đặt LO mong đợi"

dây điện bay

Nhóm LibreOffice đã đáp ứng đầy đủ cho pip với những điều sau đây

Điều đó còn rất xa so với "phục vụ đầy đủ cho pip". Để phục vụ đầy đủ, họ cần đưa pip vào gói trang web Python của họ và cung cấp cách để bạn gọi nó, giống như cài đặt Python tiêu chuẩn. Bạn có thể gọi trăn LO từ dòng lệnh không?

dây điện bay

Thật tuyệt khi trình cài đặt gói python mặc định của LibreOffice là một pip shell

Bạn có thể không sử dụng nó để cài đặt các gói Python không?

Xin lỗi, đó là tất cả những gì tôi có thể cung cấp. Bạn sẽ cần thực hiện thêm một số điều tra và tự mình đào bới, tôi nghĩ vậy. Có lẽ nếu bạn có thể đưa ra một số câu hỏi cụ thể hơn có thể được giải thích mà không cần dựa vào những người biết về LO, bạn sẽ có thể nhận được câu trả lời bổ sung

Tôi tin rằng không có pip trong LibreOffice nhưng chắc chắn là có sau khi chạy tiện ích mở rộng đó và cài đặt python V3. 9. Dù sao, điều này bao gồm mọi thứ ngoại trừ việc tải xuống 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  [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              fire
16/08/2021  11:29 PM              fire-0.4.0.dist-info

dây điện bay

dây điện bay

Nhóm LibreOffice đã đáp ứng đầy đủ cho pip với…

Những người LO có quan điểm rằng họ chỉ lấy gói từ Python và đưa nó vào. Dường như với tôi 1. Nhúng Python vào ứng dụng khác — Python 3. 10. 6 tài liệu nên bao gồm https. //bootstrap. pypa. io/get-pip. py theo mặc định với tất cả các cảnh báo

Tôi cho rằng nhà phát triển ứng dụng phải đưa ra quyết định đó. Hầu như mỗi khi tôi nhúng Python và hầu hết những lần tôi làm việc với các đồng nghiệp đang làm việc đó, chúng tôi không muốn cho phép mọi người sửa đổi ứng dụng. Đó không phải là vấn đề

Nếu bạn muốn nhúng Python và cho phép người dùng sửa đổi ứng dụng của mình, bằng mọi cách hãy cho phép họ sử dụng pip. Nhưng tôi không thấy bất kỳ lý do nào để đề xuất điều đó theo mặc định [điều này sẽ được một số độc giả hiểu là “yêu cầu”, bất kể chúng tôi áp dụng bao nhiêu cảnh báo]

“Cách nhúng Python và cho phép người dùng sử dụng cũng như sửa đổi nó” có thể là một trang mới hay trong tài liệu nhưng đây cũng là cơ hội hoàn toàn tốt để ai đó xuất bản bên ngoài tài liệu cốt lõi, điều này cho phép họ có chính kiến ​​hơn và cũng nhận được nhiều hơn . Nếu nhiều người đang viết bài này và đưa ra lời khuyên trái ngược nhau, hoặc kết quả là làm cho hệ sinh thái Python trở nên tồi tệ hơn, thì tôi sẽ có xu hướng viết một hướng dẫn chính tắc trong tài liệu hơn. Nhưng rất có thể, họ sẽ làm mọi thứ tốt hơn cho những ai muốn làm điều gì đó như thế này

Không thể tìm thấy phiên bản đáp ứng yêu cầu pandas == 1. 5 1?

Lỗi "Không thể tìm thấy phiên bản đáp ứng yêu cầu pandas" thường xảy ra do không có quyền cần thiết để cài đặt gói cho tất cả người dùng trên máy. To solve the error, install the package scoped to the specific user with the --user option.

Làm cách nào để cài đặt pip trong Python?

Đảm bảo bạn có thể chạy pip từ dòng lệnh . p Run python get-pip.py . 2 Điều này sẽ cài đặt hoặc nâng cấp pip. Ngoài ra, nó sẽ cài đặt các công cụ thiết lập và bánh xe nếu chúng chưa được cài đặt. Hãy thận trọng nếu bạn đang sử dụng bản cài đặt Python do hệ điều hành của bạn hoặc trình quản lý gói khác quản lý.

Làm cách nào để kiểm tra phiên bản pip?

PIP Python .
Kiểm tra phiên bản PIP. C. \Users\Your Name\AppData\Local\Programs\Python\Python36-32\Scripts>pip --version
Tải xuống gói có tên "camelcase". .
Nhập và sử dụng "camelcase". .
Gỡ cài đặt gói có tên "camelcase". .
Liệt kê các gói đã cài đặt

Làm cách nào để cập nhật phiên bản Python bằng pip?

Sau khi cài đặt gói, sau này, nếu chúng tôi muốn cập nhật gói lên phiên bản mới nhất. Đối với điều đó, chúng ta cũng có thể nhờ sự trợ giúp của lệnh pip. Với pip3 install --upgrade , chúng ta có thể nâng cấp gói python đã cài đặt lên phiên bản mới nhất hiện có.

Chủ Đề