简体   繁体   English

Julia 中的 PyCall 构建错误和 conda.core.link 错误

[英]PyCall Build Error and conda.core.link Error in Julia

I am new to Julia and want to run a script in Julia.我是 Julia 的新手,想在 Julia 中运行脚本。 The script needs to install PyPlot package, so I type Pkg.add("PyPlot") to add it.脚本需要安装PyPlot package,所以我输入Pkg.add("PyPlot") 来添加。 However, after downloading and updating some packages the following error will appears:但是,在下载和更新某些包后,会出现以下错误:

Preparing transaction: done Verifying transaction: done Executing transaction: failed ERROR conda.core.link:_execute(502): An error occurred while installing package 'defaults::charset-normalizer-2.0.4-pyhd3eb1b0_0'.准备事务:完成验证事务:完成执行事务:失败错误 conda.core.link:_execute(502):安装 package 'defaults::charset-normalizer-2.0.4-pyhd3eb1b0_0' 时出错。 CondaError: Cannot link a source that does not exist. CondaError:无法链接不存在的源。 C:\Users\seabd4.julia\v0.6\Conda\deps\usr\Scripts\conda.exe Running conda clean --packages may resolve your problem. C:\Users\seabd4.julia\v0.6\Conda\deps\usr\Scripts\conda.exe 运行conda clean --packages可能会解决您的问题。 Attempting to roll back.试图回滚。

Rolling back transaction: done回滚事务:完成

CondaError: Cannot link a source that does not exist. CondaError:无法链接不存在的源。 C:\Users\seabd4.julia\v0.6\Conda\deps\usr\Scripts\conda.exe Running conda clean --packages may resolve your problem. C:\Users\seabd4.julia\v0.6\Conda\deps\usr\Scripts\conda.exe 运行conda clean --packages可能会解决您的问题。

=====================[ BUILD ERRORS ]============================== =====================[构建错误]========================= =====

WARNING: PyCall had build errors.警告:PyCall 有构建错误。

  • packages with build errors remain installed in C:\Users\seabd4.julia\v0.6具有构建错误的软件包仍安装在 C:\Users\seabd4.julia\v0.6
  • build the package(s) and all dependencies with Pkg.build("PyCall")使用Pkg.build("PyCall")构建包和所有依赖项
  • build a single package by running its deps/build.jl script通过运行deps/build.jl脚本构建单个 package

==================================================================== ==================================================== ===================

So, I tried to type conda clean --packages but an error appeared again所以,我尝试输入conda clean --packages但再次出现错误

ERROR: syntax: extra token "clean" after end of expression错误:语法:表达式结束后的额外标记“干净”

Would you please help me solve this problem?你能帮我解决这个问题吗?

Use Python that is built into Julia.使用 Julia 中内置的 Python。 Using an external Python is always possible but more pain;-)使用外部 Python 始终是可能的,但更痛苦;-)

using Pkg
ENV["PYTHON"]=""
Pkg.build("PyCall")
Pkg.build("Conda")
Pkg.add("PyPlot") # or Pkg.build("PyPlot") depending when it failed

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 更新时的Conda错误:`conda.core.link:_execute(637):安装包'None'时发生错误。 Asse田()` - Conda error on update: `conda.core.link:_execute(637): An error occurred while installing package 'None'. AssertionError()` 错误 conda.core.link:_execute(701):更新 conda 包时出错 - ERROR conda.core.link:_execute(701): An error occured while updating conda packages 克隆 conda env 失败:错误 conda.core.link:_execute(543) - Cloning conda env fails: error conda.core.link:_execute(543) 如何处理“ ERROR conda.core.link:_execute_actions(337)”? - How to handle “ERROR conda.core.link:_execute_actions(337)”? python-docx 不会安装 ERROR conda.core.link:_execute(700) - python-docx won't install ERROR conda.core.link:_execute(700) 错误 conda.core.link:_execute(502): 安装包 'conda-forge::astor-0.7.1-py_0' 时出错 - ERROR conda.core.link:_execute(502): An error occurred while installing package 'conda-forge::astor-0.7.1-py_0' 错误 conda.core.link:_execute(699): 安装包 'defaults::openssl-1.1.1l-h2bbff1b_0' 时出错 - ERROR conda.core.link:_execute(699): An error occurred while installing package 'defaults::openssl-1.1.1l-h2bbff1b_0' 安装 conda 包时出错:conda.core.link:_execute(696):安装包“conda-forge::qt-5.9.7-h506e8af_3”时出错 - Error installing conda packages: conda.core.link:_execute(696): An error occurred while installing package 'conda-forge::qt-5.9.7-h506e8af_3' 错误 conda.core.link:_execute(698):安装包“defaults::icu-58.2-ha925a31_3”时出错 - ERROR conda.core.link:_execute(698): An error occurred while installing package 'defaults::icu-58.2-ha925a31_3' 错误 conda.core.link:_execute(699): 安装包“defaults::qt-5.9.7-vc14h73c81de_0”时出错。 回滚事务:完成 - ERROR conda.core.link:_execute(699): An error occurred while installing package 'defaults::qt-5.9.7-vc14h73c81de_0'. Rolling back transaction: done
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM