簡體   English   中英

使用 cmd 激活虛擬環境但找不到解釋器

[英]activating virtual environment using cmd but can't find the interpreter

working on pyCharm, I'm activating a virtual environment using git bash, but when I want to select that specific interpreter for my python file. 我在列表中找不到它,或者可能找到它但仍然無效。 我確定 venv 已激活,我不想使用基本解釋器

  • 方法是什么? 使用 pycharm 啟動虛擬環境?.. 還是硬編碼? 在我的情況下使用 git bash

    編輯:我以某種方式將解釋器添加到我的解釋器列表中並安裝了一些庫 - 當我嘗試導入時,我收到一條錯誤消息,指出找不到模塊

  • 檢查右下角。 在那里您可以找到解釋器設置的選項。 在“顯示所有”的設置中,解釋器會向您顯示所有列表。
  • 在那里您還可以找到 git 跟蹤器。
  • 一般來說,如果你找不到東西,你可以在右上角看到搜索圖標,在那里你可以搜索你正在尋找的東西,你會被引導到那里。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM