当前位置: 首页> 房产> 市场 > 诸城市房产信息网_制作h5用什么软件比较好_制造业中小微企业_长沙网站建站模板

诸城市房产信息网_制作h5用什么软件比较好_制造业中小微企业_长沙网站建站模板

时间:2025/7/22 18:41:27来源:https://blog.csdn.net/skywalk8163/article/details/145700269 浏览次数:0次
诸城市房产信息网_制作h5用什么软件比较好_制造业中小微企业_长沙网站建站模板

先上结论,走了弯路了,Ubuntu里不需要安装cargo(使用cargo安装uv),直接在pip里安装uv就行了。

uv 是一个非常快的Python包安装和解析器,用Rust编写。 设计为代替 pip和pip-tools 的工具。 替代方案: 可完全替代常用的 pip、pip-tools 和 virtualenv 命令。 超快速度: 比 pip 和 pip-tools (pip-compile 和 pip-sync) 快 10-100 倍。 节省磁盘空间: 具有全局缓存,可重复使用依赖项,节省磁盘空间。

弯路

安装cargo

先安装cargo

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

或者

sudo apt install cargo

然后在cargo安装uv

直接使用命令:

cargo install --git https://github.com/astral-sh/uv uv

失败

直接使用pip安装uv

pip安装

pip install uv

使用uv

使用前,先创建一个虚拟环境

uv venv py310

 好了,后面就可以使用uv来安装python包了,比如

uv pip install -r requirements.txt

调试

cargo安装uv报错

cargo install --git https://github.com/astral-sh/uv uv
    Updating git repository `https://github.com/astral-sh/uv`
error: cannot install package `uv 0.6.1`, it requires rustc 1.83 or newer, while the currently active rustc version is 1.75.0 

ubuntu22下最高版本就是1.80,先试试

sudo apt install  rustc-1.80

升级的时候提示:

Newer kernel available                                                                                   ││                                                                                                          ││ The currently running kernel version is 5.15.0-127-generic which is not the expected kernel version      ││ 5.15.0-131-generic.                                                                                      ││                                                                                                          ││ Restarting the system to load the new kernel will not be handled automatically, so you should consider   ││ rebooting.                                                                                               ││                                                                                                          ││                                                  <Ok>

1.80还是不行,就是要1.83

放弃这种方法,直接使用pip安装。

关键字:诸城市房产信息网_制作h5用什么软件比较好_制造业中小微企业_长沙网站建站模板

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: