Manual:Installing/zh-cn

FreeCAD 使用LGPL许可证，您可以按照自己的方式自由下载，安装，重新分发和使用 FreeCAD. 无论您用它做何种类型的工作 （商业或非商业），都不受任何条款或限制的约束，用它生成的文件完全属于您. 许可证唯一禁止的，就是声称您自己编写了 FreeCAD！

FreeCAD 在 Windows，Mac OS 和 Linux 上运行时没有任何区别. 但是，平台不同，安装方式也略有不同. 在 Windows 和 Mac 上，FreeCAD 社区提供预编译的软件包（安装程序），可以下载；而在 Linux上，因为源代码提供给了 Linux 发行版的维护人员，后者负责为其特定发行版打包 FreeCAD，所以在 Linux 上，您通常可以直接通过软件管理器安装 FreeCAD.

适用于 Windows 和 Mac OS 的官方 FreeCAD 下载页面是 https://github.com/FreeCAD/FreeCAD/releases

FreeCAD 版本

在上面的页面，以及在 Linux 发行版的软件管理器中找到的 FreeCAD 正式版本是稳定版本. 不过，FreeCAD 的开发速度很快，几乎每一天都会添加新功能和修复错误. 有时在两个稳定版本之间要花费很长时间，因此您或许有兴趣尝试更加前沿的 FreeCAD 版本. 这些开发版本或预发布版本会不时上传到上面提到的下载页面，或者，如果您使用的是 Ubuntu 或 Fedora，则可以使用它们的专有渠道：FreeCAD 社区还维护着 PPA（个人包档案）和 copr（社区项目），或者称为“每日构建”，会定期更新.

如果您在虚拟机中安装 FreeCAD，请注意性能可能很差. 由于大多数虚拟机上的 OpenGL 支持限制，某些情况下 FreeCAD 可能无法使用.

在 Windows 上安装

 * 1) 从下载页面下载与您的 Windows 版本（32位或64位）对应的安装程序包（.exe）. FreeCAD 安装程序应该适用于从Windows 7 开始的任何 Windows 版本.
 * 2) 双击下载的安装程序.
 * 3) 接受 LGPL 许可证的条款. 你可以真正地，安全地点击“接受”按钮，而不阅读文本吗？这次是少有的情况：没有隐藏条款. [[Image:Freecad-windows-install-01.jpg|none]]
 * 4) 你可以在此处保留默认路径，也可以根据需要进行更改. [[Image:Freecad-windows-install-02.jpg|none]]
 * 5) 除非你打算做一些高级的 python 编程，否则不需要设置 PYTHONPATH 变量. 如果你要改，说明你可能已经知道这是干什么的了. [[Image:Freecad-windows-install-03.jpg|none]]
 * 6) 在安装过程中，还将安装一些附加组件，这些组件捆绑在了安装程序中. [[Image:Freecad-windows-install-04.jpg|none]]
 * 7) FreeCAD 就这样安装好了，可以在开始菜单中找到它. [[Image:Freecad-windows-install-05.jpg|none]]

安装开发版本

因为打包 FreeCAD 并创建安装程序需要一些时间和奉献精神，通常开发（也称为预发布）版本以.zip（或.7z）压缩文档的形式提供. 无需安装，只要解压缩后，双击在里面找到的 FreeCAD.exe 文件，就可以启用 FreeCAD 了. 这样你便可以将稳定版本和“不稳定”版本保存在了同一台计算机上.

在 Linux 上安装
在大多数现代 Linux 发行版（Ubuntu，Fedora，OpenSUSE，Debian，Mint，Elementary等）上，可以直接在发行版提供的软件管理应用程序中一键安装 FreeCAD（有些方面可能与下面的图片不同，每个发行版使用专有的工具）.


 * 1) 打开软件管理器，搜索“freecad”；[[Image:Freecad-linux-install-01.jpg|none]]
 * 2) 单击“安装”按钮，等一会 FreeCAD 就安装好了. 不要忘记使用以后给个评价！[[Image:Freecad-linux-install-02.jpg|none]]

其他方式

使用 Linux 的一大乐趣是有多种可能来定制软件，不用束缚自己. 在 Ubuntu 及其衍生产品上，FreeCAD 也可以从FreeCAD 社区维护的 PPA 安装（它包含稳定版和开发版）. 在 Fedora 上，可以从 copr 安装 FreeCAD 的最新开发版本. 因为 FreeCAD 是开源软件，也可以自己轻松编译 FreeCAD.

Installing on Mac OS
Installing FreeCAD on Mac OSX is nowadays as easy as on other platforms. However, since there are less people in the community who own a Mac, the available packages often lag a couple of versions behind the other platforms.

5. If the system prevents FreeCAD to launch, due to restricted permissions for applications not coming from the App store, you will need to enable it in the system settings:
 * 1) Download a zipped package corresponding to your version from  the download page.
 * 2) Open the Downloads folder, and expand the downloaded zip file: [[Image:Freecad-mac-01.jpg|none]]
 * 3) Drag the FreeCAD application from inside the zip to the Applications folder: [[Image:Freecad-mac-02.jpg|none]]
 * 4) That's it, FreeCAD is installed! [[Image:Freecad-mac-03.jpg|none]]

Uninstalling
Hopefully you won't want to do that, but it is good to know anyway. On Windows and Linux, uninstalling FreeCAD is very straightforward. Use the standard "remove software" option found in the control panel on Windows, or remove it with the same software manager you used to install FreeCAD on Linux. On Mac, all you need to do is remove it from the Applications folder.

Setting basic preferences
Once FreeCAD is installed, you might want to open it and set a couple of preferences. Preferences settings in FreeCAD are located under menu Edit -> Preferences You can browse through the different pages to see if there is anything else you would want to change, but here are a couple of basic ones:


 * 1) Language: FreeCAD will automatically pick the language of your operating system, but you might want to change that. FreeCAD is almost fully translated to 5 or 6 languages, plus many others that are at the moment only partially translated. You can easily help to translate FreeCAD. [[Image:Freecad-basic-options01.jpg|none]]
 * 2) Auto-load module: Normally, FreeCAD will start showing you the start center page. You can skip this and begin a FreeCAD session directly in the workbench of your choice. Workbenches will be explained in detail in the next chapter.
 * 3) Create document at startup: Combined with the option above, this starts FreeCAD ready for work. [[Image:Freecad-basic-options02.jpg|none]]
 * 4) Storage options: As any complex application, FreeCAD might crash from time to time. Here you can configure a few options that will help you to recover your work in case of a crash.
 * 5) Authoring and license: You can set the default settings that will be used for your new files. Consider making your files shareable right from the start, by using a friendlier, copyleft license like Creative Commons.
 * 6) Redirect python messages to output view: These two options are always good to mark, as they will permit you to see what's wrong in the Report View when there's a problem with running a particular python script. [[Image:Freecad-basic-options03.jpg|none]]
 * 7) Units: Here you can set the default units system you wish to use. [[Image:Freecad-basic-options04.jpg|none]]

Installing additional content
As the FreeCAD project and its community grows quickly, and also because it is easy to extend, external contributions and side-projects made by community members and other enthusiasts begin to appear everywhere on the internet. There is an effort going on to gather all these interesting additions in one place, on the FreeCAD github page. There, among other things, you will find:


 * 1) A Parts library, which contains all kinds of useful models, or pieces of models, created by FreeCAD users that can be freely used in your projects. The library can be used and accessed right from inside your FreeCAD installation.
 * 2) A collection of addons, most of them additional workbenches, that extend the functionality of FreeCAD for certain tasks. Instructions for installing are given on each separate addon page.
 * 3) A collection of macros, which are also available on the FreeCAD wiki along with documentation about how to use them. The wiki contains many more macros.

If you are using Ubuntu or any of its derivatives, the FreeCAD-extras PPA contains most of these addons. On other platforms, any of the addons, including the Parts library, can easily be installed using an addon-installer macro provided in the addons repository. The following procedure shows how to install the addon-installer (other macros can be installed the same way)


 * 1) Download the addons-installer.FCMacro file from https://github.com/FreeCAD/FreeCAD-addons by clicking it, then right-clicking the "RAW" button, and choosing "Save as".
 * 2) Place the macro in your FreeCAD Macros destination path. You FreeCAD Macros destination path is indicated at the bottom of the Execute macro dialog in FreeCAD: [[Image:Macro_installer_01.jpg|none]]
 * 3) Close and reopen the Execute macro dialog, and start the addons_installer.FCMacro. The installer will launch, from where you can install, update and uninstall any of the addons:



Read more


 * More download options
 * Detailed installation instructions
 * FreeCAD PPA for Ubuntu
 * FreeCAD addons PPA for Ubuntu
 * compile FreeCAD yourself
 * FreeCAD translations
 * FreeCAD github page