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?
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?
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.
conda info --envs
to see the path where your environment is installed"C:Program FilesAnaconda3python.exe"
<absolute path to python.exe> -m pip install <path to tar.gz>
for example:
C:Program FilesAnaconda3python.exe -m pip install c:mymodulegreat.tar.gz
Note that <path to tar.gz>
can be relative, absolute and even an online link.