繁体   English   中英

由于dyld而运行sphinx时出错:库未加载:@ rpath / Python

[英]error running sphinx due to dyld: Library not loaded: @rpath/Python

我正在尝试使用sphinx构建我正在开发的软件包的文档。 我过去使用的命令正常工作。 看来到库的链接已在我的机器上消失了。 我正在使用Mac。

> sphinx-autobuild . _build/html
dyld: Library not loaded: @rpath/Python
Referenced from: /Users/XXX/Library/Enthought/Canopy_64bit/User/bin/python
Reason: image not found

其中XXX是我的用户名

我可以找到的最相似的问题是pyside-rcc“ dyld:未加载库:...”,但是提供的答案似乎是将一堆文件从一个目录复制到另一个目录,这似乎有引发其他配置问题的风险。

其他答案与以下问题有关

根据我所看到的问题,看来我应该通过更改路径来解决此问题。 目前

>echo $PATH

Applications/anaconda/bin:/Users/XXX/Library/Enthought/Canopy_64bit/User/bin:/Users/XXX/anaconda/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Library/TeX/texbin:/opt/X11/bin

我的.bash_profile是

# added by Anaconda 2.1.0 installer
export PATH="/Users/XXX/anaconda/bin:$PATH"


# Added by Canopy installer on 2016-08-08
# VIRTUAL_ENV_DISABLE_PROMPT can be set to '' to make the bash prompt show that Canopy is active, otherwise 1
alias activate_canopy="source '/Users/XXX/Library/Enthought/Canopy_64bit/User/bin/activate'"
VIRTUAL_ENV_DISABLE_PROMPT=1 source '/Users/XXX/Library/Enthought/Canopy_64bit/User/bin/activate'

# added by Anaconda3 4.3.1 installer
export PATH="/Applications/anaconda/bin:$PATH"

遮篷正在执行的激活命令似乎是问题的一部分。

我通过移除来解决此问题

alias activate_canopy="source '/Users/XXX/Library/Enthought/Canopy_64bit/User/bin/activate'"
VIRTUAL_ENV_DISABLE_PROMPT=1 source '/Users/XXX/Library/Enthought/Canopy_64bit/User/bin/activate'

从我的.bash_profile。 仍在等待,看看这是否会破坏机盖。

暂无
暂无

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM