Install python packages to correct anaconda environment(安装python包以纠正anaconda环境)
问题描述
我已经设置了 anaconda 并创建了一个 python 3.3 环境.现在我想安装一些包(dataset).安装说明要求克隆 git repo 并运行
I've setup anaconda and created a python 3.3 environment. Now I wanted to install some package (dataset). The install instructions ask to clone the git repo and run
python setup.py install
但现在这些包没有安装到环境站点包文件夹,而是安装到不同的 anaconda 位置.
but now the packages are not installed to the environments site-packages folder but to a different anaconda location.
解决该问题的常规步骤是什么?新手兼容的解决方案是首选.操作系统是MacOSX,只是大小写,是相关的.
What are the normal steps to solve that problem? Newbie-compatible solutions are preferred. The OS is MacOSX, just is case, it is relevant.
推荐答案
看起来 conda 会自动将 pip 添加到你的 conda 环境中,所以在你 source 你的 conda 环境之后,即:
It looks like conda automatically adds pip to your conda environment, so after you source your conda environment, i.e.:
source activate ~/anaconda/envs/dataset
你应该可以这样安装它:
you should be able to install it like this:
git clone git://github.com/pudo/dataset.git
pip install ./dataset
编辑
以下是我采取的具体步骤:
Here are the exact steps I took:
$ conda create -p ~/anaconda/envs/py33 python=3.3 anaconda pip
$ source activate ~/anaconda/envs/py33
$ which pip
~/anaconda/envs/py33/bin/pip
$ pip install ./dataset/
这篇关于安装python包以纠正anaconda环境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:安装python包以纠正anaconda环境
基础教程推荐
- 究竟什么是“容器"?在蟒蛇?(以及所有的 python 容器类型是什么?) 2022-01-01
- 在 Django Admin 中使用内联 OneToOneField 2022-01-01
- 对多索引数据帧的列进行排序 2022-01-01
- 在 Python 中将货币解析为数字 2022-01-01
- kivy 应用程序中的一个简单网页作为小部件 2022-01-01
- Python 中是否有任何支持将长字符串转储为块文字或折叠块的 yaml 库? 2022-01-01
- Kivy 使用 opencv.调整图像大小 2022-01-01
- Python,确定字符串是否应转换为 Int 或 Float 2022-01-01
- 比较两个文本文件以找出差异并将它们输出到新的文本文件 2022-01-01
- matplotlib 设置 yaxis 标签大小 2022-01-01
