Python源码分析1 - Building Python

本文介绍了Python 2.5版本的源代码结构,包括各目录的作用及如何编译构建Python。还提到了一些关键组件如内置模块的实现和核心对象的定义。
2006年11月19日 21:40:00

Python是一种动态的脚本语言。具体的我就不多介绍了,可以参考www.python.org. Python是Open Source的,在www.python.org可以下载到最新的2.5版的源代码。源代码链接在这里:Python 2.5

下载下来之后直接解压缩可以看到如下的目录结构:

DemoDemo用的代码,主要用来展示Python的一些应用
DocPython的UserManual。Latex格式的
Grammar语法文件。这个语法文件会在Python运行的时候被用来分析Python源代码
IncludePython Include用的头文件
LibPython的库文件
MacFor Mac
Misc如字面意思,一些不适合放在其他地方的文件就放在这里了
ModulesPython的一些Built-in Module的实现
ObjectsPython的基本内部对象的实现,比如class/list等等
ParserPython的词法分析和语法分析
PC比较老的Windows和OS2的Port的项目以及Port用到的一些公用文件放在这里,PCBuild和PCBuild8都要用到这个目录的内容
PCBuildPython用于VS 2003的Project文件
PCbuild8Python用于VS 2005的Project文件
PythonPython主程序代码
RISCOSPython的RISC OS Port
ToolsBuild和Extend Python所需的工具

在Unix/Linux/Cywin下面可以直接键入:

./configure
make install

Windows用VC Build的话,可以直接打开PCBuild/PCBuild8下面相应的Solution来Build。直接Build的话会出不少错误,有必要做一些调整:

  1. 不是所有的Project都可以立刻Build,部分Project由于对第三方库有依赖,一般情况下可以直接跳过Build这些Project,而只Build核心的Python代码。在Configuration Manager里面直接Exclude就可以。必需的Project是:make_buildinfo, make_versioninfo, python, pythoncore
  2. PythoncoreProject少了一个文件,需要手动把Modules/_typesmodule.c加入到工程中去,再Build

今天就写到这里,下一篇我会通过跟踪执行一个最简单的Python代码来介绍Python执行的流程。

作者: ATField
E-Mail: atfield_zhang@hotmail.com
Blog:
http://blog.youkuaiyun.com/atfield



Trackback: http://tb.blog.youkuaiyun.com/TrackBack.aspx?PostId=1396729


# 安装基础编译工具 sudo apt install -y build-essential cmake python3-colcon-common-extensions # 安装 ROS2 核心依赖 sudo apt install -y ros-humble-ros-base \ python3-rosdep \ python3-rosinstall-generator Reading package lists... Done Building dependency tree... Done Reading state information... Done build-essential is already the newest version (12.10ubuntu1). build-essential set to manually installed. The following package was automatically installed and is no longer required: libllvm19 Use 'sudo apt autoremove' to remove it. The following additional packages will be installed: cmake-data docutils-common libjs-jquery-hotkeys libjs-jquery-isonscreen libjs-jquery-metadata libjs-jquery-tablesorter libjs-jquery-throttle-debounce libjsoncpp25 librhash0 python3-catkin-pkg-modules python3-colcon-argcomplete python3-colcon-bash python3-colcon-cd python3-colcon-cmake python3-colcon-core python3-colcon-defaults python3-colcon-devtools python3-colcon-installed-package-information python3-colcon-library-path python3-colcon-metadata python3-colcon-notification python3-colcon-output python3-colcon-override-check python3-colcon-package-information python3-colcon-package-selection python3-colcon-parallel-executor python3-colcon-pkg-config python3-colcon-powershell python3-colcon-python-setup-py python3-colcon-recursive-crawl python3-colcon-ros python3-colcon-test-result python3-colcon-zsh python3-coverage python3-distlib python3-docutils python3-empy python3-iniconfig python3-notify2 python3-pluggy python3-pytest python3-pytest-cov python3-roman Suggested packages: cmake-doc cmake-format elpa-cmake-mode ninja-build python3-pytest-repeat python3-pytest-rerunfailures python-coverage-doc docutils-doc fonts-linuxlibertine | ttf-linux-libertine texlive-lang-french texlive-latex-base texlive-latex-recommended The following NEW packages will be installed: cmake cmake-data docutils-common libjs-jquery-hotkeys libjs-jquery-isonscreen libjs-jquery-metadata libjs-jquery-tablesorter libjs-jquery-throttle-debounce libjsoncpp25 librhash0 python3-catkin-pkg-modules python3-colcon-argcomplete python3-colcon-bash python3-colcon-cd python3-colcon-cmake python3-colcon-common-extensions python3-colcon-core python3-colcon-defaults python3-colcon-devtools python3-colcon-installed-package-information python3-colcon-library-path python3-colcon-metadata python3-colcon-notification python3-colcon-output python3-colcon-override-check python3-colcon-package-information python3-colcon-package-selection python3-colcon-parallel-executor python3-colcon-pkg-config python3-colcon-powershell python3-colcon-python-setup-py python3-colcon-recursive-crawl python3-colcon-ros python3-colcon-test-result python3-colcon-zsh python3-coverage python3-distlib python3-docutils python3-empy python3-iniconfig python3-notify2 python3-pluggy python3-pytest python3-pytest-cov python3-roman 0 upgraded, 45 newly installed, 0 to remove and 1 not upgraded. Need to get 14.6 MB of archives. After this operation, 54.5 MB of additional disk space will be used. Get:1 http://packages.ros.org/ros2/ubuntu jammy/main arm64 python3-catkin-pkg-modules all 1.1.0-2 [43.3 kB] Get:2 http://ports.ubuntu.com/ubuntu-ports noble/universe arm64 libjs-jquery-hotkeys all 0~20130707+git2d51e3a9+dfsg-2ubuntu2 [11.5 kB] Get:3 http://ports.ubuntu.com/ubuntu-ports noble/main arm64 libjsoncpp25 arm64 1.9.5-6build1 [78.2 kB] Get:4 http://packages.ros.org/ros2/ubuntu jammy/main arm64 python3-colcon-core all 0.20.1+upstream-1 [71.0 kB] Get:5 http://packages.ros.org/ros2/ubuntu jammy/main arm64 python3-colcon-argcomplete all 0.3.3+upstream-1 [5,500 B] Get:6 http://packages.ros.org/ros2/ubuntu jammy/main arm64 python3-colcon-bash all 0.5.0-100 [5,620 B] Get:7 http://packages.ros.org/ros2/ubuntu jammy/main arm64 python3-colcon-package-information all 0.4.0-100 [8,456 B] Get:8 http://packages.ros.org/ros2/ubuntu jammy/main arm64 python3-colcon-cd all 0.2.1-100 [4,676 B] Get:9 http://packages.ros.org/ros2/ubuntu jammy/main arm64 python3-colcon-library-path all 0.2.1-100 [3,544 B] Get:10 http://packages.ros.org/ros2/ubuntu jammy/main arm64 python3-colcon-test-result all 0.3.8-100 [7,172 B] Get:11 http://packages.ros.org/ros2/ubuntu jammy/main arm64 python3-colcon-cmake all 0.2.29-100 [15.5 kB] Get:12 http://packages.ros.org/ros2/ubuntu jammy/main arm64 python3-colcon-defaults all 0.2.9+upstream-1 [5,776 B] Get:13 http://packages.ros.org/ros2/ubuntu jammy/main arm64 python3-colcon-devtools all 0.3.0-100 [4,856 B] Get:14 http://packages.ros.org/ros2/ubuntu jammy/main arm64 python3-colcon-metadata all 0.2.5-100 [9,188 B] Get:15 http://packages.ros.org/ros2/ubuntu jammy/main arm64 python3-colcon-notification all 0.3.0-100 [10.7 kB] Get:16 http://packages.ros.org/ros2/ubuntu jammy/main arm64 python3-colcon-output all 0.2.13-100 [6,756 B] Get:17 http://ports.ubuntu.com/ubuntu-ports noble/main arm64 librhash0 arm64 1.4.3-3build1 [126 kB] Get:18 http://packages.ros.org/ros2/ubuntu jammy/main arm64 python3-colcon-package-selection all 0.2.10-100 [7,540 B] Get:19 http://packages.ros.org/ros2/ubuntu jammy/main arm64 python3-colcon-parallel-executor all 0.3.0-100 [5,532 B] Get:20 http://packages.ros.org/ros2/ubuntu jammy/main arm64 python3-colcon-powershell all 0.4.0-100 [6,960 B] Get:21 http://packages.ros.org/ros2/ubuntu jammy/main arm64 python3-colcon-python-setup-py all 0.2.9-100 [6,596 B] Get:22 http://packages.ros.org/ros2/ubuntu jammy/main arm64 python3-colcon-recursive-crawl all 0.2.3-100 [3,896 B] Get:23 http://packages.ros.org/ros2/ubuntu jammy/main arm64 python3-colcon-pkg-config all 0.1.0-100 [3,204 B] Get:24 http://packages.ros.org/ros2/ubuntu jammy/main arm64 python3-colcon-ros all 0.5.0-100 [12.6 kB] Get:25 http://packages.ros.org/ros2/ubuntu jammy/main arm64 python3-colcon-zsh all 0.5.0-100 [5,560 B] Get:26 http://ports.ubuntu.com/ubuntu-ports noble/main arm64 cmake-data all 3.28.3-1build7 [2,155 kB] Get:27 http://packages.ros.org/ros2/ubuntu jammy/main arm64 python3-colcon-common-extensions all 0.3.0-100 [2,972 B] Get:28 http://packages.ros.org/ros2/ubuntu jammy/main arm64 python3-colcon-installed-package-information all 0.2.1-100 [7,680 B] Get:29 http://packages.ros.org/ros2/ubuntu jammy/main arm64 python3-colcon-override-check all 0.0.1-100 [5,212 B] Get:30 http://ports.ubuntu.com/ubuntu-ports noble/main arm64 cmake arm64 3.28.3-1build7 [10.3 MB] Get:31 http://ports.ubuntu.com/ubuntu-ports noble/main arm64 docutils-common all 0.20.1+dfsg-3 [132 kB] Get:32 http://ports.ubuntu.com/ubuntu-ports noble/universe arm64 libjs-jquery-metadata all 12-4 [6,582 B] Get:33 http://ports.ubuntu.com/ubuntu-ports noble/universe arm64 libjs-jquery-tablesorter all 1:2.31.3+dfsg1-3 [193 kB] Get:34 http://ports.ubuntu.com/ubuntu-ports noble/universe arm64 libjs-jquery-throttle-debounce all 1.1+dfsg.1-2 [12.5 kB] Get:35 http://ports.ubuntu.com/ubuntu-ports noble/main arm64 python3-roman all 3.3-3 [9,632 B] Get:36 http://ports.ubuntu.com/ubuntu-ports noble/main arm64 python3-docutils all 0.20.1+dfsg-3 [393 kB] Get:37 http://ports.ubuntu.com/ubuntu-ports noble/universe arm64 python3-distlib all 0.3.8-1 [318 kB] Get:38 http://ports.ubuntu.com/ubuntu-ports noble/universe arm64 python3-empy all 3.3.4-2 [65.7 kB] Get:39 http://ports.ubuntu.com/ubuntu-ports noble/universe arm64 python3-iniconfig all 1.1.1-2 [6,024 B] Get:40 http://ports.ubuntu.com/ubuntu-ports noble/universe arm64 python3-pluggy all 1.4.0-1 [20.4 kB] Get:41 http://ports.ubuntu.com/ubuntu-ports noble/universe arm64 python3-pytest all 7.4.4-1 [305 kB] Get:42 http://ports.ubuntu.com/ubuntu-ports noble/universe arm64 python3-notify2 all 0.3-5 [11.2 kB] Get:43 http://ports.ubuntu.com/ubuntu-ports noble/universe arm64 python3-coverage arm64 7.4.4+dfsg1-0ubuntu2 [148 kB] Get:44 http://ports.ubuntu.com/ubuntu-ports noble/universe arm64 libjs-jquery-isonscreen all 1.2.0-1.1 [3,244 B] Get:45 http://ports.ubuntu.com/ubuntu-ports noble/universe arm64 python3-pytest-cov all 4.1.0-1 [21.5 kB] Fetched 14.6 MB in 11s (1,311 kB/s) Extracting templates from packages: 100% Selecting previously unselected package libjs-jquery-hotkeys. (Reading database ... 138807 files and directories currently installed.) Preparing to unpack .../00-libjs-jquery-hotkeys_0~20130707+git2d51e3a9+dfsg-2ubuntu2_all.deb ... Unpacking libjs-jquery-hotkeys (0~20130707+git2d51e3a9+dfsg-2ubuntu2) ... Selecting previously unselected package libjsoncpp25:arm64. Preparing to unpack .../01-libjsoncpp25_1.9.5-6build1_arm64.deb ... Unpacking libjsoncpp25:arm64 (1.9.5-6build1) ... Selecting previously unselected package librhash0:arm64. Preparing to unpack .../02-librhash0_1.4.3-3build1_arm64.deb ... Unpacking librhash0:arm64 (1.4.3-3build1) ... Selecting previously unselected package cmake-data. Preparing to unpack .../03-cmake-data_3.28.3-1build7_all.deb ... Unpacking cmake-data (3.28.3-1build7) ... Selecting previously unselected package cmake. Preparing to unpack .../04-cmake_3.28.3-1build7_arm64.deb ... Unpacking cmake (3.28.3-1build7) ... Selecting previously unselected package docutils-common. Preparing to unpack .../05-docutils-common_0.20.1+dfsg-3_all.deb ... Unpacking docutils-common (0.20.1+dfsg-3) ... Selecting previously unselected package libjs-jquery-metadata. Preparing to unpack .../06-libjs-jquery-metadata_12-4_all.deb ... Unpacking libjs-jquery-metadata (12-4) ... Selecting previously unselected package libjs-jquery-tablesorter. Preparing to unpack .../07-libjs-jquery-tablesorter_1%3a2.31.3+dfsg1-3_all.deb ... Unpacking libjs-jquery-tablesorter (1:2.31.3+dfsg1-3) ... Selecting previously unselected package libjs-jquery-throttle-debounce. Preparing to unpack .../08-libjs-jquery-throttle-debounce_1.1+dfsg.1-2_all.deb ... Unpacking libjs-jquery-throttle-debounce (1.1+dfsg.1-2) ... Selecting previously unselected package python3-roman. Preparing to unpack .../09-python3-roman_3.3-3_all.deb ... Unpacking python3-roman (3.3-3) ... Selecting previously unselected package python3-docutils. Preparing to unpack .../10-python3-docutils_0.20.1+dfsg-3_all.deb ... Unpacking python3-docutils (0.20.1+dfsg-3) ... Selecting previously unselected package python3-catkin-pkg-modules. Preparing to unpack .../11-python3-catkin-pkg-modules_1.1.0-2_all.deb ... Unpacking python3-catkin-pkg-modules (1.1.0-2) ... Selecting previously unselected package python3-distlib. Preparing to unpack .../12-python3-distlib_0.3.8-1_all.deb ... Unpacking python3-distlib (0.3.8-1) ... Selecting previously unselected package python3-empy. Preparing to unpack .../13-python3-empy_3.3.4-2_all.deb ... Unpacking python3-empy (3.3.4-2) ... Selecting previously unselected package python3-iniconfig. Preparing to unpack .../14-python3-iniconfig_1.1.1-2_all.deb ... Unpacking python3-iniconfig (1.1.1-2) ... Selecting previously unselected package python3-pluggy. Preparing to unpack .../15-python3-pluggy_1.4.0-1_all.deb ... Unpacking python3-pluggy (1.4.0-1) ... Selecting previously unselected package python3-pytest. Preparing to unpack .../16-python3-pytest_7.4.4-1_all.deb ... Unpacking python3-pytest (7.4.4-1) ... Selecting previously unselected package python3-colcon-core. Preparing to unpack .../17-python3-colcon-core_0.20.1+upstream-1_all.deb ... Unpacking python3-colcon-core (0.20.1+upstream-1) ... Selecting previously unselected package python3-colcon-argcomplete. Preparing to unpack .../18-python3-colcon-argcomplete_0.3.3+upstream-1_all.deb ... Unpacking python3-colcon-argcomplete (0.3.3+upstream-1) ... Selecting previously unselected package python3-colcon-bash. Preparing to unpack .../19-python3-colcon-bash_0.5.0-100_all.deb ... Unpacking python3-colcon-bash (0.5.0-100) ... Selecting previously unselected package python3-colcon-package-information. Preparing to unpack .../20-python3-colcon-package-information_0.4.0-100_all.deb ... Unpacking python3-colcon-package-information (0.4.0-100) ... Selecting previously unselected package python3-colcon-cd. Preparing to unpack .../21-python3-colcon-cd_0.2.1-100_all.deb ... Unpacking python3-colcon-cd (0.2.1-100) ... Selecting previously unselected package python3-colcon-library-path. Preparing to unpack .../22-python3-colcon-library-path_0.2.1-100_all.deb ... Unpacking python3-colcon-library-path (0.2.1-100) ... Selecting previously unselected package python3-colcon-test-result. Preparing to unpack .../23-python3-colcon-test-result_0.3.8-100_all.deb ... Unpacking python3-colcon-test-result (0.3.8-100) ... Selecting previously unselected package python3-colcon-cmake. Preparing to unpack .../24-python3-colcon-cmake_0.2.29-100_all.deb ... Unpacking python3-colcon-cmake (0.2.29-100) ... Selecting previously unselected package python3-colcon-defaults. Preparing to unpack .../25-python3-colcon-defaults_0.2.9+upstream-1_all.deb ... Unpacking python3-colcon-defaults (0.2.9+upstream-1) ... Selecting previously unselected package python3-colcon-devtools. Preparing to unpack .../26-python3-colcon-devtools_0.3.0-100_all.deb ... Unpacking python3-colcon-devtools (0.3.0-100) ... Selecting previously unselected package python3-colcon-metadata. Preparing to unpack .../27-python3-colcon-metadata_0.2.5-100_all.deb ... Unpacking python3-colcon-metadata (0.2.5-100) ... Selecting previously unselected package python3-notify2. Preparing to unpack .../28-python3-notify2_0.3-5_all.deb ... Unpacking python3-notify2 (0.3-5) ... Selecting previously unselected package python3-colcon-notification. Preparing to unpack .../29-python3-colcon-notification_0.3.0-100_all.deb ... Unpacking python3-colcon-notification (0.3.0-100) ... Selecting previously unselected package python3-colcon-output. Preparing to unpack .../30-python3-colcon-output_0.2.13-100_all.deb ... Unpacking python3-colcon-output (0.2.13-100) ... Selecting previously unselected package python3-colcon-package-selection. Preparing to unpack .../31-python3-colcon-package-selection_0.2.10-100_all.deb ... Unpacking python3-colcon-package-selection (0.2.10-100) ... Selecting previously unselected package python3-colcon-parallel-executor. Preparing to unpack .../32-python3-colcon-parallel-executor_0.3.0-100_all.deb ... Unpacking python3-colcon-parallel-executor (0.3.0-100) ... Selecting previously unselected package python3-colcon-powershell. Preparing to unpack .../33-python3-colcon-powershell_0.4.0-100_all.deb ... Unpacking python3-colcon-powershell (0.4.0-100) ... Selecting previously unselected package python3-colcon-python-setup-py. Preparing to unpack .../34-python3-colcon-python-setup-py_0.2.9-100_all.deb ... Unpacking python3-colcon-python-setup-py (0.2.9-100) ... Selecting previously unselected package python3-colcon-recursive-crawl. Preparing to unpack .../35-python3-colcon-recursive-crawl_0.2.3-100_all.deb ... Unpacking python3-colcon-recursive-crawl (0.2.3-100) ... Selecting previously unselected package python3-colcon-pkg-config. Preparing to unpack .../36-python3-colcon-pkg-config_0.1.0-100_all.deb ... Unpacking python3-colcon-pkg-config (0.1.0-100) ... Selecting previously unselected package python3-colcon-ros. Preparing to unpack .../37-python3-colcon-ros_0.5.0-100_all.deb ... Unpacking python3-colcon-ros (0.5.0-100) ... Selecting previously unselected package python3-colcon-zsh. Preparing to unpack .../38-python3-colcon-zsh_0.5.0-100_all.deb ... Unpacking python3-colcon-zsh (0.5.0-100) ... Selecting previously unselected package python3-colcon-common-extensions. Preparing to unpack .../39-python3-colcon-common-extensions_0.3.0-100_all.deb ... Unpacking python3-colcon-common-extensions (0.3.0-100) ... Selecting previously unselected package python3-colcon-installed-package-information. Preparing to unpack .../40-python3-colcon-installed-package-information_0.2.1-100_all.deb ... Unpacking python3-colcon-installed-package-information (0.2.1-100) ... Selecting previously unselected package python3-colcon-override-check. Preparing to unpack .../41-python3-colcon-override-check_0.0.1-100_all.deb ... Unpacking python3-colcon-override-check (0.0.1-100) ... Selecting previously unselected package python3-coverage. Preparing to unpack .../42-python3-coverage_7.4.4+dfsg1-0ubuntu2_arm64.deb ... Unpacking python3-coverage (7.4.4+dfsg1-0ubuntu2) ... Selecting previously unselected package libjs-jquery-isonscreen. Preparing to unpack .../43-libjs-jquery-isonscreen_1.2.0-1.1_all.deb ... Unpacking libjs-jquery-isonscreen (1.2.0-1.1) ... Selecting previously unselected package python3-pytest-cov. Preparing to unpack .../44-python3-pytest-cov_4.1.0-1_all.deb ... Unpacking python3-pytest-cov (4.1.0-1) ... Setting up python3-iniconfig (1.1.1-2) ... Setting up python3-coverage (7.4.4+dfsg1-0ubuntu2) ... Setting up libjs-jquery-throttle-debounce (1.1+dfsg.1-2) ... Setting up python3-distlib (0.3.8-1) ... Setting up python3-empy (3.3.4-2) ... Setting up python3-roman (3.3-3) ... Setting up libjs-jquery-metadata (12-4) ... Setting up libjs-jquery-isonscreen (1.2.0-1.1) ... Setting up libjsoncpp25:arm64 (1.9.5-6build1) ... Setting up python3-pluggy (1.4.0-1) ... Setting up python3-notify2 (0.3-5) ... Setting up libjs-jquery-tablesorter (1:2.31.3+dfsg1-3) ... Setting up librhash0:arm64 (1.4.3-3build1) ... Setting up docutils-common (0.20.1+dfsg-3) ... Setting up cmake-data (3.28.3-1build7) ... Setting up libjs-jquery-hotkeys (0~20130707+git2d51e3a9+dfsg-2ubuntu2) ... Setting up python3-pytest (7.4.4-1) ... Setting up python3-pytest-cov (4.1.0-1) ... Setting up python3-colcon-core (0.20.1+upstream-1) ... Setting up python3-colcon-notification (0.3.0-100) ... Setting up python3-colcon-pkg-config (0.1.0-100) ... Setting up python3-colcon-zsh (0.5.0-100) ... Setting up python3-colcon-library-path (0.2.1-100) ... Setting up cmake (3.28.3-1build7) ... Setting up python3-colcon-installed-package-information (0.2.1-100) ... Setting up python3-colcon-metadata (0.2.5-100) ... Setting up python3-colcon-python-setup-py (0.2.9-100) ... Setting up python3-colcon-package-information (0.4.0-100) ... Setting up python3-colcon-output (0.2.13-100) ... Setting up python3-colcon-override-check (0.0.1-100) ... Setting up python3-colcon-package-selection (0.2.10-100) ... Setting up python3-colcon-defaults (0.2.9+upstream-1) ... Setting up python3-colcon-devtools (0.3.0-100) ... Setting up python3-colcon-test-result (0.3.8-100) ... Setting up python3-colcon-powershell (0.4.0-100) ... Setting up python3-colcon-bash (0.5.0-100) ... Setting up python3-colcon-parallel-executor (0.3.0-100) ... Setting up python3-colcon-argcomplete (0.3.3+upstream-1) ... Setting up python3-colcon-recursive-crawl (0.2.3-100) ... Setting up python3-colcon-cmake (0.2.29-100) ... Setting up python3-colcon-cd (0.2.1-100) ... Processing triggers for libc-bin (2.39-0ubuntu8.6) ... Processing triggers for man-db (2.12.0-4build2) ... Processing triggers for sgml-base (1.31) ... Setting up python3-docutils (0.20.1+dfsg-3) ... Setting up python3-catkin-pkg-modules (1.1.0-2) ... Setting up python3-colcon-ros (0.5.0-100) ... Setting up python3-colcon-common-extensions (0.3.0-100) ... Reading package lists... Done Building dependency tree... Done Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: ros-humble-action-msgs : Depends: libpython3.10 (>= 3.10.0) but it is not installable Depends: ros-humble-unique-identifier-msgs but it is not going to be installed ros-humble-actionlib-msgs : Depends: libpython3.10 (>= 3.10.0) but it is not installable ros-humble-builtin-interfaces : Depends: libpython3.10 (>= 3.10.0) but it is not installable ros-humble-composition-interfaces : Depends: libpython3.10 (>= 3.10.0) but it is not installable ros-humble-diagnostic-msgs : Depends: libpython3.10 (>= 3.10.0) but it is not installable ros-humble-geometry-msgs : Depends: libpython3.10 (>= 3.10.0) but it is not installable ros-humble-lifecycle-msgs : Depends: libpython3.10 (>= 3.10.0) but it is not installable ros-humble-nav-msgs : Depends: libpython3.10 (>= 3.10.0) but it is not installable ros-humble-pluginlib : Depends: libtinyxml2-9 (>= 8.0.0) but it is not installable ros-humble-rcl-interfaces : Depends: libpython3.10 (>= 3.10.0) but it is not installable ros-humble-rcl-logging-spdlog : Depends: libspdlog1-fmt8 but it is not installable ros-humble-rclpy : Depends: libpython3.10 (>= 3.10.0) but it is not installable Depends: ros-humble-unique-identifier-msgs but it is not going to be installed ros-humble-rmw-implementation : Depends: ros-humble-rmw-fastrtps-cpp but it is not installable or ros-humble-rmw-cyclonedds-cpp but it is not installable or ros-humble-rmw-connextdds but it is not installable ros-humble-rosbag2-compression : Depends: libtinyxml2-9 (>= 8.0.0) but it is not installable ros-humble-rosbag2-cpp : Depends: libtinyxml2-9 (>= 8.0.0) but it is not installable ros-humble-rosbag2-py : Depends: libpython3.10 (>= 3.10.0) but it is not installable Depends: libtinyxml2-9 (>= 8.0.0) but it is not installable Depends: libyaml-cpp0.7 (>= 0.7.0) but it is not installable ros-humble-rosbag2-storage : Depends: libtinyxml2-9 (>= 8.0.0) but it is not installable Depends: libyaml-cpp0.7 (>= 0.7.0) but it is not installable ros-humble-rosbag2-storage-default-plugins : Depends: libyaml-cpp0.7 (>= 0.7.0) but it is not installable ros-humble-rosbag2-transport : Depends: libyaml-cpp0.7 (>= 0.7.0) but it is not installable Depends: ros-humble-rosbag2-interfaces but it is not going to be installed ros-humble-rosgraph-msgs : Depends: libpython3.10 (>= 3.10.0) but it is not installable ros-humble-sensor-msgs : Depends: libpython3.10 (>= 3.10.0) but it is not installable ros-humble-shape-msgs : Depends: libpython3.10 (>= 3.10.0) but it is not installable ros-humble-statistics-msgs : Depends: libpython3.10 (>= 3.10.0) but it is not installable ros-humble-std-msgs : Depends: libpython3.10 (>= 3.10.0) but it is not installable ros-humble-std-srvs : Depends: libpython3.10 (>= 3.10.0) but it is not installable ros-humble-stereo-msgs : Depends: libpython3.10 (>= 3.10.0) but it is not installable ros-humble-tf2-msgs : Depends: libpython3.10 (>= 3.10.0) but it is not installable ros-humble-tf2-py : Depends: libpython3.10 (>= 3.10.0) but it is not installable ros-humble-trajectory-msgs : Depends: libpython3.10 (>= 3.10.0) but it is not installable ros-humble-urdf : Depends: libtinyxml2-9 (>= 8.0.0) but it is not installable ros-humble-visualization-msgs : Depends: libpython3.10 (>= 3.10.0) but it is not installable E: Unable to correct problems, you have held broken packages.
最新发布
12-16
jzuser@vpc87-3:~$ # 安装nnunet pip install nnunet git clone https://github.com/MIC-DKFZ/nnUNet.git cd nnUNet pip install -e . Defaulting to user installation because normal site-packages is not writeable Collecting nnunet Downloading nnunet-1.7.1.tar.gz (276 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 276.6/276.6 KB 130.9 kB/s eta 0:00:00 Preparing metadata (setup.py) ... done Requirement already satisfied: SimpleITK in ./.local/lib/python3.10/site-packages (from nnunet) (2.5.2) Requirement already satisfied: batchgenerators>=0.23 in ./.local/lib/python3.10/site-packages (from nnunet) (0.25.1) Requirement already satisfied: dicom2nifti in ./.local/lib/python3.10/site-packages (from nnunet) (2.6.2) Requirement already satisfied: matplotlib in ./.local/lib/python3.10/site-packages (from nnunet) (3.10.3) Requirement already satisfied: medpy in ./.local/lib/python3.10/site-packages (from nnunet) (0.5.2) Requirement already satisfied: nibabel in ./.local/lib/python3.10/site-packages (from nnunet) (5.3.2) Requirement already satisfied: numpy in ./.local/lib/python3.10/site-packages (from nnunet) (2.2.6) Requirement already satisfied: pandas in ./.local/lib/python3.10/site-packages (from nnunet) (2.3.1) Requirement already satisfied: requests in ./.local/lib/python3.10/site-packages (from nnunet) (2.32.4) Requirement already satisfied: scikit-image>=0.14 in ./.local/lib/python3.10/site-packages (from nnunet) (0.25.2) Requirement already satisfied: scikit-learn in ./.local/lib/python3.10/site-packages (from nnunet) (1.7.0) Requirement already satisfied: scipy in ./.local/lib/python3.10/site-packages (from nnunet) (1.15.3) Requirement already satisfied: tifffile in ./.local/lib/python3.10/site-packages (from nnunet) (2025.5.10) Requirement already satisfied: torch>1.10.0 in ./.local/lib/python3.10/site-packages (from nnunet) (2.6.0) Requirement already satisfied: tqdm in ./.local/lib/python3.10/site-packages (from nnunet) (4.67.1) Requirement already satisfied: future in /usr/lib/python3/dist-packages (from batchgenerators>=0.23->nnunet) (0.18.2) Requirement already satisfied: pillow>=7.1.2 in ./.local/lib/python3.10/site-packages (from batchgenerators>=0.23->nnunet) (11.3.0) Requirement already satisfied: unittest2 in ./.local/lib/python3.10/site-packages (from batchgenerators>=0.23->nnunet) (1.1.0) Requirement already satisfied: threadpoolctl in ./.local/lib/python3.10/site-packages (from batchgenerators>=0.23->nnunet) (3.6.0) Requirement already satisfied: packaging>=21 in ./.local/lib/python3.10/site-packages (from scikit-image>=0.14->nnunet) (25.0) Requirement already satisfied: imageio!=2.35.0,>=2.33 in ./.local/lib/python3.10/site-packages (from scikit-image>=0.14->nnunet) (2.37.0) Requirement already satisfied: lazy-loader>=0.4 in ./.local/lib/python3.10/site-packages (from scikit-image>=0.14->nnunet) (0.4) Requirement already satisfied: networkx>=3.0 in ./.local/lib/python3.10/site-packages (from scikit-image>=0.14->nnunet) (3.4.2) Requirement already satisfied: fsspec in ./.local/lib/python3.10/site-packages (from torch>1.10.0->nnunet) (2025.5.1) Requirement already satisfied: filelock in ./.local/lib/python3.10/site-packages (from torch>1.10.0->nnunet) (3.11.0) Requirement already satisfied: nvidia-cufft-cu12==11.2.1.3 in ./.local/lib/python3.10/site-packages (from torch>1.10.0->nnunet) (11.2.1.3) Requirement already satisfied: nvidia-cudnn-cu12==9.1.0.70 in ./.local/lib/python3.10/site-packages (from torch>1.10.0->nnunet) (9.1.0.70) Requirement already satisfied: jinja2 in ./.local/lib/python3.10/site-packages (from torch>1.10.0->nnunet) (3.1.6) Requirement already satisfied: nvidia-cuda-cupti-cu12==12.4.127 in ./.local/lib/python3.10/site-packages (from torch>1.10.0->nnunet) (12.4.127) Requirement already satisfied: sympy==1.13.1 in ./.local/lib/python3.10/site-packages (from torch>1.10.0->nnunet) (1.13.1) Requirement already satisfied: typing-extensions>=4.10.0 in ./.local/lib/python3.10/site-packages (from torch>1.10.0->nnunet) (4.14.1) Requirement already satisfied: nvidia-nvtx-cu12==12.4.127 in ./.local/lib/python3.10/site-packages (from torch>1.10.0->nnunet) (12.4.127) Requirement already satisfied: nvidia-cuda-runtime-cu12==12.4.127 in ./.local/lib/python3.10/site-packages (from torch>1.10.0->nnunet) (12.4.127) Requirement already satisfied: triton==3.2.0 in ./.local/lib/python3.10/site-packages (from torch>1.10.0->nnunet) (3.2.0) Requirement already satisfied: nvidia-nccl-cu12==2.21.5 in ./.local/lib/python3.10/site-packages (from torch>1.10.0->nnunet) (2.21.5) Requirement already satisfied: nvidia-nvjitlink-cu12==12.4.127 in ./.local/lib/python3.10/site-packages (from torch>1.10.0->nnunet) (12.4.127) Requirement already satisfied: nvidia-cuda-nvrtc-cu12==12.4.127 in ./.local/lib/python3.10/site-packages (from torch>1.10.0->nnunet) (12.4.127) Requirement already satisfied: nvidia-curand-cu12==10.3.5.147 in ./.local/lib/python3.10/site-packages (from torch>1.10.0->nnunet) (10.3.5.147) Requirement already satisfied: nvidia-cublas-cu12==12.4.5.8 in ./.local/lib/python3.10/site-packages (from torch>1.10.0->nnunet) (12.4.5.8) Requirement already satisfied: nvidia-cusparse-cu12==12.3.1.170 in ./.local/lib/python3.10/site-packages (from torch>1.10.0->nnunet) (12.3.1.170) Requirement already satisfied: nvidia-cusolver-cu12==11.6.1.9 in ./.local/lib/python3.10/site-packages (from torch>1.10.0->nnunet) (11.6.1.9) Requirement already satisfied: nvidia-cusparselt-cu12==0.6.2 in ./.local/lib/python3.10/site-packages (from torch>1.10.0->nnunet) (0.6.2) Requirement already satisfied: mpmath<1.4,>=1.1.0 in ./.local/lib/python3.10/site-packages (from sympy==1.13.1->torch>1.10.0->nnunet) (1.3.0) Requirement already satisfied: pydicom>=3.0.0 in ./.local/lib/python3.10/site-packages (from dicom2nifti->nnunet) (3.0.1) Requirement already satisfied: python-gdcm in ./.local/lib/python3.10/site-packages (from dicom2nifti->nnunet) (3.0.26) Requirement already satisfied: kiwisolver>=1.3.1 in ./.local/lib/python3.10/site-packages (from matplotlib->nnunet) (1.4.8) Requirement already satisfied: python-dateutil>=2.7 in ./.local/lib/python3.10/site-packages (from matplotlib->nnunet) (2.9.0.post0) Requirement already satisfied: cycler>=0.10 in ./.local/lib/python3.10/site-packages (from matplotlib->nnunet) (0.12.1) Requirement already satisfied: fonttools>=4.22.0 in ./.local/lib/python3.10/site-packages (from matplotlib->nnunet) (4.58.5) Requirement already satisfied: contourpy>=1.0.1 in ./.local/lib/python3.10/site-packages (from matplotlib->nnunet) (1.3.2) Requirement already satisfied: pyparsing>=2.3.1 in /usr/lib/python3/dist-packages (from matplotlib->nnunet) (2.4.7) Requirement already satisfied: importlib-resources>=5.12 in ./.local/lib/python3.10/site-packages (from nibabel->nnunet) (6.5.2) Requirement already satisfied: tzdata>=2022.7 in ./.local/lib/python3.10/site-packages (from pandas->nnunet) (2025.2) Requirement already satisfied: pytz>=2020.1 in /usr/lib/python3/dist-packages (from pandas->nnunet) (2022.1) Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3/dist-packages (from requests->nnunet) (3.3) Requirement already satisfied: charset_normalizer<4,>=2 in ./.local/lib/python3.10/site-packages (from requests->nnunet) (3.4.2) Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests->nnunet) (2020.6.20) Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/lib/python3/dist-packages (from requests->nnunet) (1.26.5) Requirement already satisfied: joblib>=1.2.0 in ./.local/lib/python3.10/site-packages (from scikit-learn->nnunet) (1.5.1) Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from python-dateutil>=2.7->matplotlib->nnunet) (1.16.0) Requirement already satisfied: MarkupSafe>=2.0 in ./.local/lib/python3.10/site-packages (from jinja2->torch>1.10.0->nnunet) (3.0.2) Collecting argparse Using cached argparse-1.4.0-py2.py3-none-any.whl (23 kB) Requirement already satisfied: traceback2 in ./.local/lib/python3.10/site-packages (from unittest2->batchgenerators>=0.23->nnunet) (1.4.0) Requirement already satisfied: linecache2 in ./.local/lib/python3.10/site-packages (from traceback2->unittest2->batchgenerators>=0.23->nnunet) (1.0.0) Building wheels for collected packages: nnunet Building wheel for nnunet (setup.py) ... done Created wheel for nnunet: filename=nnunet-1.7.1-py3-none-any.whl size=531286 sha256=f53d1febf676772a5c8b4ea6f86275f94bf177a86bd0690c254641329c7faf40 Stored in directory: /home/jzuser/.cache/pip/wheels/0e/21/5a/48b9c7298aa4ea109aafb375f8e97b67c5b0921fa533672fd0 Successfully built nnunet Installing collected packages: argparse, nnunet Successfully installed argparse-1.4.0 nnunet-1.7.1 fatal: destination path 'nnUNet' already exists and is not an empty directory. Defaulting to user installation because normal site-packages is not writeable Obtaining file:///home/jzuser/nnUNet Installing build dependencies ... done Checking if build backend supports build_editable ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... done Installing collected packages: UNKNOWN Running setup.py develop for UNKNOWN error: subprocess-exited-with-error × python setup.py develop did not run successfully. │ exit code: 1 ╰─> [32 lines of output] running develop /usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools. warnings.warn( WARNING: The user site-packages directory is disabled. /usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( error: can't create or remove files in install directory The following error occurred while trying to add or remove files in the installation directory: [Errno 13] Permission denied: '/usr/local/lib/python3.10/dist-packages/test-easy-install-25883.write-test' The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was: /usr/local/lib/python3.10/dist-packages/ Perhaps your account does not have write access to this directory? If the installation directory is a system-owned directory, you may need to sign in as the administrator or "root" account. If you do not have administrative access to this machine, you may wish to choose a different installation directory, preferably one that is listed in your PYTHONPATH environment variable. For information on other options, you may wish to consult the documentation at: https://setuptools.pypa.io/en/latest/deprecated/easy_install.html Please make the appropriate changes for your system and try again. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × python setup.py develop did not run successfully. │ exit code: 1 ╰─> [32 lines of output] running develop /usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools. warnings.warn( WARNING: The user site-packages directory is disabled. /usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( error: can't create or remove files in install directory The following error occurred while trying to add or remove files in the installation directory: [Errno 13] Permission denied: '/usr/local/lib/python3.10/dist-packages/test-easy-install-25883.write-test' The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was: /usr/local/lib/python3.10/dist-packages/ Perhaps your account does not have write access to this directory? If the installation directory is a system-owned directory, you may need to sign in as the administrator or "root" account. If you do not have administrative access to this machine, you may wish to choose a different installation directory, preferably one that is listed in your PYTHONPATH environment variable. For information on other options, you may wish to consult the documentation at: https://setuptools.pypa.io/en/latest/deprecated/easy_install.html Please make the appropriate changes for your system and try again. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip.
08-15
(nnunet_env) jzuser@vpc87-3:~/Work_dir/Gn/pystudy/nnUNet/nnUNet$ pip install -e . Obtaining file:///home/jzuser/Work_dir/Gn/pystudy/nnUNet/nnUNet Installing build dependencies ... done Checking if build backend supports build_editable ... done Getting requirements to build editable ... done Preparing editable metadata (pyproject.toml) ... done Requirement already satisfied: blosc2>=3.0.0b1 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from nnunetv2==2.6.2) (3.7.0) Requirement already satisfied: batchgeneratorsv2>=0.3.0 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from nnunetv2==2.6.2) (0.3.0) Requirement already satisfied: tifffile in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from nnunetv2==2.6.2) (2025.5.10) Requirement already satisfied: einops in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from nnunetv2==2.6.2) (0.8.1) Requirement already satisfied: scikit-learn in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from nnunetv2==2.6.2) (1.7.1) Requirement already satisfied: requests in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from nnunetv2==2.6.2) (2.32.4) Requirement already satisfied: scipy in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from nnunetv2==2.6.2) (1.15.3) Requirement already satisfied: batchgenerators>=0.25.1 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from nnunetv2==2.6.2) (0.25.1) Requirement already satisfied: pandas in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from nnunetv2==2.6.2) (2.3.1) Requirement already satisfied: numpy>=1.24 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from nnunetv2==2.6.2) (2.2.6) Requirement already satisfied: SimpleITK>=2.2.1 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from nnunetv2==2.6.2) (2.5.2) Requirement already satisfied: tqdm in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from nnunetv2==2.6.2) (4.67.1) Requirement already satisfied: scikit-image>=0.19.3 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from nnunetv2==2.6.2) (0.25.2) Requirement already satisfied: torch>=2.1.2 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from nnunetv2==2.6.2) (2.8.0) Requirement already satisfied: acvl-utils<0.3,>=0.2.3 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from nnunetv2==2.6.2) (0.2.5) Requirement already satisfied: dynamic-network-architectures<0.5,>=0.4.1 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from nnunetv2==2.6.2) (0.4.2) Requirement already satisfied: nibabel in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from nnunetv2==2.6.2) (5.3.2) Requirement already satisfied: yacs in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from nnunetv2==2.6.2) (0.1.8) Requirement already satisfied: matplotlib in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from nnunetv2==2.6.2) (3.10.5) Requirement already satisfied: graphviz in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from nnunetv2==2.6.2) (0.21) Requirement already satisfied: seaborn in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from nnunetv2==2.6.2) (0.13.2) Requirement already satisfied: imagecodecs in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from nnunetv2==2.6.2) (2025.3.30) Requirement already satisfied: connected-components-3d in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from acvl-utils<0.3,>=0.2.3->nnunetv2==2.6.2) (3.24.0) Requirement already satisfied: future in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from batchgenerators>=0.25.1->nnunetv2==2.6.2) (1.0.0) Requirement already satisfied: pillow>=7.1.2 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from batchgenerators>=0.25.1->nnunetv2==2.6.2) (11.3.0) Requirement already satisfied: threadpoolctl in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from batchgenerators>=0.25.1->nnunetv2==2.6.2) (3.6.0) Requirement already satisfied: unittest2 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from batchgenerators>=0.25.1->nnunetv2==2.6.2) (1.1.0) Requirement already satisfied: fft-conv-pytorch in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from batchgeneratorsv2>=0.3.0->nnunetv2==2.6.2) (1.2.0) Requirement already satisfied: py-cpuinfo in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from blosc2>=3.0.0b1->nnunetv2==2.6.2) (9.0.0) Requirement already satisfied: numexpr in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from blosc2>=3.0.0b1->nnunetv2==2.6.2) (2.11.0) Requirement already satisfied: platformdirs in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from blosc2>=3.0.0b1->nnunetv2==2.6.2) (4.3.8) Requirement already satisfied: msgpack in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from blosc2>=3.0.0b1->nnunetv2==2.6.2) (1.1.1) Requirement already satisfied: ndindex in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from blosc2>=3.0.0b1->nnunetv2==2.6.2) (1.10.0) Requirement already satisfied: timm in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from dynamic-network-architectures<0.5,>=0.4.1->nnunetv2==2.6.2) (1.0.19) Requirement already satisfied: lazy-loader>=0.4 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from scikit-image>=0.19.3->nnunetv2==2.6.2) (0.4) Requirement already satisfied: networkx>=3.0 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from scikit-image>=0.19.3->nnunetv2==2.6.2) (3.4.2) Requirement already satisfied: imageio!=2.35.0,>=2.33 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from scikit-image>=0.19.3->nnunetv2==2.6.2) (2.37.0) Requirement already satisfied: packaging>=21 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from scikit-image>=0.19.3->nnunetv2==2.6.2) (25.0) Requirement already satisfied: jinja2 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from torch>=2.1.2->nnunetv2==2.6.2) (3.1.6) Requirement already satisfied: nvidia-cudnn-cu12==9.10.2.21 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from torch>=2.1.2->nnunetv2==2.6.2) (9.10.2.21) Requirement already satisfied: sympy>=1.13.3 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from torch>=2.1.2->nnunetv2==2.6.2) (1.14.0) Requirement already satisfied: nvidia-cufile-cu12==1.13.1.3 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from torch>=2.1.2->nnunetv2==2.6.2) (1.13.1.3) Requirement already satisfied: nvidia-cuda-runtime-cu12==12.8.90 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from torch>=2.1.2->nnunetv2==2.6.2) (12.8.90) Requirement already satisfied: nvidia-curand-cu12==10.3.9.90 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from torch>=2.1.2->nnunetv2==2.6.2) (10.3.9.90) Requirement already satisfied: nvidia-cusparselt-cu12==0.7.1 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from torch>=2.1.2->nnunetv2==2.6.2) (0.7.1) Requirement already satisfied: typing-extensions>=4.10.0 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from torch>=2.1.2->nnunetv2==2.6.2) (4.14.1) Requirement already satisfied: filelock in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from torch>=2.1.2->nnunetv2==2.6.2) (3.18.0) Requirement already satisfied: nvidia-cufft-cu12==11.3.3.83 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from torch>=2.1.2->nnunetv2==2.6.2) (11.3.3.83) Requirement already satisfied: nvidia-cublas-cu12==12.8.4.1 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from torch>=2.1.2->nnunetv2==2.6.2) (12.8.4.1) Requirement already satisfied: nvidia-nvtx-cu12==12.8.90 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from torch>=2.1.2->nnunetv2==2.6.2) (12.8.90) Requirement already satisfied: nvidia-cuda-cupti-cu12==12.8.90 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from torch>=2.1.2->nnunetv2==2.6.2) (12.8.90) Requirement already satisfied: fsspec in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from torch>=2.1.2->nnunetv2==2.6.2) (2025.7.0) Requirement already satisfied: nvidia-cusparse-cu12==12.5.8.93 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from torch>=2.1.2->nnunetv2==2.6.2) (12.5.8.93) Requirement already satisfied: nvidia-nvjitlink-cu12==12.8.93 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from torch>=2.1.2->nnunetv2==2.6.2) (12.8.93) Requirement already satisfied: nvidia-cuda-nvrtc-cu12==12.8.93 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from torch>=2.1.2->nnunetv2==2.6.2) (12.8.93) Requirement already satisfied: nvidia-nccl-cu12==2.27.3 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from torch>=2.1.2->nnunetv2==2.6.2) (2.27.3) Requirement already satisfied: triton==3.4.0 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from torch>=2.1.2->nnunetv2==2.6.2) (3.4.0) Requirement already satisfied: nvidia-cusolver-cu12==11.7.3.90 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from torch>=2.1.2->nnunetv2==2.6.2) (11.7.3.90) Requirement already satisfied: setuptools>=40.8.0 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from triton==3.4.0->torch>=2.1.2->nnunetv2==2.6.2) (59.6.0) Requirement already satisfied: contourpy>=1.0.1 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from matplotlib->nnunetv2==2.6.2) (1.3.2) Requirement already satisfied: kiwisolver>=1.3.1 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from matplotlib->nnunetv2==2.6.2) (1.4.9) Requirement already satisfied: fonttools>=4.22.0 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from matplotlib->nnunetv2==2.6.2) (4.59.0) Requirement already satisfied: pyparsing>=2.3.1 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from matplotlib->nnunetv2==2.6.2) (3.2.3) Requirement already satisfied: python-dateutil>=2.7 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from matplotlib->nnunetv2==2.6.2) (2.9.0.post0) Requirement already satisfied: cycler>=0.10 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from matplotlib->nnunetv2==2.6.2) (0.12.1) Requirement already satisfied: importlib-resources>=5.12 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from nibabel->nnunetv2==2.6.2) (6.5.2) Requirement already satisfied: pytz>=2020.1 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from pandas->nnunetv2==2.6.2) (2025.2) Requirement already satisfied: tzdata>=2022.7 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from pandas->nnunetv2==2.6.2) (2025.2) Requirement already satisfied: urllib3<3,>=1.21.1 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from requests->nnunetv2==2.6.2) (2.5.0) Requirement already satisfied: idna<4,>=2.5 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from requests->nnunetv2==2.6.2) (3.10) Requirement already satisfied: charset_normalizer<4,>=2 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from requests->nnunetv2==2.6.2) (3.4.3) Requirement already satisfied: certifi>=2017.4.17 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from requests->nnunetv2==2.6.2) (2025.8.3) Requirement already satisfied: joblib>=1.2.0 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from scikit-learn->nnunetv2==2.6.2) (1.5.1) Requirement already satisfied: PyYAML in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from yacs->nnunetv2==2.6.2) (6.0.2) Requirement already satisfied: six>=1.5 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from python-dateutil>=2.7->matplotlib->nnunetv2==2.6.2) (1.17.0) Requirement already satisfied: mpmath<1.4,>=1.1.0 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from sympy>=1.13.3->torch>=2.1.2->nnunetv2==2.6.2) (1.3.0) Requirement already satisfied: MarkupSafe>=2.0 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from jinja2->torch>=2.1.2->nnunetv2==2.6.2) (3.0.2) Requirement already satisfied: torchvision in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from timm->dynamic-network-architectures<0.5,>=0.4.1->nnunetv2==2.6.2) (0.23.0) Requirement already satisfied: safetensors in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from timm->dynamic-network-architectures<0.5,>=0.4.1->nnunetv2==2.6.2) (0.6.2) Requirement already satisfied: huggingface_hub in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from timm->dynamic-network-architectures<0.5,>=0.4.1->nnunetv2==2.6.2) (0.34.4) Requirement already satisfied: traceback2 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from unittest2->batchgenerators>=0.25.1->nnunetv2==2.6.2) (1.4.0) Collecting argparse Using cached argparse-1.4.0-py2.py3-none-any.whl (23 kB) Requirement already satisfied: hf-xet<2.0.0,>=1.1.3 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from huggingface_hub->timm->dynamic-network-architectures<0.5,>=0.4.1->nnunetv2==2.6.2) (1.1.7) Requirement already satisfied: linecache2 in /home/jzuser/nnunet_env/lib/python3.10/site-packages (from traceback2->unittest2->batchgenerators>=0.25.1->nnunetv2==2.6.2) (1.0.0) Building wheels for collected packages: nnunetv2 Building editable for nnunetv2 (pyproject.toml) ... done Created wheel for nnunetv2: filename=nnunetv2-2.6.2-0.editable-py3-none-any.whl size=16768 sha256=d7a31125707ba030fcd769810ffbdb5bf744bf7cc505b9390d07c5faa52d007a Stored in directory: /tmp/pip-ephem-wheel-cache-99p73zcx/wheels/6b/08/0e/68824b8a403273462666479fc7b138d1a73daedeaefabd3600 Successfully built nnunetv2 Installing collected packages: argparse, nnunetv2 Attempting uninstall: nnunetv2 Found existing installation: nnunetv2 2.6.2 Not uninstalling nnunetv2 at /home/jzuser/Work_dir/Gn/pystudy/nnUNet/nnUNet, outside environment /home/jzuser/nnunet_env Can't uninstall 'nnunetv2'. No files were found to uninstall. Successfully installed argparse-1.4.0 nnunetv2-2.6.2 (nnunet_env) jzuser@vpc87-3:~/Work_dir/Gn/pystudy/nnUNet/nnUNet$
08-15
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值