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 fewer people in the community who own a Mac, the available packages sometimes lag a few versions behind the other platforms.

5. If the system prevents FreeCAD from launching 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 uninstall FreeCAD, but it is good to know how. On Windows and Linux, uninstalling FreeCAD is very straightforward. On Windows, use the standard "remove software" option found in the control panel; on Linux, remove it with the same software manager you used to install it. On Mac OS, simply remove it from the Applications folder.

Setting basic preferences
Once FreeCAD is installed, you might want to open it and change some preferences. Preference settings in FreeCAD are located under menu Edit -> Preferences. Listed below are some basic settings you may wish to change; you can browse through the preference pages to see if there is anything else you want to change.


 * 1) Language: (General category, General tab) FreeCAD will automatically pick the language of your operating system, but you might want to change that. FreeCAD is almost fully translated into five or six languages; others are currently only partially translated. You can easily help translating FreeCAD. [[Image:Freecad-basic-options01.jpg|none]]
 * 2) Auto-load module: (General category, General tab) Normally, FreeCAD will start by showing you the start page. You can skip this and begin a FreeCAD session directly in the workbench of your choice, listed under Startup, Auto load module after startup. Workbenches will be explained in detail in the next chapter.
 * 3) Create new document at startup: (General category, Document tab) Combined with the Auto-load module option above, if checked this starts FreeCAD ready for work. [[Image:Freecad-basic-options02.jpg|none]]
 * 4) Storage options: (General category, Document tab) As with any complex application, FreeCAD likely contains bugs causing it to crash occasionally. Here you can configure options to help you to recover your work in case of a crash.
 * 5) Authoring and license: (General category, Document tab) Here you set the values to be used for new files you create. Consider making your files shareable right from the start, by using a friendlier, copyleft license like Creative Commons.
 * 6) Redirect internal python messages: (General category, Output window tab) These two options are always good to check, as they will cause messages from the internal python interpreter to show up in the Report View when there's a problem running a python script. [[Image:Freecad-basic-options03.jpg|none]]
 * 7) Units: (General category, Units tab) Here you can set the default units system you wish to use. [[Image:Freecad-basic-options04.jpg|none]]
 * 8) Zoom at cursor: (Display category, 3D tab) If set, zoom operations will be focused at the mouse pointer.  If unset, the center of the current view is the zoom focus.
 * 9) Invert zoom: (Display category, 3D tab) Inverts the direction of zooming relative to mouse movement. [[Image:FreeCAD-v0-18-Preferences-Display.png]]

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. Most of these external projects are workbenches or macros, and can be easily installed right from within FreeCAD via the Addons Manager located under menu Tools. The addons manager will allow you to install many interesting components, for example:


 * 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) Additional workbenches, that extend the functionality of FreeCAD for certain tasks, for example animate parts of your models, or areas, such as sheet metal folding or BIM. Further explanations of each workbench and what tools it contains is given on each addon page, that you can visit by clicking the corresponding link on the addon manager.
 * 3) A collection of macros, which are also available on the FreeCAD wiki along with documentation about how to use them.



If you are using the Ubuntu operating system, some of the addons above are also available as packages on the FreeCAD addons PPA

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
 * The FreeCAD addons manager