Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can I use python plugin in Stata 13 with Anaconda for Python 3.4?

    I used to use Python 3.3 and the plugin works well in Stata. Then I found Anaconda, which has all packages for Python. So I uninstalled Python 3.3 and now use Anaconda (Python 3.4) instead. But it seems like that Python plugin now doesn't work well for me.

    When I type 'python' in Stata's command window, the interface changes. But inside, the python plugin doesn't work well. For example, when I type print("Hello,Python!"), nothing shows up.

    I am suspecting it is due to the different versions. I am wondering how to fix this problem. Thanks!

  • #2
    I have another question for the python plugin. Can we generate the python_plugin.plugin for users? I don't think many people has VS in their PC. Why don't developers just post the .plugin for users? Thanks!

    Comment


    • #3
      Also, .py files cannot be opened.

      After I typed the following lines,

      program python_plugin,plugin
      plugin call python_plugin,test1.py

      Stata told me "file could not be opened." I have set the working directory to the correct one. Since no more information is returned, I have no idea what goes wrong.

      Comment


      • #4
        Originally posted by Ingrid Qiu View Post
        I used to use Python 3.3 and the plugin works well in Stata. Then I found Anaconda, which has all packages for Python. So I uninstalled Python 3.3 and now use Anaconda (Python 3.4) instead. But it seems like that Python plugin now doesn't work well for me.

        When I type 'python' in Stata's command window, the interface changes. But inside, the python plugin doesn't work well. For example, when I type print("Hello,Python!"), nothing shows up.

        I am suspecting it is due to the different versions. I am wondering how to fix this problem. Thanks!

        Solved! Python plugin can work in Stata's command window, with Python 3.4.

        Comment

        Working...
        X