Hi, I installed osmnx using
pip3 install *****, and I tested it out with a simple python code. It works out as expected. Then, I’d like to be able to
import osmnx. After searching from the internet, I need to use the
PyCall package. So I tried the following.
using PyCall @pyimport(osmnx)
I got an error message, saying that the module osmnx is not installed/found in the current python version the PyCall is configured to yet. So I go to the mac terminal, run
which python, and it gives an executable path of the current python. Then, I followed what the
PyCall documentation mentioned, by changing/setting the environment as the following.
ENV["PYTHON"] = " a path to my executable"
This time, the python in PyCall is configured to the correct python3, but still it does not work. Plus, based on the PyCall documentation, the python version used in PyCall is automatically configured to the python3 in the system by default.
So I really need help indeed. Thank you!