本文介紹了在 Anaconda Prompt 中無法識別 pip的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
我在 Windows x64 上使用 Anaconda.我正在嘗試使用 pip 安裝一些庫.但是,命令行無法識別 pip 或任何其他腳本.它們所在的文件夾同時位于用戶和系統 PATH 變量中.如果我使用整個文件路徑,pip 就在那里并且可以工作.有沒有辦法解決這個問題?
I'm using Anaconda on Windows x64. I'm trying to install some library using pip. However, the the command line isn't recognizing pip or any other scripts. The folder that they are all in is in both the user and system PATH variable. pip is there and works if I use the entire file path. Is there a way to fix this?
推薦答案
創建環境時,需要指定pip為依賴:
When creating your environment, you need to specify pip as a dependency:
conda create --name my-env pip
activate my-env
pip install ...
使用所有默認 anaconda 包安裝新環境:
Installing a new environment with all default anaconda packages:
conda create --name my-env anaconda
這篇關于在 Anaconda Prompt 中無法識別 pip的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!