jupyter-notebook - 错误 conda.core.link :_execute(700): An error occurred while installing package 'conda-forge::jupyter_nbextensions_configurator-0.4.1-py37_0'

标签 jupyter-notebook anaconda jupyter conda

我正在尝试使用 conda 在 windows10 上为 python3.7 安装 jupyter_nbextensions_configurator 。 安装包时出错。

我已经尝试重新安装anaconda,但问题仍然出现。

ERROR conda.core.link:_execute(700): An error occurred while installing package 'conda-forge::jupyter_nbextensions_configurator-0.4.1-py37_0'.
Rolling back transaction: done

LinkError: post-link script failed for package conda-forge::jupyter_nbextensions_configurator-0.4.1-py37_0
location of failed script: C:\Users\Cesare\Anaconda3\Scripts\.jupyter_nbextensions_configurator-post-link.bat

我想知道如何安装成功。

最佳答案

我也面临着同样的问题。这是我尝试克隆基本环境时的输出[以管理员身份运行]:

(base) PS C:\WINDOWS\system32>  conda create --name django --clone base
WARNING: A conda environment already exists at 'C:\Users\Tanishk\anaconda3\envs\django'
Remove existing environment (y/[n])? y

Source:      C:\Users\Tanishk\anaconda3
Destination: C:\Users\Tanishk\anaconda3\envs\django
The following packages cannot be cloned out of the root environment:
 - conda-forge/win-64::conda-4.9.2-py38haa244fe_0
 - defaults/win-64::conda-build-3.20.5-py38_1
 - defaults/win-64::conda-env-2.6.0-1
Packages: 305
Files: 2077
Preparing transaction: done
Executing transaction: done
ERROR conda.core.link:_execute(698): An error occurred while installing package 'defaults::openssl-1.1.1h-he774522_0'.
Rolling back transaction: done

CondaError: Cannot link a source that does not exist. C:\Users\Tanishk\anaconda3\pkgs\openssl-1.1.1h-he774522_0\Library\bin\openssl.exe
Running `conda clean --packages` may resolve your problem.
()

您会注意到给我带来问题的软件包与您的不同,但错误保持不变(ERROR conda.core.link)。


这是我解决问题的方法:

  1. Google 搜索错误中提到的软件包。就我而言,它是openssl-1.1.1h-he774522_0
  2. 打开 Anaconda Files 的结果(应该是第一个搜索结果): anaconda/packages/openssl 1 - 文件::Anaconda Cloud
  3. Ctrl+F 在列表中查找包。
  4. 将压缩包下载到本地“Downloads”文件夹。
  5. 将已安装的错误软件包的内容备份到 *C:\Users\Tanishk\anaconda3\pkgs\openssl-1.1.1h-he774522_0* 某处。
  6. 将解压后的下载包内容复制到 *C:\Users\Tanishk\anaconda3\pkgs\openssl-1.1.1h-he774522_0* 文件夹中。
  7. 在 Anaconda 提示符下重试您遇到的任何问题。

注意:

  • 在第 7 步之后,我遇到了另一个相同的错误,但这次是针对不同的包 (vs2015_runtime-14.16.27012-hf0eaf9b_3)。我也对此包执行了相同的步骤 --> Google -- 下载 -- 替换旧内容。之后我就能够成功地运行了。
  • 我建议通过 google 搜索该软件包,因为如果您在 Anaconda 本身上搜索该软件包名称,它会要求您先登录。

关于jupyter-notebook - 错误 conda.core.link :_execute(700): An error occurred while installing package 'conda-forge::jupyter_nbextensions_configurator-0.4.1-py37_0' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58558116/

相关文章:

python - 在本地安装 jupyter 后,我无法运行 jupyter notebook

python - 有没有办法自动关闭 Spark/jupyter session

amazon-ec2 - 保存文件: Unable to open database file时出错

python - 如何重复使用和多次绘制同一图

python - Bash 命令不会在 Jupyter Notebook 中执行

javascript - IPython 3 到 Jupyter 迁移、custom.js 和事件

Python: "ModuleNotFoundError",但是安装了模块?

c++ - Visual Studio Code - 在调试之前激活 Env

Tensorflow 未在 jupyter notebook 的 GPU 上运行

python - windows上新conda环境下无法打开jupyter笔记本