0

I am trying to run the systems dynamics package BPTK-Py. I am able to download it successfully and when I do list in the terminal it does show up as installed under the name BPTK-Py.

But when I try to run

from BPTK-Py  import Model
from BPTK-Py  import sd_functions as sd

I get

 File "/var/folders/8v/zkdpsxrj3l389d2bxhgyxjn80000gn/T/ipykernel_17344/3538218278.py", line 2
    from BPTK-Py  import Model
             ^
SyntaxError: invalid syntax

I have also tried the syntax recommended in the documentation which is from BPTK_PY import Model but I am having no more luck with that one. Any advice to solve the problem would be much appreciated.

  • What do you mean by `list`? You need to `pip install` it. First try whether you can install and import a package that doesn't have the complication of a hyphen. Also change your title to reflect that this is about importing and installing packages with hyphens in their name. This doesn't seem to be specifically about this particular package. – Cornelius Roemer Dec 16 '22 at 17:28

0 Answers0