Install python packages to correct anaconda environment

前端 未结 1 697
无人及你
无人及你 2020-12-13 06:39

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

相关标签:
1条回答
  • 2020-12-13 06:46

    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
    

    EDIT

    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/
    
    0 讨论(0)
提交回复
热议问题