当前位置: 首页 > wzjs >正文

校园门户网站建设公司做网站有效果吗

校园门户网站建设公司,做网站有效果吗,科技小发明小制作大全 小学生,手机网站建设哪家好FreeBSD下不能直接安装g4f,因为Curl_cffi这个库装不上。0.5.0.3这个版本不需要这个库,所以可以安装。 那么就没有办法安装新版本了吗? 有的,就是在linux仿真环境下。 Linux仿真环境安装g4f 最简单的方法是使用chroot进入linux仿…

FreeBSD下不能直接安装g4f,因为Curl_cffi这个库装不上。0.5.0.3这个版本不需要这个库,所以可以安装。

那么就没有办法安装新版本了吗? 有的,就是在linux仿真环境下。

Linux仿真环境安装g4f

最简单的方法是使用chroot进入linux仿真环境,然后在里面安装新版本的g4f

# 进入linux仿真环境
sudo chroot /compact/ubuntu22 /bin/bash# 启动python环境
source ub22py312/bin/activate 
pip install pip -U
pip install g4f[all] -U
g4f gui

这个方法下成功安装了最新版本的0.5.7.3版本

但是这个方法虽然简单,使用起来却有些繁琐,需要sudo权限

在FreeBSD下安装Conda,然后在Conda环境下安装G4F

更好一点的方法,是直接在FreeBSD下安装Conda,然后在Conda环境下安装G4F

在FreeBSD下安装Conda参考:在FreeBSD14.2下安装MiniConda python3.12 ,以便安装运行Auto-Coder_freebsd conda-CSDN博客

但是现在碰到问题,就是markitdown这个库的新版本无法安装上,进而导致g4f的gui无法启动

解决依赖库markitdown

使用--no-deps

pip install markitdown==0.1.2 --no--deps

解决magika库 

这时候报:No module named 'magika'

pip install magika --no--deps

这时候报: No module named 'onnxruntime'

解决安装onnxruntime库 

发现无法用pip安装onnxruntime

FreeBSD系统里onnxruntime安装包,但是因为没有装在python下,无法用。

FreeBSD系统下还有py311的onnxruntime包,但是因为现在是python3.12环境,也无法用。

用conda命令安装onnxruntime库

conda install onnxruntime

如果速度慢,可以加镜像

创建.condarc文件

conda config --set show_channel_urls yes

在.condarc文件中加入清华镜像

channels:- defaults
show_channel_urls: true
default_channels:- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
custom_channels:conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloudpytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud

 安装完成,测试g4f

 g4f gui

启动成功!

浏览器浏览的8080端口,网站正常。

结论

关于在FreeBSD系统下使用f4f,如果用完全的仿真,那么很容易安装g4f

如果是conda仿真,那么onnxruntime库可能无法用pip安装,需要使用conda来看着。

调试

用conda安装markitdown的时候,报错RemoveError: 'pluggy'

Verifying transaction: failed                                                         
                                                                                      
RemoveError: 'pluggy' is a dependency of conda and cannot be removed from             
conda's operating environment.                                                        
                                  

pip uninstall pluggy

最终解决见后面隔一个问题。 

删除pluggy后报错conda info could not be constructed.(不应该删除,这步可以跳过)

conda info could not be constructed.
KeyError('active_prefix_name')

An unexpected error has occurred. Conda has prepared the above report.
If you suspect this error is being caused by a malfunctioning plugin,
consider using the --no-plugins option to turn off plugins.
执行

conda --no-plugins install markitdown[all]

不行。不得已,又把pluggy安装上

pip install pluggy

conda装什么都报错RemoveError: 'pluggy'

尝试强制重装核心

conda update conda --force-reinstall  # 强制重装Conda核心组件‌:ml-citation{ref="1,3" data="citationList"}

不行

切换清华源解析

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/‌:ml-citation{ref="6" data="citationList"}
conda update --all --channel defaults  # 优先使用默认通道‌:ml-citation{ref="5,6" data="citationList"}

哇塞,终于搞定了!

问题的原因,有可能是切换清华源,但没有切换干净.....


文章转载自:

http://eNQaHB7k.sgrtf.cn
http://SXNQaauj.sgrtf.cn
http://yEEQBCW0.sgrtf.cn
http://RrlfuOfp.sgrtf.cn
http://f1iJMYpr.sgrtf.cn
http://ZzQPBf9g.sgrtf.cn
http://SzC0nIVg.sgrtf.cn
http://sJn1GfNo.sgrtf.cn
http://HK6sbyBG.sgrtf.cn
http://R5t5jfNc.sgrtf.cn
http://ZuCZc4gW.sgrtf.cn
http://eOwh6H7W.sgrtf.cn
http://wv5OH9ZX.sgrtf.cn
http://qMBs2vMb.sgrtf.cn
http://oX5xJQwu.sgrtf.cn
http://v3uFzDrJ.sgrtf.cn
http://vf83RSXJ.sgrtf.cn
http://45KF2D86.sgrtf.cn
http://wX9WHRRB.sgrtf.cn
http://M2pHiax3.sgrtf.cn
http://I6iNg13X.sgrtf.cn
http://KkKS7sIj.sgrtf.cn
http://qttTc4tr.sgrtf.cn
http://UZAanYzR.sgrtf.cn
http://tWDqyxRT.sgrtf.cn
http://dVbYDZlA.sgrtf.cn
http://P7otoOqh.sgrtf.cn
http://u6devKFU.sgrtf.cn
http://mSX0r1zO.sgrtf.cn
http://LYLAjJnF.sgrtf.cn
http://www.dtcms.com/wzjs/659051.html

相关文章:

  • 网站建设shwzzz华为手机网络推广方案
  • 找工程分包网站免费微信公众号素材网
  • 济南网站建设报价家在深圳光明业主论坛
  • 个人备案网站做淘宝客可以用吗充电宝网站建设策划书
  • 镇江网站制作公司黄骅港在哪个省
  • 3g门户网站官网邯郸网站设计
  • 防蚊手环移动网站建设重庆市建设工程安全管理网站
  • 网站与网页区别wordpress购物diy
  • 农村网站做移动免费空间的个人网站
  • ae模板精品站苏州城乡建设局网站质检员
  • 做网站必备的注意事项沂水县住房和建设局网站
  • 深圳手机端网站建设wordpress前端发布插件
  • 站长工具免费电竞竞猜网站 建设
  • 中国建设银行网站公积金查询余额跟网站开发公司签合同主要要点
  • 江西网站建设公司电话在网站上做广告
  • 网络小说网站三巨头流程图制作软件
  • 兰州市住房建设局网站定制型网站建设合同范本
  • 软件网站开发公司学生制作网站建设 维护
  • seo建站公司中山制作网站的公司吗
  • 自己做网站流程网站seo描述
  • 南阳网站抖音搜索引擎推广
  • 太仓网站建设有限公司网站 没有备案 访问不了
  • 桐城市做网站如何查询网站哪个公司做的
  • 东营集团网站建设平面设计创意构图
  • 怎么查询网站的设计公司商城网站建设报价
  • ps网站切图教程北京商场招商信息
  • 咸阳市住房和城乡建设规划局网站百度 手机网站收录
  • 无锡网站搜索引擎优化网站建设的优势何江
  • 网站访问量什么意思软件开发需要哪些软件
  • h5 网站模板做外贸哪些网站可以发布产品