Issue
I’m having difficulty getting Python to find my pip installation of the module romodel. Here’s what I’ve done so far:
Checked what my python path is using
which python:/Users/<username>/opt/anaconda3/bin/pythonUsed that to install using pip:
/Users/<username>/opt/anaconda3/bin/python -m pip install romodelUninstalled the existing one (which probably didn’t change anything):
pip3 uninstall romodelStarted
python, and tried to find the romodel package:import romodel Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'romodel'I made sure that the
romodelinstall location is in the path:ls /Users/<username>/opt/anaconda3/lib/python3.9/site-packages/ |grep "romodel"romodel-0.0.1.dist-infoSo, I start
pythonand manually add the package location to the path:import syssys.path.append('/Users/<username>/opt/anaconda3/lib/python3.9/site-packages/')However, still no module found:
import romodel Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'romodel'
Is there something obvious that I’m missing? Based on the resources listed below, I would have expected the above procedure to work.
I used the following resources:
And my own previous question: How to correctly uninstall numpy on MacOSX?
Solution
Per the instructions here: https://pypi.org/project/romodel/, I was mistakenly trying to install romodel via pip install romodel. As of May 2022, that isn't how one should install romodel.
However, the correct way to install romodel is to follow the instructions here: https://github.com/cog-imperial/romodel:
pip install git+https://github.com/cog-imperial/romodel.git
Answered By - makansij Answer Checked By - Robin (PHPFixing Admin)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.