如何使用Graphviz安装有效的Intel数据科学环境

问题描述 投票:0回答:1

[最近,我发现有必要探索英特尔DAAL MKL的数据科学,并且在一个位置上难以找到适合工作环境的正确安装。经过几天的尝试和失败之后,我得以完成最终的安装过程,我认为这对希望利用Visual Studio Code或JupyterLab开始其数据科学探索的所有其他数据科学家爱好者都是有益的。下面发布的是我建议的在Windows 10上获得工作环境的步骤。

machine-learning anaconda intel graphviz
1个回答
0
投票
1. Download and install the latest version of Anaconda: https://www.anaconda.com/distribution/
2. Download and install the latest Graphviz installer from their Web site: https://graphviz.gitlab.io/download/ (in my case, version graphviz-2.38.msi was active)
    a. Install graphviz msi for all users
    b. Navigate to Environment Variables: https://t.ly/Gz359
    c. Create a new environment path for the Graphviz (need two links to be added): (in my case it was: C:\Program Files (x86)\Graphviz2.38\bin\    and  C:\Program Files (x86)\Graphviz2.38\bin\dot.exe
    d. Close all command and environment windows
    e. Open a new cmd window and test for the existence of Graphviz:  c:\Users\MyDrive>dot -v
        i. You should get a report of the version and other info  (if it fails, check the environment path entry and possibly repair your Graphviz installation)
        ii. Ctrl-C to close the report
        iii. Close the cmd window
        iv. Reboot your PC
3. Navigate to Anaconda Command Prompt as Administrator and remain in the (base) environment:
    a. In Windows 10, Search for anaconda and select the anaconda command prompt: 
        i. Right-Click on it and select to run it as Administrator
    b. Navigate to the root of the (base) environment: 
        i. cd\
    c. Get a current list of existing environments: 
        i. conda env list
    d. Remove any unwanted environments: 
        i. conda env remove -n OldenvironmentName
    e. Create new desired environment for Intel  Data Science (ids) with the most current Conda libraries, and supported Python version 3.x:
        i. conda create -n ids python=3 numpy pandas seaborn matplotlib scikit-learn daal4py jupyterlab -y
    f. Activate the new environment:
        i.  conda activate ids
    g. Install Graphviz with pip: 
        i. pip install graphviz
    h. Install python support for Graphviz: 
        i. conda install pydot python-graphviz -y
    i. Check that dot is accessible via cmd prompt: 
        i. dot -v
    j. Ctrl-C to close the report
    k. Register the following for intel DataScience enhancements:
        i. set USE_DAAL4PY_SKLEARN=YES
        ii. python -c "import sklearn"
    l. Reboot our PC

回到桌面后,您就可以将新环境用于数据科学过程了

© www.soinside.com 2019 - 2024. All rights reserved.