Python 在 Anaconda Navigator 上找不到包。接下来做什么?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/39299726/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Can't find package on Anaconda Navigator. What to do next?
提问by dimrizo
I am trying to install "pulp" module in Anaconda Navigator's Environment tabs. But when I search in "All" packages I can't find it. It happened with other packages too.
我正在尝试在 Anaconda Navigator 的环境选项卡中安装“纸浆”模块。但是当我在“所有”包中搜索时,我找不到它。它也发生在其他包上。
Is there any way to install my package to the desired environment?
有什么办法可以将我的软件包安装到所需的环境中吗?
I tried to install it by opening a terminal in the environment, but I see that afterwards it won't show up in the list.
我试图通过在环境中打开一个终端来安装它,但我发现它之后不会出现在列表中。
What am I missing here?
我在这里缺少什么?
回答by Lin Eliza
回答by Giri19
Thanks for A2A
感谢 A2A
- Open "Anaconda Navigator"
- Navigate to "Environments"
- Select your environment where the package needs to be installed
- Click on the "play/pause" button present on the environment name
- Click "Open terminal" from your environment
- In terminal type "conda install (package-name)"
- 打开“蟒蛇导航器”
- 导航到“环境”
- 选择需要安装包的环境
- 单击环境名称上的“播放/暂停”按钮
- 从您的环境中单击“打开终端”
- 在终端输入“conda install (package-name)”
Added instructions1. If the package is not available in any of the Anaconda Repository then type the following: "pip install (package name)"
添加说明1. 如果该软件包在任何 Anaconda 存储库中都不可用,请键入以下内容:“pip install (package name)”
回答by Safwan
Download tar.gz file of the package (in your case, pulp) from hereand follow the accepted answer of this stackoverflow question.
从这里下载包的 tar.gz 文件(在您的情况下是纸浆),并按照此 stackoverflow question的已接受答案进行操作。