pip use local repository server

1 get the package from https://pypi.python.org/simple/

we can do it by this  pip install --download=/var/www/pypi/ -r /opt/stack/nova/test-requirements.txt

2 set up a http server.

first we should have the tar/whl as this origznaztion, each gz should have a directory

├── WebOb
│?? └── WebOb-1.4.tar.gz
├── websockify
│?? └── websockify-0.5.1.tar.gz
└── wsgiref
    └── wsgiref-0.1.2.zip

3 modify ~/.pip/pip.conf

Add this

[global]

index-url=$your server ip/dir


fatal: not a git repository (or any of the parent directories): .git 。。。。。。CMake Deprecation Warning at 3rdparty/GLFW/CMakeLists.txt:3 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake. Update the VERSION argument <min> value or use a ...<max> suffix to tell CMake that the project does not need compatibility with older versions. -- Could NOT find Vulkan (missing: VULKAN_LIBRARY VULKAN_INCLUDE_DIR) -- Using X11 for window creation -- Found X11: /usr/include CMake Error at 3rdparty/GLFW/CMakeLists.txt:236 (message): The RandR headers were not found -- Configuring incomplete, errors occurred! make: *** No targets specified and no makefile found. Stop. make: *** No rule to make target 'install'. 这是编译安装Open3D 0.13.0部分报错 。。。。。。。还有另一个报错(cosmix) livvy0102@tong:~/anaconda3/bin$ # 设置 编译器环境变量 export CXX=g++-12 # 强制使用CPU模式编译(因Intel Iris Xe无NVIDIA GPU) export CUDA_HOME=/dev/null # 从源码安装指定版本 pip install -U git+https://github.com/NVIDIA/MinkowskiEngine.git@v0.5.4 \ --install-option="--blas=openblas" \ --install-option="--cpu_only" Usage: pip install [options] <requirement specifier> [package-index-options] ... pip install [options] -r <requirements file> [package-index-options] ... pip install [options] [-e] <vcs project url> ... pip install [options] [-e] <local project path> ... pip install [options] <archive url/path> ... no such option: --install-option
最新发布
03-21
<think>好的,我现在需要帮助用户解决他们在编译安装Open3D 0.13.0和MinkowskiEngine时遇到的错误。首先,我应该分步骤分析这两个问题。 对于Open3D的报错,用户遇到了几个问题。首先是Git仓库的错误,提示“not a git repository”。这可能是因为用户在没有克隆仓库的目录中运行了Git命令,或者子模块未正确初始化。需要检查是否在正确的目录下执行命令,并确保子模块已经初始化。 接下来是CMake的Deprecation Warning,建议更新CMake的版本要求。用户需要修改GLFW的CMakeLists.txt文件中的cmake_minimum_required命令,加上版本上限或者升级CMake本身。这可能会解决兼容性问题。 然后是找不到Vulkan库的问题。用户可能需要安装Vulkan的开发包,比如在Ubuntu上安装libvulkan-dev。不过错误显示为“Could NOT find Vulkan”,但项目可能仍继续,所以这个可能不是致命错误。不过后面的RandR头文件缺失导致配置失败,这需要安装RandR的开发文件,比如libxrandr-dev。 最后的make错误是因为CMake配置失败,没有生成Makefile,所以用户需要先解决CMake的问题,再重新运行make。 接下来是安装MinkowskiEngine时的错误。用户使用了--install-option,但pip提示没有这个选项。这可能是因为新版本的pip已经不再支持--install-option,或者该包的安装方式有变化。正确的做法应该是使用pip的--global-option或者按照MinkowskiEngine官方文档的推荐方法安装,比如使用--no-build-isolation或者从源代码克隆后直接安装。 用户还设置了CXX环境变量和CUDA_HOME为/dev/null,强制使用CPU模式。需要确认这些设置是否正确,尤其是在安装MinkowskiEngine时是否需要额外的参数。 综合以上分析,我需要分步骤指导用户解决每个问题,先处理Open3D的CMake和依赖问题,再处理MinkowskiEngine的安装选项问题。确保用户正确安装依赖库,调整CMake配置,并使用正确的pip命令安装MinkowskiEngine。</think>你遇到的错误包含两个独立问题:Open3D编译失败 和 MinkowskiEngine安装参数错误。以下是分步解决方案: 一、Open3D 0.13.0编译问题分析 ------------------------------------ 1. **Git仓库错误**: ```bash fatal: not a git repository... ``` 👉 原因:未正确初始化git子模块 ✅ 解决方案: ```bash git submodule update --init --recursive ``` 2. **CMake兼容性警告**: ```text CMake Deprecation Warning at 3rdparty/GLFW/CMakeLists.txt:3... ``` ✅ 修改文件`3rdparty/GLFW/CMakeLists.txt`第3行: ```cmake cmake_minimum_required(VERSION 3.5) # 原版本号为2.8.11 ``` 3. **Vulkan缺失警告**: ```text -- Could NOT find Vulkan... ``` ✅ 安装依赖: ```bash sudo apt install libvulkan-dev # Ubuntu/Debian ``` 4. **致命错误:RandR头文件缺失**: ```text CMake Error: The RandR headers were not found ``` ✅ 安装X11开发包: ```bash sudo apt install libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev ``` 5. **make失败**: ```text No targets specified and no makefile found ``` ✅ 完整编译流程: ```bash mkdir build && cd build cmake -DCMAKE_CXX_COMPILER=g++-12 .. # 指定g++12编译器 make -j$(nproc) # 并行编译 sudo make install ``` 二、MinkowskiEngine安装问题 ------------------------------------ 1. **--install-option参数失效**: 👉 新版本pip已弃用该参数 ✅ 正确安装命令: ```bash pip install git+https://github.com/NVIDIA/MinkowskiEngine.git@v0.5.4 \ --global-option="--blas=openblas" \ --install-option="--cpu_only" ``` 2. **强制CPU模式优化方案**: ✅ 推荐使用环境变量: ```bash export FORCE_CUDA=0 # 更可靠的CPU模式设置 pip install git+https://github.com/NVIDIA/MinkowskiEngine.git@v0.5.4 ``` 三、系统环境检查建议 ------------------------------------ 1. 验证编译器版本: ```bash g++-12 --version # 应显示12.x版本 ``` 2. 确认CMake最低版本: ```bash cmake --version # 需要≥3.5 ``` 3. 检查OpenGL依赖: ```bash sudo apt install mesa-common-dev libglu1-mesa-dev ``` 遇到具体错误时,建议: 1. 清空build目录重新配置 2. 查看CMakeOutput.log获取详细错误信息 3. 使用`VERBOSE=1 make`查看编译细节
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值