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/python
- Used that to install using pip: - /Users/<username>/opt/anaconda3/bin/python -m pip install romodel
- Uninstalled the existing one (which probably didn’t change anything): - pip3 uninstall romodel
- Started - 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-info
- So, I start - pythonand manually add the package location to the path:- import sys- sys.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?
