Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/311.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
运行sphinx时出错,因为未加载dyld:Library:@rpath/Python_Python_Path_Python Sphinx_Dyld - Fatal编程技术网

运行sphinx时出错,因为未加载dyld:Library:@rpath/Python

运行sphinx时出错,因为未加载dyld:Library:@rpath/Python,python,path,python-sphinx,dyld,Python,Path,Python Sphinx,Dyld,我正在尝试使用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是我的用

我正在尝试使用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是我的用户名

我能找到的最相似的问题是 但提供的答案似乎是将一堆文件从一个目录复制到另一个目录,这似乎有可能导致其他配置问题

其他答案与以下问题有关:

  • virtualenv(我没有使用)
  • brew+awscli(同样,我没有使用)
根据我看到的问题,看起来我应该通过改变路径来解决这个问题。目前

>echo $PATH
Applications/anaconda/bin:/Users/XXX/Library/enthund/Canopy\u 64bit/User/bin:/Users/XXX/anaconda/bin:/usr/bin:/usr/sbin:/sbin:/usr/local/bin:/Library/TeX/texbin:/opt/X11/bin

我的.bash_档案是

# 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"

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

我通过删除

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_档案。还在等着看这是否会打破天篷