安装python软件包以更正anaconda环境

安装python软件包以更正anaconda环境

本文介绍了安装python软件包以更正anaconda环境的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经设置了anaconda并创建了一个python 3.3环境.现在,我想安装一些软件包(数据集).安装说明要求克隆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

但是现在这些软件包没有安装到环境site-packages文件夹中,而是安装在另一个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环境中,因此在获取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环境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-01 23:53