Hello Statalisters,
I am currently trying to run a python code in STATA, however I have issues with the python setup.
As instructed on the Stata Blog (https://blog.stata.com/2020/08/18/st...to-use-python/) I have have set the python_exec path (in my case "/opt/homebrew/anaconda3/envs/venv/bin/python" the virtual environment in which I have built the project) I also set the user path etc. However whenever I try to use anaconda to install packages, or even pip for that matter I get faced with an error stating that conda/pip cannot be found. In addition, when I try to activate python I get an error stating that stata failed to load the shared library ("... failed to load the shared library /opt/homebrew/anaconda3/envs/venv/lib/libpython3.7m.dylib. r(7100);" . I am not quite sure how to get around this, if there may be some manually set the library?
I am able to install libraries using the version of python3 which stata finds when using the command "python search", however I am unable to install geopandas, as this specific library requires using anaconda to install, and is unfortunately the key to my code.
Does anyone have any advice on how to resolve using anaconda within stata as a package manager?
I would be extremely grateful for any advice!
Thank you!
I am currently trying to run a python code in STATA, however I have issues with the python setup.
As instructed on the Stata Blog (https://blog.stata.com/2020/08/18/st...to-use-python/) I have have set the python_exec path (in my case "/opt/homebrew/anaconda3/envs/venv/bin/python" the virtual environment in which I have built the project) I also set the user path etc. However whenever I try to use anaconda to install packages, or even pip for that matter I get faced with an error stating that conda/pip cannot be found. In addition, when I try to activate python I get an error stating that stata failed to load the shared library ("... failed to load the shared library /opt/homebrew/anaconda3/envs/venv/lib/libpython3.7m.dylib. r(7100);" . I am not quite sure how to get around this, if there may be some manually set the library?
I am able to install libraries using the version of python3 which stata finds when using the command "python search", however I am unable to install geopandas, as this specific library requires using anaconda to install, and is unfortunately the key to my code.
Does anyone have any advice on how to resolve using anaconda within stata as a package manager?
I would be extremely grateful for any advice!
Thank you!
Comment