I am using jupyter lab on linux, and I have started it various working directories, including /
, but I am having problems importing a module I installed with pip.
Here is what I did:
pip install primer3-py
Then run ipython
Within ipython run import primer3
works as expected where primer3.calcTm('GTAAAACGACGGCCAGT')
returns 49.16808228911765
However, if I run jupyter lab
Open a console and run import primer3
I now get an import error:
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-1493f16bb490> in <module>()
----> 1 import primer3
ImportError: No module named primer3
Am I doing something wrong here?
Since you already have Anaconda installed have you tried installing primer3
with conda
?
Try the following as described here
conda install -c bioconda primer3-py
Your Linux installation may have more than one Python distribution installed in addition to your Anaconda installation. I use Anaconda for my personal Python needs so I don't overlap with the OS's needs. If there is a package on PyPI which is not on Anaconda Cloud then you can install it with the copy of pip
which comes with your Anaconda installation.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.