将 python 3.1 升级到 3.2

发布于 2024-10-18 11:20:55 字数 237 浏览 0 评论 0原文

我正在从 3.1 升级到 3.2。除了查看 3.1 的 site-packages 目录以查看我一直在使用哪些软件包以便我可以为 3.2 安装它们之外,是否还有其他地方我应该检查要安装的内容或其他要查看的问题?

我不是在问 3.1 和 3.2 之间语言的变化。我只是想确保我已经安装并配置了 3.1 中的所有内容。我意识到 argparse 内置于 3.2 中,所以我不必安装它。

我正在运行 Windows,如果这很重要的话。

I'm upgrading from 3.1 to 3.2. Other than looking at 3.1's site-packages directory to see what packages I've been using so that I can install them for 3.2, are there other places I should check for things to install or other issues to look at?

I'm not asking about changes to the language between 3.1 and 3.2. I just want to make sure I've installed and configured everything I had in 3.1. I realize argparse is built into 3.2, so I don't have to install that.

I'm running Windows, if that matters.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

梦屿孤独相伴 2024-10-25 11:20:55

不需要,您只需安装在 3.1 中安装的模块即可。当然,如果您从头开始编译,请确保您安装了编译 3.1 时的所有库,否则某些标准库可能不可用。

No, installing the modules you have installed in 3.1 should be all you need to do. Also of course, if you are compiling from scratch, make sure you have all the libraries installed you have when you compiled 3.1, as some of the standard lib otherwise may be unavailable.

杀お生予夺 2024-10-25 11:20:55

您应该能够与 3.1 并行安装 3.2,只需将其放在不同的目录中即可。然后,如果在某个时候你发现你的环境中缺少某些东西,你总是可以找出你之前拥有的东西。

几乎所有你安装的与 Python 相关的东西都应该在站点包中,所以这应该主要是跟踪这些包并在 3.2 中再次安装它们

如果你有 pip 你可以使用 pip freeze 生成环境中已安装内容的列表。

You should be able to install 3.2 in parallel with 3.1, simply by putting it in a different directory. Then if at some point you find you are missing something from your environment you can always figure out what you had before.

Nearly everything you installed that's Python-related should be in site-packages, so it should be mostly a matter of keeping track of those packages and installing them again in 3.2

If you have pip you can use pip freeze to generate a list of what's installed in your environment.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文