1

I am new to installing python packages using pip and am running into trouble. I am trying to install the library "mlfinlab" using pip and running it in Anaconda/Jupyter Notebooks. When i type "pip install mlfinlab" into my terminal i get the following message at the end:

Cannot uninstall 'llvmlite'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

I'm not sure if that error message is relevant but thought I'd include it anyways.

I had tried to then run a Jupyter Notebook and import mlfinlab but was given the messsage that there were no modules by that name.

I have already tried running:

import sys
print(sys.executable)

in a Jupyter Notebook and then typing the output of that into my command line along with "-m pip install mlfinlab" which did not seem to work either.

AMC
  • 2,642
  • 7
  • 13
  • 35
Dash
  • 37
  • 9
  • https://stackoverflow.com/search?q=%5Bpip%5D+Cannot+uninstall+It+is+a+distutils+installed+project+and+thus+we+cannot+accurately+determine+which+files+belong+to+it+which+would+lead+to+only+a+partial+uninstall – phd Mar 21 '20 at 14:34
  • Be careful about how you're using pip, take a look at https://www.anaconda.com/using-pip-in-a-conda-environment/. – AMC Mar 21 '20 at 23:05

2 Answers2

1

I ended up upgrading my llvmlite package which seemed to do the trick. Did not get to try the other posted solution but it may work as well.

Dash
  • 37
  • 9
0

Might be a problem with pip, try upgrading it with:

pip install --upgrade pip

  • Sorry I ended up upgrading llvmlite package which worked and did not get to try your answer. – Dash Mar 21 '20 at 03:31