【发布时间】:2017-10-23 23:37:42
【问题描述】:
(请耐心等待我的描述,这是一个相当长的故障排除之旅。)
我的最终目标是让 python 包 graph_tool 在我的系统上运行,如果可能的话也在 ipynb 上运行。我已经有brew install graph-tool、as indicated here,但还是不够。
所以我关注conda instructions here,并尝试满足所有要求,包括拥有cgal 和python3.6。我最初有 python2.7 和 python3.5 的 anaconda,但由于 python3.6 是必需的,我下载了带有 python3.6 的 anaconda3。 (conda update python 仍然给我 3.5)
我删除 /Users/mymacbook/anaconda,以便 /Users/mymacbook/anaconda3 成为默认搜索目录。我有一个小成功!
$ python3
Python 3.6.2 |Anaconda, Inc.| (default, Sep 21 2017, 18:29:43)
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
不幸的是,当我继续conda install 所需的其他软件包(boost、cgal 等)时,我的 python3 恢复到 3.5 :(
$ python3
Python 3.5.4 |Anaconda custom (x86_64)| (default, Oct 5 2017, 02:58:14)
$ conda install python=3.6
Fetching package metadata ...........
Solving package specifications: .
UnsatisfiableError: The following specifications were found to be in conflict:
- cgal -> python 3.5*
- python 3.6*
Use "conda info <package>" to see the dependencies for each package.
$ conda info cgal
Fetching package metadata ...........
ResolvePackageNotFound:
- cgal
很麻烦不是吗...由于 ResolvePackageNotFound,建议卸载 cgal,但就像我提到的,我需要 cgal 和 python3.6。
提前感谢您的帮助! (并且请在您的建议中包含适用的命令行 - 我是初学者)
【问题讨论】:
标签: python python-3.x conda