Not working in windows cmd prompt
See original GitHub issuelet’s plot works well in pycharm and jupyter notebook. But when I try to run the script in cmd prompt, errors occour:
from lets_plot import *
D:\programfiles\anaconda\lib\site-packages\numpy\__init__.py:143: UserWarning: mkl-service package failed to import, therefore Intel(R) MKL initialization ensuring its correct out-of-the box operation under condition when Gnu OpenMP had already been loaded by Python process is not assured. Please install mkl-service package, see http://github.com/IntelPython/mkl-service
from . import _distributor_init
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\yuliang18\AppData\Roaming\Python\Python38\site-packages\lets_plot\__init__.py", line 17, in <module>
from .frontend_context import *
File "C:\Users\yuliang18\AppData\Roaming\Python\Python38\site-packages\lets_plot\frontend_context\__init__.py", line 6, in <module>
from ._configuration import *
File "C:\Users\yuliang18\AppData\Roaming\Python\Python38\site-packages\lets_plot\frontend_context\_configuration.py", line 8, in <module>
from ._html_contexts import _create_html_frontend_context, _use_isolated_frame
File "C:\Users\yuliang18\AppData\Roaming\Python\Python38\site-packages\lets_plot\frontend_context\_html_contexts.py", line 7, in <module>
from ._jupyter_notebook_ctx import JupyterNotebookContext
File "C:\Users\yuliang18\AppData\Roaming\Python\Python38\site-packages\lets_plot\frontend_context\_jupyter_notebook_ctx.py", line 14, in <module>
from .. import _kbridge as kbr
File "C:\Users\yuliang18\AppData\Roaming\Python\Python38\site-packages\lets_plot\_kbridge.py", line 7, in <module>
import lets_plot_kotlin_bridge
ImportError: DLL load failed while importing lets_plot_kotlin_bridge: 找不到指定的模块。
Environment:
- win 64
- python 3.8.8
- lets plot 2.1
- conda install m2w64-toolchain : done
Issue Analytics
- State:
- Created 2 years ago
- Comments:8
Top Results From Across the Web
Command Prompt not working or opening in Windows 11/10
Command Prompt not working or opening in Windows 11/10 · Launch Command Prompt from File Explorer. · Try opening Command Prompt from Task...
Read more >8 Ways to Fix the Windows Command Prompt When It's ...
8 Ways to Fix the Windows Command Prompt When It's Unresponsive · 1. Close Active Tasks or Restart Your Device · 2. Access...
Read more >CMD commands not working in windows 10
For some commands and options to work in the command line you must run the command line as administrator. To do this, right-click...
Read more >Fixed: Command Prompt Not Working in Windows 11/10
Command Prompt is not working in Windows 11/10 ; Fix 1. Use CMD Alternative, Run CMD alternative software > Right-click target partition to...
Read more >How to Fix Command Prompt Not Working in Windows 10 Error
How to Fix Command Prompt Not Working in Windows 10 Error · 1. Check Antivirus · 2. Command Prompt Shortcut · 3. Create...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hello, @alshan Thanks for you reply. Importing issue solved. I tried
in Rstudio, I didn’t render the
Hello!
as other Python IDE did. So I guess Rstudio can’t make it come true at the moment.Hi @antonio-yu , when in R/Reticulate try to activate your conda environment (where m2w64-toolchain and lets-plot were inatalled to) using the
use_condaenv()
function. See details here: https://rpubs.com/dku850/603511I hope this will resolve the lets-plot importing issue in RStudio.
As for rendering, lets-plot relies on IPython API. Make sure it is installed in your python environment as well. Check whether it works in RStudio :
If this code works than lets-plot will likely be able to display plots in RStudio. If not than this is unlikely.