python - conda环境激活报错:“系统找不到指定的路径。” (窗户 10)
问题描述
安装 anaconda3 后,我使用 Anaconda 命令提示符启动了 jupyter notebook,它运行良好。后来已经关闭了我的计算机,在启动时我尝试通过 Anaconda 命令提示符打开 jupyter notebook,它打开另一个终端并显示以下警告消息。
Python 3.8.5 (default, Sep 3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Warning: This Python interpreter is in a conda environment, but the environment has not been activated. Libraries may fail to load. To activate this environment please see https://conda.io/activation
我去了https://conda.io/activation,它给了我一个在 Anaconda 提示符下运行的命令
c:\Anaconda3\Scripts\activate base
该命令返回
C:\Users\Daniel>c:\Anaconda3\Scripts\activate
The system cannot find the path specified.
我在https://docs.conda.io/projects/conda/en/latest/user-guide/troubleshooting.html#path-error 解决方案图片上找到了一个解决方案, 但我不知道如何实现它。我还尝试从命令提示符获取 python 和 conda 的路径。conda 的路径是正确的,而 '> where python' 返回“INFO:找不到给定模式的文件。”
C:\Users\Daniel>where python
INFO: Could not find files for the given pattern(s)
解决方案
看起来您在该计算机上的帐户是“Daniel”,因此这可能是您需要运行的命令:
C:\Users\Daniel\Anaconda3\Scripts\activate base
推荐阅读
- matlab - 有没有办法让从 .csv 文件派生的数据存储作为 tall 数组而不是 MATLAB 中的 tall 表?
- sql-server - T-SQL:根据两个条件获取记录
- php - 在 MySQL 查询之间在 PHP 中无法正常工作
- javascript - javascript - 如何将索引为0的重复数组合并到一个数组中
- java - 为什么不能将 IOException() 对象添加到“?扩展异常”的集合中?
- javascript - JavaScript - 在 Safari 上执行代码之前可用的对象定义
- javascript - TestCafe 错误:“没有要运行的测试。测试文件不包含测试,或者过滤器功能过于严格”
- nsis - 如何在安装程序中使文本字段可选?
- c# - 如何在 Windows 窗体应用程序的数据网格视图中添加按钮
- javascript - 添加和删除事件侦听器 - JavaScript