I am trying to install bokey and repeatedly failed. I have broken this down to the following steps:
I have created a new and otherwise empty environment
conda create -n py37 pip python=3.7
activate py37
and have sucessfully installed bokeh
conda install bokeh
Running a given hello world example such as
from bokeh.plotting import figure, output_file, show
# prepare some data
x = [1, 2, 3, 4, 5]
y = [6, 7, 2, 4, 5]
# output to static HTML file
output_file("lines.html")
# create a new plot with a title and axis labels
p = figure(title="simple line example", x_axis_label='x', y_axis_label='y')
# add a line renderer with legend and line thickness
p.line(x, y, legend_label="Temp.", line_width=2)
# show the results
show(p)
I end up with an error
builtins.ImportError:
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Importing the numpy c-extensions failed.
- Try uninstalling and reinstalling numpy.
- If you have already done that, then:
1. Check that you expected to use Python3.7 from "c:\Users\<name>\Miniconda3\envs\py37-bk2\python.exe",
and that you have no directories in your PATH or PYTHONPATH that can
interfere with the Python and numpy version "1.18.1" you're trying to use.
When I follow hints how to reinstall numpy in that situation given here, I seem to break the Pillow installation:
File "c:\Users\<name>\Miniconda3\envs\py37-bk2\Lib\site-packages\PIL\Image.py", line 69, in <module>
from . import _imaging as core
builtins.ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.
What am I missing?
UPDATE: It seems that the problem is related to the WingIDE I am using. I cannot reproduce the problem in spyder