簡體   English   中英

如何在 Miniforge(不是 Miniconda)中訪問/安裝 Powershell 提示符或等效命令提示符?

[英]How can I access/install a Powershell prompt or equivalent command prompt within Miniforge (not Miniconda)?

我正在嘗試從 Miniconda 切換到 Miniforge,並希望在 Miniforge 中訪問 Powershell 提示符或等效項,以便我安裝軟件包並編輯我的 conda 設置。

但是,我在計算機上的 miniforge3 文件夾中沒有看到 Powershell 提示。 我相信 Conda-Forge 有一個。 . . 但我不確定如何在沒有提示的情況下安裝它!

我試圖避免使用 Miniconda 或 Anaconda 來安裝/訪問 Powershell 提示。

這篇文章幫助我找到了答案: https://github.com/conda-forge/miniforge/issues/62

To open up an equivalent to an Anaconda Powershell prompt, I had to first open my Windows command prompt (by typing cmd in the search box), enter the following line, and press enter: C:\Users\kburc\miniforge3\Scripts\activate

然后,這允許我運行 conda config --show channels 之類的代碼,就像我在 Miniconda 或 Anaconda Powershell 提示符中所做的那樣。

此方法的使用示例:

C:\Users\kburc>C:\Users\kburc\miniforge3\Scripts\activate (base) C:\Users\kburc>conda install matplotlib matplotlib-base mpl_sample_data

在第一行,我啟用了 conda 命令; 在第二行中,我安裝了 matplotlib 和其他幾個包。

暫無
暫無

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

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