Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/285.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python saspy sas内核在jupyter中不可见_Python_Sas_Anaconda_Jupyter Notebook_Jupyter - Fatal编程技术网

Python saspy sas内核在jupyter中不可见

Python saspy sas内核在jupyter中不可见,python,sas,anaconda,jupyter-notebook,jupyter,Python,Sas,Anaconda,Jupyter Notebook,Jupyter,我可以使用Python内核很好地运行这段代码: import saspy sas = saspy.SASsession() sas cars = sas.sasdata('cars', 'sashelp') cars.head() 不幸的是,我不能再选择SAS内核了。我重新安装了saspy和sas内核,正如您所看到的,sas内核(?)是从Python开始工作的。这: jupyter kernelspec list 仅返回我的python和r内核: Available kernels: i

我可以使用Python内核很好地运行这段代码:

import saspy
sas = saspy.SASsession()
sas
cars = sas.sasdata('cars', 'sashelp')
cars.head()
不幸的是,我不能再选择SAS内核了。我重新安装了saspy和sas内核,正如您所看到的,sas内核(?)是从Python开始工作的。这:

jupyter kernelspec list
仅返回我的python和r内核:

Available kernels:
  ir         C:\ProgramData\Anaconda3\share\jupyter\kernels\ir
  python3    C:\ProgramData\Anaconda3\share\jupyter\kernels\python3

我能以某种方式刷新(?)手动注册sas内核吗?

我能想象出这不起作用的两个原因:

  • 在安装sas_内核时,是否使用了正确的pip?(通常在同一个系统中有python2和python3,它们都有单独的包存储库)
  • 您是否尝试手动安装它?我使用了以下命令:

    jupyter kernelspec install <path_to_sas_kernel>
    
    这对我很有效。 希望这有帮助

    jupyter kernelspec install .\newpackages\sas_kernel-2.1.7\sas_kernel