Installing modules to Anaconda from .tar.gz

后端 未结 4 629
不思量自难忘°
不思量自难忘° 2020-12-01 04:57

When I want to install modules to Anaconda, I run conda install. However, now I have a .tar.gz file and want to install this. How to do?

4条回答
  •  独厮守ぢ
    2020-12-01 05:15

    There are several way to achieve this, I'm describing one here, which should be relatively straight forward, even if your defualt "python" variable is not anaconda's.

    1. Check what is your desired anaconda environment (if you're not sure what does this mean, it probably means that you are using root, the default environment)
    2. Run: conda info --envs to see the path where your environment is installed
    3. Go to that path, and find the absolute path to python.exe, for example: "C:\Program Files\Anaconda3\python.exe"
    4. Now, run the following command:

    -m pip install

    for example:

    C:\Program Files\Anaconda3\python.exe -m pip install c:\mymodule\great.tar.gz

    Note that can be relative, absolute and even an online link.

提交回复
热议问题