即使已安装,也无法使用任何 Anaconda 功能
Unable to use any Anaconda features even though its installed
我已经从它的站点安装了 Anaconda 并且在一段时间内运行良好,但是我需要安装 Plotly 并使用另一个站点中提到的以下步骤。
我刚刚使用以下步骤在 spyder 3.0 上安装并 运行ning。 (windows 10)
Download plotly using pip usig command line (python -m pip install plotly) this requires downloading python 3.5 separately from Spyder as well. (so far I haven’t had any conflicts)
In Spyder, goto->Tools ->PYTHONPATH Manager -> addPath -> insert path to Plotly library (mine was in python\python36-32\Lib\site-packages), then synchronize
Restart Spyder
test it out with import plotly.plotly \n import plotly.graph_objs as go in a new .py scrypt
Hope it works out for you.
Cheers
完成上述步骤后,我可以在 Spyder 中进行 plotly 导入,没有遇到任何问题,但是在我重新启动机器后,我无法 运行 Anaconda navigator 或 Spyder。
我能够启动 Anaconda 提示符,但执行任何命令 returns 不同类型的错误,例如
"conda 安装 anaconda-navigator"
environment variables:
conda info could not be constructed.
KeyError('pkgs_dirs')
"spyder"
ImportError: cannot import name 'constants' from partially initialized module 'zmq.backend.cython' (most likely due to a circular import) (C:\Python\Lib\site-packages\zmq\backend\cython_init_.py)
anaconda-navigator
ImportError: DLL load failed while importing shell: The specified module could not be found.
我尝试了网上的所有解决方案,如卸载和重新安装,删除 anaconda 上的所有跟踪文件,甚至环境变量似乎都没有问题
echo %PATH% 命令returns
C:\ProgramData\Anaconda3;C:\ProgramData\Anaconda3\Library\mingw-w64\bin;C:\ProgramData\Anaconda3\Library\usr\bin;C:\ProgramData\Anaconda3\Library\bin;C:\ProgramData\Anaconda3\Scripts;C:\ProgramData\Anaconda3\bin;C:\ProgramData\Anaconda3\condabin;C:\Python\Scripts;C:\Python;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0;C:\windows\System32\OpenSSH;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\nodejs;C:\Program Files\Microsoft VS Code\bin;C:\Users\saish\AppData\Local\Programs\Python\Python38;C:\Program Files\Java\jre1.8.0_301\bin;C:\apache-zookeeper-3.7.0\bin;C:\Spark\spark-3.0.2-bin-hadoop2.7\bin;C:\hadoop\bin;C:\Users\saish\AppData\Local\Microsoft\WindowsApps;C:\Users\saish\AppData\Roaming\np
其中 python 命令 returns
C:\ProgramData\Anaconda3\python.exe
C:\Users\saish\AppData\Local\Microsoft\WindowsApps\python.exe
请提出除我提到的措施之外的任何新措施。提前致谢
根据 this github 问题,您可能在安装的 anaconda 软件包依赖项与您手动安装的依赖项之间存在冲突。检查您的 pythonpath 并查看是否从 pythonpath 中删除 pip 文件夹可以解决问题。
我已经从它的站点安装了 Anaconda 并且在一段时间内运行良好,但是我需要安装 Plotly 并使用另一个站点中提到的以下步骤。 我刚刚使用以下步骤在 spyder 3.0 上安装并 运行ning。 (windows 10)
Download plotly using pip usig command line (python -m pip install plotly) this requires downloading python 3.5 separately from Spyder as well. (so far I haven’t had any conflicts) In Spyder, goto->Tools ->PYTHONPATH Manager -> addPath -> insert path to Plotly library (mine was in python\python36-32\Lib\site-packages), then synchronize Restart Spyder test it out with import plotly.plotly \n import plotly.graph_objs as go in a new .py scrypt Hope it works out for you. Cheers
完成上述步骤后,我可以在 Spyder 中进行 plotly 导入,没有遇到任何问题,但是在我重新启动机器后,我无法 运行 Anaconda navigator 或 Spyder。 我能够启动 Anaconda 提示符,但执行任何命令 returns 不同类型的错误,例如
"conda 安装 anaconda-navigator"
environment variables: conda info could not be constructed. KeyError('pkgs_dirs')
"spyder"
ImportError: cannot import name 'constants' from partially initialized module 'zmq.backend.cython' (most likely due to a circular import) (C:\Python\Lib\site-packages\zmq\backend\cython_init_.py)
anaconda-navigator
ImportError: DLL load failed while importing shell: The specified module could not be found.
我尝试了网上的所有解决方案,如卸载和重新安装,删除 anaconda 上的所有跟踪文件,甚至环境变量似乎都没有问题
echo %PATH% 命令returns
C:\ProgramData\Anaconda3;C:\ProgramData\Anaconda3\Library\mingw-w64\bin;C:\ProgramData\Anaconda3\Library\usr\bin;C:\ProgramData\Anaconda3\Library\bin;C:\ProgramData\Anaconda3\Scripts;C:\ProgramData\Anaconda3\bin;C:\ProgramData\Anaconda3\condabin;C:\Python\Scripts;C:\Python;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0;C:\windows\System32\OpenSSH;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\nodejs;C:\Program Files\Microsoft VS Code\bin;C:\Users\saish\AppData\Local\Programs\Python\Python38;C:\Program Files\Java\jre1.8.0_301\bin;C:\apache-zookeeper-3.7.0\bin;C:\Spark\spark-3.0.2-bin-hadoop2.7\bin;C:\hadoop\bin;C:\Users\saish\AppData\Local\Microsoft\WindowsApps;C:\Users\saish\AppData\Roaming\np
其中 python 命令 returns
C:\ProgramData\Anaconda3\python.exe
C:\Users\saish\AppData\Local\Microsoft\WindowsApps\python.exe
请提出除我提到的措施之外的任何新措施。提前致谢
根据 this github 问题,您可能在安装的 anaconda 软件包依赖项与您手动安装的依赖项之间存在冲突。检查您的 pythonpath 并查看是否从 pythonpath 中删除 pip 文件夹可以解决问题。