Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[译] [202] 设置你的系统 #32

Open
cssmagic opened this issue Mar 1, 2024 · 0 comments
Open

[译] [202] 设置你的系统 #32

cssmagic opened this issue Mar 1, 2024 · 0 comments

Comments

@cssmagic
Copy link
Owner

cssmagic commented Mar 1, 2024

2.2 Getting your system set up

2.2 设置你的系统

This is a four-step process. To streamline this chapter, we’re just providing the main steps for this process. However, there are more detailed instructions available in the following locations:

这个过程包含四个步骤。为了让本节内容更加流畅,下面只列出了这个过程的主要步骤。不过,你可以在以下地址找到更为详尽的指南:

  • Visit GitHub’s documentation at https://docs.github.com/en/copilot/getting-started-with-github-copilot.

  • 访问 GitHub 官方文档:https://docs.github.com/en/copilot/getting-started-with-github-copilot

  • The website for this book (https://www.manning.com/books/learn-ai-assisted-python-programming) provides detailed instructions for setting up both PC and macOS systems. Because the websites for these tools might change after we write this book, we encourage you to use a combination of the GitHub link and the book website together.

  • 本书的英文原版官方网站(https://www.manning.com/books/learn-ai-assisted-python-programming )针对 PC 和 macOS 系统都提供了详细的设置步骤。上述网站可能在本书出版后持续更新,因此建议你同时参考上述链接进行操作。

  • In the online book forum (https://livebook.manning.com/book/learn-ai-assisted-python-programming/discussion), you can ask for help and see the answers to a list of frequently asked questions.

  • 在本书的英文原版官方论坛里(https://livebook.manning.com/book/learn-ai-assisted-python-programming/discussion ),你可以发帖求助,也可以在常见问题的清单中查找答案。

The primary steps you’ll need to accomplish are as follows:

你需要完成的主要步骤如下:

  1. Set up your GitHub account and sign up for Copilot:

  2. 创建一个 GitHub 账户,然后注册 Copilot:

    1. Go to https://github.com/signup and sign up for a GitHub account.

    2. Go into your settings in GitHub and enable Copilot. This is the point where you’ll either need to verify you are a student or sign up for the 30-day free trial (available at the time of this writing).

    3. 前往 https://github.com/signup ,注册一个 GitHub 账户。

    4. 在 GitHub 的设置中启用 Copilot。在这个环节,如果你是学生则可以验证身份并免费使用,否则可以选择 30 天的免费试用期(本书撰写时有此选择)。

  3. Install Python:

  4. 安装 Python:

    1. Go to www.python.org/downloads/.

    2. Download and install the latest version of Python (3.11.1 at the time of writing).

    3. 访问 www.Python.org/downloads/

    4. 下载并安装 Python 的最新版本(本书撰写时为 3.11.1)。

  5. Install VS Code:

  6. 安装 VS Code:

    1. Go to https://code.visualstudio.com/download, select the main download for your operating system (e.g., Windows Download or Mac Download).

    2. Download and install the latest version of VS Code.

    3. 访问 https://code.visualstudio.com/download ,根据你的操作系统选择对应的安装包(比如,Windows 版或 Mac 版)。

    4. 下载并安装 VS Code 的最新版本。

  7. Install the following VS Code extensions (for details, see https://code.visualstudio.com/docs/editor/extension-marketplace).

  8. 在 VS Code 中安装以下插件(具体安装方法请参考 https://code.visualstudio.com/docs/editor/extension-marketplace )。

    1. Python (by Microsoft)—Follow the instructions at https://code.visualstudio.com/docs/languages/python to set up the Python extension correctly (specifically, selecting the correct interpreter).

    2. Python(由 Microsoft 提供)。请参照 https://code.visualstudio.com/docs/languages/python 的指导,正确配置 Python 插件(特别注意选择正确的解释器)。

    3. GitHub Copilot (by GitHub)

    4. GitHub Copilot(由 GitHub 提供)。

    5. GitHub Copilot Labs (by GitHub)—Note that Copilot Labs is not needed for the majority of the book, so if it has changed from the time of writing, please do not be discouraged. The interactions that we will have with Copilot Labs could also be done by interacting with ChatGPT or Github Copilot Chat.

    6. GitHub Copilot Labs(由 GitHub 提供)。请留意,本书绝大多数部分不需使用 Copilot Labs 插件,因此该项服务在本书出版之后有所变更 [译者注],也无需感到沮丧。我们与 Copilot Labs 的交互方式也可以通过 ChatGPT 或 GitHub Copilot Chat 来实现。

    译者注:此插件已于 2023 年底下架。它的部分功能已经整合到了前一个插件(GitHub Copilot)中。

    1. GitHub Copilot Chat (by GitHub)—At the time of writing, GitHub Copilot Chat is not yet available to everyone. This feature will be used in later chapters but if it is still unavailable, the same conversations we’ll have with Copilot Chat could be had with ChatGPT. We’ll provide more details when we use this feature.

    2. GitHub Copilot Chat(由 GitHub 提供)。在本书撰写时,GitHub Copilot Chat 功能尚未对所有用户开放 [译者注]。我们在后续章节会用到这项功能,如果到时候你还无法使用它,可以用 ChatGPT 来代替。等到用到该功能的时候,我们会详细讲解。

    译者注:此插件已经完全开放。

We know that the steps here are brief. If you encounter any problems, we encourage you to consult the resources mentioned earlier for more detailed setup instructions.

我们知道上述步骤的描述比较简洁。如果你在操作过程中遇到任何困难,建议你查阅本节开头提到的参考资料,以便获取更详细的设置指南。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant