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.
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)
Run: conda info --envs to see the path where your environment is installed
Go to that path, and find the absolute path to python.exe, for example:
"C:\Program Files\Anaconda3\python.exe"
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.