Skip to content Skip to sidebar Skip to footer

Anaconda Could Not Find My Already Installed Package

I am trying to install doconce through the clone: https://github.com/hplgit/doconce using: sudo python setup.py install This installs successfully and which doconce returns > /

Solution 1:

The doconce at pypi is outdated and the authors have little interest in updating due to large dependency base of doconce, therefore the use of conda skeleton as suggested by @asmeurer in non_recipe_ananconda_installation is of little interest in this particular problem.

I also tried pip install -e git+https://github.com/hplgit/doconce#egg=doconce with and without sudo. With sudo the install is successful but not as a part of anaconda and without sudo it leads to a weird error of:

error: cannot open .git/FETCH_HEAD: Permission denied

This is what that finally works. First delete all the files installed by sudo python setup.py install by using --record=myfile.txt.

Now go to the cloned doconce repository and do python setup.py install --prefix=/home/sohail/anaconda/ --record=myfile2.txt.

This successfully installs doconce as a part of anaconda default environment. Now you can check that python can also accept doconce as its module but doing python -c 'import doconce' and sys.modules['doconce']. Moreover you can also verify the installation by running the tests in doconce\test, but keep in mind doconce requires too many dependencies. Luckily the owner has made test_mintest.py to verify the minimal installation of doconce.

In the last you can check conda list | grep doconce to verify that doconce is indeed a package now part of anaconda.

This procedure was tested to install doconce and logg-publish as a part of anaconda.

Post a Comment for "Anaconda Could Not Find My Already Installed Package"