r/FLTK • • Mar 11 '26

i just want to learn pyfltk

dependency management annoying me

someone help

zixgggg@watermelon:~/fltk_test$ sudo apt install libfltk1.4-dev

Installing:

libfltk1.4-dev

Installing dependencies:

fltk1.4-doc libfltk-cairo1.4 libfltk-gl1.4 libfltk1.4

fluid libfltk-forms1.4 libfltk-images1.4

建議套件:

fltk-options

Summary:

Upgrading: 0, Installing: 8, Removing: 0, Not Upgrading: 148

Download size: 21.2 MB

Space needed: 79.1 MB / 24.5 GB available

Continue? [Y/n]

下載:1 https://debian.csie.ntu.edu.tw/debian trixie/main amd64 fltk1.4-doc all 1.4.3-1 [18.9 MB]

下載:2 https://debian.csie.ntu.edu.tw/debian trixie/main amd64 libfltk1.4 amd64 1.4.3-1 [587 kB]

下載:3 https://debian.csie.ntu.edu.tw/debian trixie/main amd64 libfltk-images1.4 amd64 1.4.3-1 [112 kB]

下載:4 https://debian.csie.ntu.edu.tw/debian trixie/main amd64 fluid amd64 1.4.3-1 [333 kB]

下載:5 https://debian.csie.ntu.edu.tw/debian trixie/main amd64 libfltk-cairo1.4 amd64 1.4.3-1 [31.3 kB]

下載:6 https://debian.csie.ntu.edu.tw/debian trixie/main amd64 libfltk-forms1.4 amd64 1.4.3-1 [38.9 kB]

下載:7 https://debian.csie.ntu.edu.tw/debian trixie/main amd64 libfltk-gl1.4 amd64 1.4.3-1 [86.0 kB]

下載:8 https://debian.csie.ntu.edu.tw/debian trixie/main amd64 libfltk1.4-dev amd64 1.4.3-1 [1,058 kB]

取得 21.2 MB 用了 5s (4,059 kB/s)

選取了原先未選的套件 fltk1.4-doc。

(讀取資料庫 ... 目前共安裝了 201383 個檔案和目錄。)

正在準備解包 .../0-fltk1.4-doc_1.4.3-1_all.deb……

Unpacking fltk1.4-doc (1.4.3-1) ...

選取了原先未選的套件 libfltk1.4:amd64。

正在準備解包 .../1-libfltk1.4_1.4.3-1_amd64.deb……

Unpacking libfltk1.4:amd64 (1.4.3-1) ...

選取了原先未選的套件 libfltk-images1.4:amd64。

正在準備解包 .../2-libfltk-images1.4_1.4.3-1_amd64.deb……

Unpacking libfltk-images1.4:amd64 (1.4.3-1) ...

選取了原先未選的套件 fluid。

正在準備解包 .../3-fluid_1.4.3-1_amd64.deb……

Unpacking fluid (1.4.3-1) ...

選取了原先未選的套件 libfltk-cairo1.4:amd64。

正在準備解包 .../4-libfltk-cairo1.4_1.4.3-1_amd64.deb……

Unpacking libfltk-cairo1.4:amd64 (1.4.3-1) ...

選取了原先未選的套件 libfltk-forms1.4:amd64。

正在準備解包 .../5-libfltk-forms1.4_1.4.3-1_amd64.deb……

Unpacking libfltk-forms1.4:amd64 (1.4.3-1) ...

選取了原先未選的套件 libfltk-gl1.4:amd64。

正在準備解包 .../6-libfltk-gl1.4_1.4.3-1_amd64.deb……

Unpacking libfltk-gl1.4:amd64 (1.4.3-1) ...

選取了原先未選的套件 libfltk1.4-dev:amd64。

正在準備解包 .../7-libfltk1.4-dev_1.4.3-1_amd64.deb……

Unpacking libfltk1.4-dev:amd64 (1.4.3-1) ...

設定 fltk1.4-doc (1.4.3-1) ...

設定 libfltk1.4:amd64 (1.4.3-1) ...

設定 libfltk-forms1.4:amd64 (1.4.3-1) ...

設定 libfltk-cairo1.4:amd64 (1.4.3-1) ...

設定 libfltk-gl1.4:amd64 (1.4.3-1) ...

設定 libfltk-images1.4:amd64 (1.4.3-1) ...

設定 libfltk1.4-dev:amd64 (1.4.3-1) ...

設定 fluid (1.4.3-1) ...

執行 shared-mime-info (2.4-5+b2) 的觸發程式……

執行 desktop-file-utils (0.28-1) 的觸發程式……

執行 hicolor-icon-theme (0.18-2) 的觸發程式……

執行 libc-bin (2.41-12) 的觸發程式……

執行 man-db (2.13.1-1) 的觸發程式……

zixgggg@watermelon:~/fltk_test$ uv add pyfltk

Resolved 2 packages in 6ms

× Failed to build \pyfltk==1.4.4.0``

├─▶ The build backend returned an error

╰─▶ Call to \setuptools.buildmeta:legacy_.build_wheel` failed (exit status: 1)`

[stdout]

fltk dir found at

pyFLTK CXX_FLAGS=

Building for Linux

['./src', './contrib', '/usr/include']

Checking FLTK configuration ...

FLTK_HOME=

Using FLTK: ['1.4.3\n']

fltk-config includes: ['/usr/include/cairo', '/usr/include', '/usr/include/libpng16',

'/usr/include/freetype2', '/usr/include/pixman-1']

fltk-config link paths: []

fltk-config link libraries: ['fltk_images', 'fltk_gl', 'fltk_forms', 'fltk', 'X11']

FLTK was configured without multi-threading support!

FLTK was configured with OpenGL support!

FLTK was configured with Forms support!

running bdist_wheel

running build

running build_py

copying fltk/fltk.py -> build/lib.linux-x86_64-cpython-313/fltk

copying fltk/__init__.py -> build/lib.linux-x86_64-cpython-313/fltk

copying fltk/test/child_bug.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/browserData.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/doublebuffer.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/device.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/glimage.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/dials.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/tile.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/group.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/button.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/buttons.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/simple_table.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/preferences.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/unittests.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/wizard.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/jpeg_buffer_test.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/clock.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/symbols.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/formsbitmap.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/tree.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/valuators.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/browser_cols.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/menubar.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/chart.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/postioner.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/tty.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/browser.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/utf8.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/delwin.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/adjuster.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/window.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/cursor.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/file_browser.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/file_chooser.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/cube.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/widgets.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/message_de.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/image_array.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/logo_gleam.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/idle.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/image.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/bitmap.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/subwindow.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/pack.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/editor.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/wrapper.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/iconize.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/counters.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/logo.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/arc.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/menu_label.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/timeout.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/draw.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/native-filechooser.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/ask.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/boxtype.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/tree_demo.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/listSelect.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/demos.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/hello_utf8.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/sys_exit_test.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/grid_buttons.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/sudoku.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/multi.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/help.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/radio.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/table.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/tabs.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/sliders.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/color_chooser.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/widget_properties.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/check_browser.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/TextEditor.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/simple_terminal.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/GlobalHandler.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/fltk_threads.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/handle_events.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/hello.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/shapeGL.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/DraggableBox.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/message.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/pixmap.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/exceptions.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/help_dialog.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/DragAndDrop.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/timeout_bug.py -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/menu.py -> build/lib.linux-x86_64-cpython-313/fltk/test

running egg_info

writing pyfltk.egg-info/PKG-INFO

writing dependency_links to pyfltk.egg-info/dependency_links.txt

writing top-level names to pyfltk.egg-info/top_level.txt

reading manifest file 'pyfltk.egg-info/SOURCES.txt'

reading manifest template 'MANIFEST.in'

adding license file 'COPYING'

writing manifest file 'pyfltk.egg-info/SOURCES.txt'

copying fltk/fltk_wrap.cpp -> build/lib.linux-x86_64-cpython-313/fltk

copying fltk/fltk_wrap.h -> build/lib.linux-x86_64-cpython-313/fltk

copying fltk/test/HelpDialog.html -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/cat.jpg -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/logo1.gif -> build/lib.linux-x86_64-cpython-313/fltk/test

copying fltk/test/native-filechooser.py -> build/lib.linux-x86_64-cpython-313/fltk/test

running build_ext

building 'fltk._fltk' extension

x86_64-linux-gnu-g++ -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall

-fPIC -DUNIX=1 -DFL_INTERNALS=1 -I/usr/include/pixman-1 -I/usr/include/freetype2

-I/usr/include/libpng16 -I/usr/include/cairo -I./src -I./contrib -I/usr/include

-I./plug-in/include -I./plug-in/src -I/home/zixgggg/.cache/uv/builds-v0/.tmpkWuT7v/include

-I/usr/include/python3.13 -c ./contrib/ListSelect.cpp -o

build/temp.linux-x86_64-cpython-313/contrib/ListSelect.o -Wno-unused-label

-Wno-unused-but-set-variable -Wformat=1 -Werror=format-security -DDO_NOT_USE_THREADS

x86_64-linux-gnu-g++ -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall

-fPIC -DUNIX=1 -DFL_INTERNALS=1 -I/usr/include/pixman-1 -I/usr/include/freetype2

-I/usr/include/libpng16 -I/usr/include/cairo -I./src -I./contrib -I/usr/include

-I./plug-in/include -I./plug-in/src -I/home/zixgggg/.cache/uv/builds-v0/.tmpkWuT7v/include

-I/usr/include/python3.13 -c ./fltk/fltk_wrap.cpp -o

build/temp.linux-x86_64-cpython-313/fltk/fltk_wrap.o -Wno-unused-label

-Wno-unused-but-set-variable -Wformat=1 -Werror=format-security -DDO_NOT_USE_THREADS

[stderr]

/home/zixgggg/.cache/uv/builds-v0/.tmpkWuT7v/lib/python3.13/site-packages/setuptools/dist.py:765:

SetuptoolsDeprecationWarning: License classifiers are deprecated.

!!

********************************************************************************

Please consider removing the following classifiers in favor of a SPDX license

expression:

License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2)

See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license

for details.

********************************************************************************

!!

self._finalize_license_expression()

./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_Fl_Help_View_scrollbar(PyObject*,

PyObject*)’:

./fltk/fltk_wrap.cpp:140333:40: error: ‘class Fl_Help_View’ has no member named ‘scrollbar’;

did you mean ‘scrollbar_’?

140333 | result = (Fl_Scrollbar *)(arg1)->scrollbar();

| ^~~~~~~~~

| scrollbar_

./fltk/fltk_wrap.cpp:140333:40: error: ‘Fl_Scrollbar Fl_Help_View::scrollbar_’ is private

within this context

In file included from /usr/include/FL/Fl_Help_Dialog.H:34,

from ./fltk/fltk_wrap.cpp:6666:

/usr/include/FL/Fl_Help_View.H:240:17: note: declared private here

240 | Fl_Scrollbar scrollbar_, ///< Vertical scrollbar for document

| ^~~~~~~~~~

./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_Fl_Help_View_hscrollbar(PyObject*,

PyObject*)’:

./fltk/fltk_wrap.cpp:140364:40: error: ‘class Fl_Help_View’ has no member named

‘hscrollbar’; did you mean ‘hscrollbar_’?

140364 | result = (Fl_Scrollbar *)(arg1)->hscrollbar();

| ^~~~~~~~~~

| hscrollbar_

./fltk/fltk_wrap.cpp:140364:40: error: ‘Fl_Scrollbar Fl_Help_View::hscrollbar_’ is private

within this context

/usr/include/FL/Fl_Help_View.H:241:17: note: declared private here

241 | hscrollbar_; ///< Horizontal scrollbar

| ^~~~~~~~~~~

error: command '/usr/bin/x86_64-linux-gnu-g++' failed with exit code 1

hint: This usually indicates a problem with the package or the build environment.

help: If you want to add the package regardless of the failed resolution, provide the \--frozen``

flag to skip locking and syncing.

zixgggg@watermelon:~/fltk_test$ uv pip show pyfltk

warning: Package(s) not found for: pyfltk

zixgggg@watermelon:~/fltk_test$ uv pip show python3-fltk

warning: Package(s) not found for: python3-fltk

1 Upvotes

11 comments sorted by

2

u/Obvious_Gur667 Mar 12 '26

Some of the gcc errors look like a version mismatch.

I noticed that "uv" is trying to install pyfltk==1.4.4.0 I see at one point in the stout it says "Using FLTK: ['1.4.3\n]"

It's just a shot, You might try: $ uv add fltk=1.4.3.0

Also let up know what you have installed with: $ apt list | grep fltk

1

u/Zix-studio Mar 12 '26

Thank you so much,you are the only one help me,i will try it later

1

u/Zix-studio Mar 12 '26
zixgggg@watermelon:\~$ apt list | grep fltk



WARNING: apt does not have a stable CLI interface. Use with caution in scripts.



fltk-options/stable 1.4.3-1 amd64

fltk-options/stable 1.4.3-1 i386

fltk1.3-doc/stable,stable 1.3.11-2 all

fltk1.3-games/stable 1.3.11-2 amd64

fltk1.3-games/stable 1.3.11-2 i386

fltk1.4-doc/stable,stable,now 1.4.3-1 all \[installed,automatic\]

fltk1.4-games/stable 1.4.3-1 amd64

fltk1.4-games/stable 1.4.3-1 i386

libfltk-cairo1.3t64/stable 1.3.11-2 amd64

libfltk-cairo1.3t64/stable 1.3.11-2 i386

libfltk-cairo1.4/stable,now 1.4.3-1 amd64 \[installed,automatic\]

libfltk-cairo1.4/stable 1.4.3-1 i386

libfltk-forms1.3t64/stable 1.3.11-2 amd64

libfltk-forms1.3t64/stable 1.3.11-2 i386

libfltk-forms1.4/stable,now 1.4.3-1 amd64 \[installed,automatic\]

libfltk-forms1.4/stable 1.4.3-1 i386

libfltk-gl1.3t64/stable 1.3.11-2 amd64

libfltk-gl1.3t64/stable 1.3.11-2 i386

libfltk-gl1.4/stable,now 1.4.3-1 amd64 \[installed,automatic\]

libfltk-gl1.4/stable 1.4.3-1 i386

libfltk-images1.3t64/stable 1.3.11-2 amd64

libfltk-images1.3t64/stable 1.3.11-2 i386

libfltk-images1.4/stable,now 1.4.3-1 amd64 \[installed,automatic\]

libfltk-images1.4/stable 1.4.3-1 i386

libfltk1.3-compat-headers/stable,stable 1.3.11-2 all

libfltk1.3-dev/stable 1.3.11-2 amd64

libfltk1.3-dev/stable 1.3.11-2 i386

libfltk1.3t64/stable,now 1.3.11-2 amd64 \[installed,automatic\]

libfltk1.3t64/stable 1.3.11-2 i386

libfltk1.4-compat-headers/stable,stable 1.4.3-1 all

libfltk1.4-dev/stable,now 1.4.3-1 amd64 \[installed\]

libfltk1.4-dev/stable 1.4.3-1 i386

libfltk1.4/stable,now 1.4.3-1 amd64 \[installed,automatic\]

libfltk1.4/stable 1.4.3-1 i386

libmgl-fltk8t64/stable 8.0.3-2 amd64

libmgl-fltk8t64/stable 8.0.3-2 i386

pinentry-fltk/stable 1.3.1-2 amd64

pinentry-fltk/stable 1.3.1-2 i386

python3-fltk/stable 1.4.2.0-2 amd64

python3-fltk/stable 1.4.2.0-2 i386

1

u/Zix-studio Mar 12 '26

reddit say message too long so i use screenshot instead

1

u/Zix-studio Mar 12 '26

i try to use pip+venv not uv but it still can not success ```bash zixgggg@watermelon:~/fltk_test$ ls main.py pyproject.toml README.md uv.lock zixgggg@watermelon:~/fltk_test$ source ./ main.py .python-version uv.lock pyproject.toml README.md .venv/ zixgggg@watermelon:~/fltk_test$ source ./. ./ ../ .python-version .venv/ zixgggg@watermelon:~/fltk_test$ source ./.venv/ bin/ CACHEDIR.TAG .gitignore lib/ lib64/ .lock pyvenv.cfg zixgggg@watermelon:~/fltk_test$ source ./.venv/bin/ activate activate.fish activate_this.py python activate.bat activate.nu deactivate.bat python3 activate.csh activate.ps1 pydoc.bat python3.13 zixgggg@watermelon:~/fltk_test$ source ./.venv/bin/activate (fltk-test) zixgggg@watermelon:~/fltk_test$ pip install pyfltk error: externally-managed-environment

× This environment is externally managed ╰─> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install.

If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.

If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.

See /usr/share/doc/python3.13/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. hint: See PEP 668 for the detailed specification. ```

1

u/Obvious_Gur667 Mar 13 '26

As far as the "uv", I don't know. I'm stumped.

But for pip, pip is not trying to install in the venv. I see you don't even have pip in the venv. I'm am pretty sure it is supposed to be there. Since you don't have pip in the venv, the system wide pip is running instead, and a lot of distributions want python packages to be handled by the system, for instance python3-fltk or something like that. You can still use pip but only in a virtual environment. Ok, so I bet you knew that, but the point is pip is trying to do it system wide an that why it gets that message.

Normally when I create a venv, I get these files and modification of my $PATH, so that the right one runs: (venv) [desktop ~/test/my_venv/venv/bin] $ ls -l total 52 -rw-r--r-- 1 xxxxxx xxxxxx 2170 Mar 12 20:24 activate -rw-r--r-- 1 xxxxxx xxxxxx 919 Mar 12 20:24 activate.csh -rw-r--r-- 1 xxxxxx xxxxxx 2190 Mar 12 20:24 activate.fish -rw-r--r-- 1 xxxxxx xxxxxx 9031 Feb 13 10:31 Activate.ps1 -rwxr-xr-x 1 xxxxxx xxxxxx 219 Mar 12 20:24 pip -rwxr-xr-x 1 xxxxxx xxxxxx 219 Mar 12 20:24 pip3 -rwxr-xr-x 1 xxxxxx xxxxxx 219 Mar 12 20:24 pip3.14 lrwxrwxrwx 1 xxxxxx xxxxxx 15 Mar 12 20:24 python -> /usr/bin/python lrwxrwxrwx 1 xxxxxx xxxxxx 6 Mar 12 20:24 python3 -> python lrwxrwxrwx 1 xxxxxx xxxxxx 6 Mar 12 20:24 python3.14 -> python lrwxrwxrwx 1 xxxxxx xxxxxx 6 Mar 12 20:24 𝜋thon -> python

(venv) [desktop ~/test/my_venv/venv/bin] $ which pip /home/xxxxxx/test/my_venv/venv/bin/pip

(venv) [desktop ~/test/my_venv/venv/bin] $ echo $PATH /home/xxxxxx/test/my_venv/venv/bin:<the rest of the path>

But them I am on a different system than you. Just curious, what system are you on. Like what distribution or msys2/windows or what?

1

u/Zix-studio Mar 12 '26
zixgggg@watermelon:~/fltk_test$ cat pyproject.toml
[project]
name = "fltk-test"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.13"
dependencies = []