I'd like to find out where yaml package has been installed as Python is unable to import it after installation.
I've a conda environment in my project directory, and in the Conda install command I've also specifically specified the environment despite it already being activated:
$ conda list | grep yaml
yaml 0.1.7
$ conda install yaml --prefix /home/abc/project_dir/envs/
Collecting package metadata (current_repodata.json): done
Solving environment: done
# All requested packages already installed.
Am unable to find yaml though:
$ find /home/abc/project_dir/envs/ -name yaml
(envs)$
Checking sys.path shows python is only looking in the envs path, and since yaml isn't present, the import is failing.
>>> print(sys.path)
['', 'home/abc/project_dir/envs/lib/python37.zip', 'home/abc/project_dir/envs/lib/python3.7', 'home/abc/project_dir/envs/lib/python3.7/lib-dynload', 'home/abc/project_dir/envs/lib/python3.7/site-packages']
I've already tried to uninstall and install it again. At this point I'd just like to understand where it's actually installed so that I can add it manually to the path.