gpt4 book ai didi

python - 如何让 PyC​​harm 从我的本地包存储库更新?

转载 作者:太空狗 更新时间:2023-10-29 20:30:25 27 4
gpt4 key购买 nike

我正在尝试教 PyCharm(4.5.4 专业版)连接到我们的本地包存储库,这样我就可以通过单击按钮来安装我们的代码特定包,而不是使用终端和 pip。

在“管理存储库”按钮中找到:设置 -> 项目解释器 -> +(用于添加新包的加号按钮)是一个看起来我可以添加我的存储库 URL 但它不起作用的地方。我希望在 pip install -i <my repo url> 中使用相同的 URL成为我在这里需要的东西,但据我所知,PyCharm 只是忽略了我新添加的 repo,只使用了 pypi。

如何让 PyC​​harm 从我的本地包存储库更新?

最佳答案

我知道现在回答已经晚了,但我会试一试,尽管您现在可能已经尝试并解决了这个“问题”。
问题是你没有提到根据"new"存储库更新包列表可能需要的最后一步。
我直接从 JetBrains 网站报告食谱 https://www.jetbrains.com/help/pycharm-edu/3.0/installing-uninstalling-and-upgrading-packages.html

To specify a custom repository, follow these steps

  1. In the Project Interpreter page of the project settings, click add, and then, in the Available Packages dialog box, click Manage Repositories.
  2. In the Manage Repositories dialog box that opens, click add to add a URL of a local repository, for example, something like http://somehost/alice/dev.
  3. In the Manage Repositories dialog box, click OK.
  4. Back in the Available Packages dialog box, click refresh enter image description here to reload the list of packages. As a result, the packages that exist on the local server appear.

你没有提到第 4 步,它应该根据新插入的存储库进行更新。
现在,您可能已经完成了第 4 步,但您没有提及。
例如,在我的 PyCharm CE 2016.2.3 中,按照前 3 个步骤插入自定义存储库后,我在可用包对话框的左下方看到刷新图标 ( enter image description here )。
那么要么你当时在 PyCharm 中遇到了某种错误,要么你没有更新包列表。

关于python - 如何让 PyC​​harm 从我的本地包存储库更新?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32660777/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com