There are several ways to achieve this, I'm describing one here, which should be relatively straight forward, even if your default python
variable is not anaconda's.
conda info --envs
to see the path where your environment is installed"C:\Program Files\Anaconda3\python.exe"
<absolute path to python.exe> -m pip install <path to tar.gz>
for example:
C:\Program Files\Anaconda3\python.exe -m pip install c:\mymodule\great.tar.gz
Note that <path to tar.gz>
can be relative, absolute and even an online link.
It depends on where your archive comes from:
pip
:pip install package.tar.gz
# Or:
python -m pip install package.tar.gz
conda
:conda install package.tar.gz
If you have multiple python installations, you may need to specify absolute path to the python/conda executable.
Note that the archive files on pypi and conda-forge are usually very different:
If you already have a working Anaconda distribution, I would encourage you to get archives from conda-forge instead of pypi.
Here is how to do :
Q:\anaconda3\Scripts>conda install q:\quandl-3.4.4-py37_0.tar.bz2
Downloading and Extracting Packages
###########################################################################################
#################################################################### | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
Q:\anaconda3\Scripts>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With