久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

Windows 中的 Anaconda 和 Git Bash - conda: command not fou

Anaconda and Git Bash in Windows - conda: command not found(Windows 中的 Anaconda 和 Git Bash - conda: command not found)
本文介紹了Windows 中的 Anaconda 和 Git Bash - conda: command not found的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我已經安裝了 Anaconda 并將 Path 環境變量設置為 C:Anaconda3;C:Anaconda3Scripts.

I've installed Anaconda and set Path environment variable to C:Anaconda3; C:Anaconda3Scripts.

然后我嘗試在 Git Bash 中運行

Then I try to run in Git Bash

conda 安裝 python

但是有一個錯誤信息bash: conda: command not found".我想知道為什么.

But there is an error message "bash: conda: command not found". I would like to know why.

推薦答案

為了能夠在 gitbash 上運行 conda,您需要將其添加到路徑中.很多時候我看到這是默認完成的 - 如本次研討會的設置所示.如果沒有,就像您的情況一樣,那么您可以通過運行直接運行他們的設置:

To be able to run conda on gitbash you need to add it to the path. Many times I've seen that's done by default - as shown in the setup for this workshop. If it doesn't, as it seems your case, then you can run their setup directly by running:

. /c/Anaconda3/etc/profile.d/conda.sh

運行之后你應該可以運行 conda 命令了.

After running that you should be able to run conda commands.

要永久保留此設置,您可以在 .profile.bashrc 文件 (閱讀更多關于它們的差異).這樣做的一種方法是運行以下內容:

To keep this setup permanently you can add such line on your .profile or .bashrc file (read more about their differences). A way of doing so is running the follwing:

echo ". /c/Anaconda3/etc/profile.d/conda.sh" >> ~/.profile

如果安裝 Anaconda 的路徑包含空格(例如C:Program Files),您可能會遇到問題.在這種情況下,您需要更改 anaconda 位置或編輯 conda.sh 腳本,例如:

You may encounter problems if the path where Anaconda was installed contains spaces (e.g., C:Program Files). In that case you would need to change the anaconda location or edit conda.sh script with something like:

sed -e '/^_CONDA_EXE=.*/a alias myconda="${_CONDA_EXE/ /\\ }"' 
    -e 's/$_CONDA_EXE/myconda/g' /c/Program Files/Anaconda3/etc/profile.d/conda.sh > conda_start.sh

這個 sed 命令插入一個新的別名定義 myconda,它將 anaconda 路徑從 Program Files 更改為 Program Files,因此 bash 不會停止這樣的錯誤:

This sed command inserts a new alias definition myconda which changes the anaconda path from Program Files to Program Files so bash doesn't stop with an error like this one:

bash: /c/Program: No such file or directory

第二個 sed 命令用創建的新別名替換 _CONDA_EXE 變量.

The second sed command replaces the _CONDA_EXE variable by the new alias created.

由于上面沒有修改anaconda提供的文件,你需要更新你的.profile文件來加載我們剛剛創建的文件conda_start.sh,而不是.

Since the above doesn't modify the file provided by anaconda, you will need to update your .profile file to load the file we've just created, conda_start.sh, instead.

這篇關于Windows 中的 Anaconda 和 Git Bash - conda: command not found的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Troubles while parsing with python very large xml file(使用 python 解析非常大的 xml 文件時出現問題)
Find all nodes by attribute in XML using Python 2(使用 Python 2 在 XML 中按屬性查找所有節點)
Python - How to parse xml response and store a elements value in a variable?(Python - 如何解析 xml 響應并將元素值存儲在變量中?)
How to get XML tag value in Python(如何在 Python 中獲取 XML 標記值)
How to correctly parse utf-8 xml with ElementTree?(如何使用 ElementTree 正確解析 utf-8 xml?)
Parse XML from URL into python object(將 XML 從 URL 解析為 python 對象)
主站蜘蛛池模板: 羞羞在线观看视频 | 在线播放国产一区二区三区 | 亚洲高清免费 | 国产精品色综合 | 亚洲一二三区在线观看 | 久久乐国产精品 | 91资源在线观看 | 国产视频三区 | 久久久久网站 | 毛片大全 | 久久视频精品在线 | 精品中文字幕视频 | 91麻豆精品国产91久久久久久久久 | 久久久久国产一区二区三区不卡 | 在线亚洲一区 | 青青草精品视频 | 国产日韩精品在线 | 国产亚洲欧美在线 | 久久久久久久久久影视 | 国产亚洲一区二区三区在线观看 | 91文字幕巨乱亚洲香蕉 | 国产精品视频久久久久 | 免费黄色片在线观看 | 亚洲一区二区三区观看 | 日日射影院| 国产一区二区三区日韩 | 99热这里有精品 | 久久国产成人精品国产成人亚洲 | 91在线视频精品 | 亚洲精品无 | 久久久久久国产精品免费免费狐狸 | 日韩欧美不卡 | 欧美一级做性受免费大片免费 | 久久精品 | 亚洲精品99 | 欧美成人免费电影 | 欧美精品久久久久 | 欧美激情精品久久久久久变态 | h视频网站在线观看 | 精品一区二区在线观看 | 偷拍第一页 |