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.
Asked
Active
Viewed 230 times
2 Answers
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