Stata can search for any available Python installation, including the installation through Anaconda. What I did was to uninstall the other version of Python and kept only the Anaconda installation. Each time I tried to type python from the Stata command prompt, the error message generated by Stata was: initialized no The stand-alone version of Python did not work with Stata. And with Stata 16, this again came out true. Over the past 12 months, I found that the installation of Python using Anaconda is the least problematic one. These steps are mentioned below:Ī number of options are available to install Python. In this short post, I am going to outline a few basic steps to get started with Python from Stata. Only time can tell what will work best in such situations. One solution might be the portable version of Python. That would definitely make a Stata-Python code less portable. Stata depends on the already installed version of Python. However, this integration exposes Stata to all the problems of Python installations and its packages.įirst of all, Python does not come as part of the Stata installation. That would definitely expand the possibilities of doing extraordinary things without leaving the Stata environment. With the announcement of Stata 16, Python commands can be executed directly from the Stata command prompt, do files or ado programs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |