2024-04-23 15:53:27 发布
网友
我已经安装了anaconda并创建了python 3.3环境。现在我想安装一些包(dataset)。安装说明要求克隆git repo并运行
python setup.py install
但现在这些包并没有安装到environments site packages文件夹,而是安装到另一个anaconda位置。
解决这个问题的一般步骤是什么?首选与新手兼容的解决方案。操作系统是MacOSX,只是个案,它是相关的。
看起来conda会自动将pip添加到conda环境中,因此在您获得conda环境的源代码后,即:
source activate ~/anaconda/envs/dataset
您应该可以这样安装:
git clone git://github.com/pudo/dataset.git pip install ./dataset
编辑
以下是我采取的具体步骤:
$ 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/
看起来conda会自动将pip添加到conda环境中,因此在您获得conda环境的源代码后,即:
您应该可以这样安装:
编辑
以下是我采取的具体步骤:
相关问题 更多 >
编程相关推荐