安装python包以纠正anaconda环境

Install python packages to correct anaconda environment(安装python包以纠正anaconda环境)
本文介绍了安装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 arbitrarily incrementing an iterator inside a loop(python在循环内任意递增迭代器)
Joining a set of ordered-integer yielding Python iterators(加入一组产生 Python 迭代器的有序整数)
Iterating over dictionary items(), values(), keys() in Python 3(在 Python 3 中迭代字典 items()、values()、keys())
What is the Perl version of a Python iterator?(Python 迭代器的 Perl 版本是什么?)
How to create a generator/iterator with the Python C API?(如何使用 Python C API 创建生成器/迭代器?)
Python generator behaviour(Python 生成器行为)