Issue
I recently installed pybedtools in my Conda environment, using the command they mentioned -
conda install -c bioconda pybedtools
But then when I activated spyder in this environment, and tried to run import pybedtools
it gave me the error-
Modulenotfounderror: no module named 'pybedtools'
I went back and tried to install using the module using pip
too (pip install pybedtools
) but it said that I already had it -
Requirement already satisfied: pybedtools in /anaconda3/envs/env1/lib/python3.5/site-packages
Requirement already satisfied: six in ./anaconda3/envs/env1/lib/python3.5/site-packages (from pybedtools)
So, I am unable to understand how it is that the module is installed yet Spyder does not allow me to import it. I have never faced this issue with Anaconda before. Any help would be great!
Solution
Here is how I was able to solve the issue -
- activate the
root
environment. This can be done byactivate root
in Windows andsource activate root
in Ubuntu/Mac - install the said package here. This can be done using the same command that you used to install the package in your previous environment
- Go back to your original environment. The problem will now be resolved.
I would love to know, though, why this method works!
Answered By - user1993
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.