Conda seems to have installed package wget as a binary in /bin but not in the environment's site-packages:
$ conda activate geo
(geo) $ find /home/tams00/anaconda3/envs/geo/bin/ -name "wget*"
/home/tams00/anaconda3/envs/geo/bin/wget
(geo) $ find /home/tams00/anaconda3/envs/geo/lib/ -name "wget*"
(geo) $
See error below:
(geo) $ conda --version
conda 4.7.12
(geo) $ python --version
Python 3.7.3
(geo) $ which python
/home/tams00/anaconda3/envs/geo/bin/python
(geo) $ conda install wget
Collecting package metadata (repodata.json): done
Solving environment: done
# All requested packages already installed.
(geo) $ conda list wget
# packages in environment at /home/tams00/anaconda3/envs/geo:
#
# Name Version Build Channel
wget 1.20.1 h20c2e04_0
(geo) $ python -c "import wget"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'wget'
(geo) $
The program wget
is distinct from the Python package wget
. The latter goes by the name python-wget
and can be installed from Conda Forge
conda install -n geo conda-forge::python-wget
This is one of the inherent problems with having a generic package manager that includes packages from many programming languages. The working convention that I've seen is prepending the language whenever there is a conflict. Python packages often get py-
or python-
, R gets r-
, etc..
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