I'm trying to upload the curve_fit from scipy.optimize to fit an exponential function to some data I have generated. My code looks like:
import matplotlib.pyplot as plt
import numpy as np
from scipy.optimize import curve_fit
When I run the code, I get the following error:
ImportError: DLL load failed: The specified module could not be found.
I have scipy in an Anaconda folder on my computer, and I'm 80% sure I installed it. How do I fix this error? (Or if you have a better way of fitting an exponential function to data, I'm all ears)
Thanks!
edit: Here is the full error:
Traceback (most recent call last):
File "C:\Users\Casey\Documents\Python\Perc_MatPlot3.py", line 10
from scipy.optimize import curve_fit
File "C:\Users\Casey\Anaconda\Lib\site-packages\scipy\optimize\__init__.py", line 146
from .optimize import *
File "C:\Users\Casey\Anaconda\Lib\site-packages\scipy\optimize\optimize.py", line 35
from .linesearch import (line_search_BFGS, line_search_wolfe1,
File "C:\Users\Casey\Anaconda\Lib\site-packages\scipy\optimize\linesearch.py", line 16
from scipy.optimize import minpack2
ImportError: DLL load failed: The specified module could not be found.