24小时热门版块排行榜    

Znn3bq.jpeg
查看: 2296  |  回复: 1

qq498612563

新虫 (初入文坛)

[求助] phonopy安装的问题

http://muchong.com/bbs/viewthread.php?tid=4874998&fpage=1

按照这个帖子里面安装matplotlib时遇到的问题,好像python的环境变量设置有问题,
我用的fedora系统,系统自带的python2.7.8 和numpy1.8.2

[root@localhost matplotlib-1.4.2]# python2.7 setup.py install --home=/home//phonopy-1.9.2.1
============================================================================
Edit setup.cfg to change the build options

BUILDING MATPLOTLIB
            matplotlib: yes [1.4.2]
                python: yes [2.7.8 (default, Nov 10 2014, 08:19:26)  [GCC
                        4.9.2 20141101 (Red Hat 4.9.2-1)]]
              platform: yes [linux2]

REQUIRED DEPENDENCIES AND EXTENSIONS
                 numpy: yes [version 1.8.2]
                   six: yes [using six version 1.7.3]
              dateutil: yes [using dateutil version 1.5]
                  pytz: yes [using pytz version 2012d]
               tornado: yes [using tornado version 3.2.1]
             pyparsing: yes [using pyparsing version 2.0.1]
                 pycxx: yes [Couldn't import.  Using local copy.]
                libagg: yes [pkg-config information for 'libagg' could not
                        be found. Using local copy.]
              freetype: yes [version 2.5.3]
                   png: yes [version 1.6.10]
                 qhull: yes [pkg-config information for 'qhull' could not be
                        found. Using local copy.]

OPTIONAL SUBPACKAGES
           sample_data: yes [installing]
              toolkits: yes [installing]
                 tests: yes [using nose version 1.3.4 / mock is required to
                        run the matplotlib test suite.  pip/easy_install may
                        attempt to install it after matplotlib.]
        toolkits_tests: yes [using nose version 1.3.4 / mock is required to
                        run the matplotlib test suite.  pip/easy_install may
                        attempt to install it after matplotlib.]

OPTIONAL BACKEND EXTENSIONS
                macosx: no  [Mac OS-X only]
                qt5agg: no  [PyQt5 not found]
                qt4agg: yes [installing, Qt: 4.8.6, PyQt: 4.8.6]
                pyside: no  [PySide not found]
               gtk3agg: yes [installing, version 3.5.14]
             gtk3cairo: yes [installing, version 3.5.14]
                gtkagg: no  [The C/C++ header for pygtk (pygtk/pygtk.h)
                        could not be found.  You may need to install the
                        development package.]
                 tkagg: yes [installing, version 81008]
                 wxagg: yes [installing, version 2.8.12.0]
                   gtk: no  [The C/C++ header for pygtk (pygtk/pygtk.h)
                        could not be found.  You may need to install the
                        development package.]
                   agg: yes [installing]
                 cairo: yes [installing, pycairo version 1.8.10]
             windowing: no  [Microsoft Windows only]

OPTIONAL LATEX DEPENDENCIES
                dvipng: yes [version 1.14]
           ghostscript: yes [version 9.14]
                 latex: yes [version 3.14159265]
               pdftops: yes [version 0.26.2]

running install
Checking .pth file support in /home//phonopy-1.9.2.1/lib/python/
/bin/python2.7 -E -c pass
TEST FAILED: /home//phonopy-1.9.2.1/lib/python/ does NOT support .pth files
error: bad install directory or PYTHONPATH

You are attempting to install a package to a directory that is not
on PYTHONPATH and which Python does not read ".pth" files from.  The
installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    /home//phonopy-1.9.2.1/lib/python/

and your PYTHONPATH environment variable currently contains:

    '/home/gate/phonopy-1.9.2.1/lib64/python'

Here are some of your options for correcting the problem:

* You can choose a different installation directory, i.e., one that is
  on PYTHONPATH or supports .pth files

* You can add the installation directory to the PYTHONPATH environment
  variable.  (It must then also be on PYTHONPATH whenever you run
  Python and want to use the package(s) you are installing.)

* You can set up the installation directory to support ".pth" files by
  using one of the approaches described here:

  https://pythonhosted.org/setupto ... tallation-locations

Please make the appropriate changes for your system and try again.
回复此楼

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

就laikankan

新虫 (初入文坛)

楼主这个问题现在解决了么?
我要毕业!!!!!!!!!!!!!!!!!!!!!!!
2楼2016-04-11 18:38:50
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 学员x0PurS 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[论文投稿] 投稿求助,期刊 +4 希冀,有书读 2026-05-20 8/400 2026-05-22 10:16 by 希冀,有书读
[基金申请] 今年审到国自然15份,谈谈感受 +25 国自然国社科中 2026-05-17 26/1300 2026-05-22 10:00 by iaeyuan
[考博] 光量子物理方向 博士招生 1人(2026.09) +3 sandyworld 2026-05-15 5/250 2026-05-22 09:30 by sandyworld
[基金申请] 河北省自然科学基金 +5 Peterchao 2026-05-18 5/250 2026-05-21 22:08 by zhang5657
[文学芳草园] 献血感触 +7 呀呀好傻 2026-05-19 13/650 2026-05-21 20:15 by 呀呀好傻
[基金申请] 面上本子正文33页,违规吗?会被低分嘛? +14 1234567wang 2026-05-17 16/800 2026-05-21 17:58 by 脆脆的饼干
[基金申请] 国自然评分 +4 无名者登山 2026-05-20 5/250 2026-05-21 16:35 by swuq
[基金申请] 国自然上会要求 +7 无名者登山 2026-05-18 11/550 2026-05-21 15:50 by draco1987
[基金申请] 提交了我也来说说感想 +9 fummck 2026-05-20 10/500 2026-05-21 14:17 by draco1987
[基金申请] 评审有感 +15 popular289 2026-05-18 26/1300 2026-05-21 10:35 by 西葫芦炒鸡蛋
[论文投稿] Sci. Bull. 悲剧经验 +7 jyang1999 2026-05-16 8/400 2026-05-21 08:50 by 能丫
[考博] 云南大学材料与能源学院解琳课题组钙钛矿博士招生 +4 光伏爱好者 2026-05-17 6/300 2026-05-21 01:37 by 17520222914
[有机交流] 反应很差,大量原料没有反应 5+3 Mr.Zot 2026-05-19 8/400 2026-05-20 22:19 by Equinoxhua
[考博] 如果工作了想读博,可以边工作边读全日制嘛? 30+3 铁达火车 2026-05-18 5/250 2026-05-20 09:33 by tfang
[教师之家] 上海大学实验技术岗位非升即走 +12 嘻嘻哈哈乐呵呵 2026-05-15 13/650 2026-05-20 08:34 by xli1984
[考博] 26/27申博自荐-锂/钠电池方向 5+3 狗头军师. 2026-05-15 4/200 2026-05-19 09:10 by moonboat
[考博] 2026博士还有哪些学校有名额 +7 小王求读研 2026-05-15 8/400 2026-05-19 08:27 by zhyzzh
[考博] 博士申请 +5 星…… 2026-05-18 6/300 2026-05-18 23:49 by 糊糊涂涂好
[硕博家园] 我在等一个没有答案的答案 +3 Love_MH 2026-05-17 3/150 2026-05-18 02:22 by 竹林孤影
[硕博家园] 申请博士 +3 呃?呃 2026-05-15 3/150 2026-05-16 11:01 by a4742549
信息提示
请填处理意见