如何在linux-64上安装Anaconda Python 3.5的图形工具?

如何在linux-64上安装Anaconda Python 3.5的图形工具?,第1张

概述我正在尝试在Ubuntu 14.04(x64)上为Anaconda Python 3.5安装图形工具,但事实证明这是一个真正的技巧. 我试过this approach,但遇到了问题: The following specifications were found to be in conflict: - graph-toolUse "conda info <package>" to see 我正在尝试在Ubuntu 14.04(x64)上为Anaconda Python 3.5安装图形工具,但事实证明这是一个真正的技巧.

我试过this approach,但遇到了问题:

The following specifications were found to be in conflict:  - @R_89_3404@Use "conda info <package>" to see the dependencIEs for each package.

挖掘依赖关系导致了gobject-introspection的死胡同

所以我尝试了另一种方法:

使用conda安装了boost,然后尝试./configure,make和make install @R_89_3404@ …这就是./configure:

===========================Using python version: 3.5.2===========================checking for boostlib >= 1.54.0... yeschecking whether the Boost::Python library is available... yeschecking whether boost_python is the correct library... nochecking whether boost_python-py27 is the correct library... nochecking whether boost_python-py27 is the correct library... (cached) nochecking whether boost_python-py27 is the correct library... (cached) nochecking whether boost_python-py35 is the correct library... yeschecking whether the Boost::IOStreams library is available... yesconfigure: error: Could not link against boost_python-py35 !

我知道这是关于./configure命令和conda安装libboost到Anaconda奇怪的地方的环境变量,我只是不知道该怎么做,而我的Google-fu让我失望了.所以这是另一个死胡同.

最近在linux-64中必须安装图形工具的人能给我一个演练吗?这是在VMWare Workstation 10.0.7中运行的新VM

解决方法 为Anaconda Python 3.5,Ubuntu 14.04安装图形工具2.26.

注意:在我写这篇文章时,ostrokach通道conda install of @R_89_3404@仅在版本2.18.

这是我用来安装图形工具2.26的docker文件.可能有一种更清洁的方式,但到目前为止,这是我唯一能够拼凑起来实际工作的东西.

注意:如果您不熟悉docker文件并且只想从终端进行安装,请忽略第一行(从FROM开始),忽略每次出现的单词RUN,以及您剩下的是一系列在终端中执行的命令.

FROM [your 14.04 base image]RUN conda upgrade -y condaRUN conda upgrade -y matplotlibRUN \add-apt-repository -y ppa:ubuntu-toolchain-r/test && \apt-get update -y && \apt-get install -y gcc-5 g++-5 && \update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5RUN wget https://github.com/Cgal/cgal/archive/releases/Cgal-4.10.2.tar.gz && \tar xzf Cgal-4.10.2.tar.gz && \cd cgal-releases-Cgal-4.10.2/ && \cmake . && \make && \make installRUN cd /tmp && \# note: master branch of repo appears relatively stable,has not been updated since 2016git clone https://github.com/sparsehash/sparsehash.git && \cd sparsehash && \./configure && \make && \make installRUN apt-get updateRUN apt-get install -y build-essential g++ python-dev autotools-dev libicu-dev build-essential libbz2-dev libboost-all-devRUN apt-get install -y autogen autoconf libtool shtool# install boostRUN cd /tmp && \wget https://dl.bintray.com/boostorg/release/1.66.0/source/boost_1_66_0.tar.gz && \tar xzvf boost_1_66_0.tar.gz && \cd boost_1_66_0 && \sudo ./bootstrap.sh --prefix=/usr/local && \sudo ./b2 && \sudo ./b2 install# install newer cairoRUN cd /tmp && \wget https://cairographics.org/releases/cairo-1.14.12.tar.xz && \tar xf cairo-1.14.12.tar.xz && \cd cairo-1.14.12 && \./configure && \make && \sudo make installRUN cd /tmp && \wget https://download.gnome.org/sources/libsigc++/2.99/libsigc++-2.99.10.tar.xz && \tar xf libsigc++-2.99.10.tar.xz && \cd libsigc++-2.99.10 && \./configure && \make && \sudo make install && \sudo cp ./sigc++config.h /usr/local/include/sigc++-3.0/sigc++config.hRUN cd /tmp && \wget https://www.cairographics.org/releases/cairomm-1.15.5.tar.gz && \tar xf cairomm-1.15.5.tar.gz && \cd cairomm-1.15.5 && \./configure && \make && \sudo make install && \sudo cp ./cairommconfig.h /usr/local/include/cairomm-1.16/cairomm/cairommconfig.hRUN conda install -y -c conda-forge boost pycairoRUN conda install -y -c numba numba=0.36.2RUN conda install -y -c libboost py-boost && \conda update -y cffi dbus expat pycairo pandas scipy numpy harfbuzz setuptools boostRUN apt-get install -y apt-file dbus libdbus-1-dev && \apt-file updateRUN apt-get install -y graphvizRUN conda install -y -c conda-forge python-graphvizRUN sudo apt-get install -y valgrindRUN apt-get install -y libcgal-dev libcairomm-1.0 libcairomm-1.0-dev libcairo2-dev python-cairo-devRUN conda install -y -c conda-forge pygobjectRUN conda install -y -c ostrokach gtkRUN cd /tmp && \wget https://git.skewed.de/count0/@R_89_3404@/repository/release-2.26/archive.tar.bz2 && \bunzip2 archive.tar.bz2 && \tar -xf archive.tar && \cd @R_89_3404@-release-2.26-b89e6b4e8c5dba675997d6f245b301292a5f3c59 && \# Fix problematic parts of the @R_89_3404@ configure.ac filesed -i 's/PKG_INSTALLDIR/#PKG_INSTALLDIR/' ./configure.ac && \sed -i 's/AM_PATH_PYTHON(\[2\.7\])/AM_PATH_PYTHON(\[3\.5\])/' ./configure.ac && \sed -i 's/${PYTHON}/\/usr\/local\/anaconda3\/bin\/python/' ./configure.ac && \sed -i '$a ACLOCAL_AMFLAGS = -I m4' ./Makefile.am && \sudo ./autogen.sh && \sudo ./configure CPPFLAGS="-I/usr/local/include -I/usr/local/anaconda3/pkgs/pycairo-1.15.4-py35h1b9232e_1/include -I/usr/local/include/cairo -I/usr/local/include/sigc++-3.0 -I/usr/include/freetype2" \    LDFLAGS="-L/usr/local/include -L/usr/local/lib/cairo -L/usr/local/include/sigc++-3.0 -L/usr/include/freetype2" \    PYTHON="/usr/local/anaconda3/bin/python" \    PYTHON_VERSION=3.5 \sudo make && \sudo make install

警告:制作图表工具可能需要几个小时,并且需要大于7 GB的RAM.

总结

以上是内存溢出为你收集整理的如何在linux-64上安装Anaconda Python 3.5的图形工具?全部内容,希望文章能够帮你解决如何在linux-64上安装Anaconda Python 3.5的图形工具?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/1032573.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-24
下一篇 2022-05-24

发表评论

登录后才能评论

评论列表(0条)

保存