0

I am unable to find the pylogit package in python, when I run this "import pylogit as pl", I get back the error saying no module called pylogit. can you please advise.

sophros
  • 14,672
  • 11
  • 46
  • 75
tjt
  • 620
  • 2
  • 7
  • 17

2 Answers2

3

pylogit is not a standard Python module. It is not installed by default. You need to install the library on your machine with a package manager like pip or conda.

Code-Apprentice
  • 81,660
  • 23
  • 145
  • 268
2

Building off of what Code-Apprentice stated, you'll need to run the commands...
pip install pylogit, more info here.
or...
conda install -c timothyb0912 pylogit, more info here.
If you are unsure what command you should run, here is another stack overflow discussion about the differences between the pip and conda.

Austin Marino
  • 136
  • 1
  • 4