![](/img/trans.png)
[英]VSCode issue with Python versions and environments from Jupyter Notebooks
[英]Consuming Azure Devops python library from Jupyter Notebooks
我有一個自定義 python 庫,它作為 Azure Devops 提要發布。 我可以使用發布管道中的端點訪問它以部署到其他服務器。 我正在嘗試在本地 Jupyter 筆記本中訪問/安裝該庫以進行測試。
來自 Azure Devops 文檔 - Ensure you have installed the latest version of the Azure Artifacts keyring from the "Get the tools" menu. Add a pip.ini (Windows) or pip.conf (Mac/Linux) file to your virtualenv and pip install.
Ensure you have installed the latest version of the Azure Artifacts keyring from the "Get the tools" menu. Add a pip.ini (Windows) or pip.conf (Mac/Linux) file to your virtualenv and pip install.
我已經設置了鑰匙圈,我的 pip.ini 指向'https://xxx@pkgs.dev.azure.com/xxxx/zzzz0acc9/_packaging/MyFeed/pypi/simple/。 當我嘗試根據文檔調用 pip install 'libraryname' 時,我收到消息 - 錯誤:找不到滿足要求的版本。 我在 https 之后包含了個人訪問令牌,它具有必要的權利,但沒有運氣。
我試圖實現的目標是在本地使用 Jupyter 筆記本中的庫,但我不確定這些是否是所需的所有步驟。 這可能嗎? 謝謝!
您需要檢查 pip.ini 文件是否放置在正確的位置。 您可以運行pip config -v list
命令來檢查 pip 嘗試從中加載的配置文件的位置。
您必須確保您的 pip.ini 位於上面列出的位置之一pip config -v list command
您也可以嘗試在本地計算機命令行終端上運行pip install
來安裝您的私有 package。
請看下面我的測試:
#pip.ini
[global]
extra-index-url=https://PersonalAccessToken@pkgs.dev.azure.com/MyOrg/_packaging/MyPythonFeed/pypi/simple/
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.