Error using import function
AnsweredHi,
Im very new using gurobi and python. I was following the Python and Gurobi webinars.
However, every time I used the function "import" an error came.
I obtained these errors, For example:
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-15-a136b70772be>in <module>
----> 1frombokeh.charts import*
2
3output_notebook()
4
5slackvars =m.getVars()[orignumvars:]
ModuleNotFoundError: No module named 'bokeh'
another
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-8-d662b94944e4> in <module>
----> 1 import pandas as pd
2 mi = pd.MultiIndex.from_tuples(sorted(list(arcs)), names=('origin','destination'))
3 df = pd.DataFrame(index=mi, columns=commodities)
4 for h in commodities:
5 for i,j in arcs:
ModuleNotFoundError: No module named 'pandas'
-
Official comment
This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?. -
Hi,
These are modules that don't come with every Python distribution, you have to install them separately or use a different Python distribution. If you are using Anaconda Python you can easily install them using conda install.
Best regards,
Sonja
0
Post is closed for comments.
Comments
2 comments