您的位置:首页 > 科技 > 能源 > wap文字游戏搭建教程_上海发布疫情最新消息_网站推广引流_重庆网络推广外包

wap文字游戏搭建教程_上海发布疫情最新消息_网站推广引流_重庆网络推广外包

2025/5/10 21:33:42 来源:https://blog.csdn.net/njsgcs/article/details/147153403  浏览:    关键词:wap文字游戏搭建教程_上海发布疫情最新消息_网站推广引流_重庆网络推广外包
wap文字游戏搭建教程_上海发布疫情最新消息_网站推广引流_重庆网络推广外包

cmake来源:

 只能find默认地址,我试过用虚拟的python地址提示缺python3config.cmake

源码来源:

pip install 装包:

module_to_install = "your pakage"
import os
import FreeCAD
import addonmanager_utilities as utils
vendor_path = utils.get_pip_target_directory()
args = ["install", "--disable-pip-version-check", "--target", vendor_path, module_to_install]
appimage = os.getenv("APPIMAGE")  
if appimage:python_exe = App.getHomePath() + "bin/python"
else:if hasattr(utils, "get_python_exe"):python_exe = utils.get_python_exe()else:from freecad.utils import get_python_exepython_exe = get_python_exe()
cmd = [python_exe, "-m", "pip"]
cmd.extend(args)
result = None
try:result = utils.run_interruptable_subprocess(cmd)FreeCAD.Console.PrintMessage("Install/Upgrade of " + module_to_install + " finished\n")
except:text = "Error trying to Install/Upgrade " + module_to_install + ". Please ensure pip is installed on your system and the module exists for this version of Python"FreeCAD.Console.PrintError(text + "\n")

版权声明:

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

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