LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1055|回复: 1

如何安装 PsychoPy

[复制链接]
发表于 2011-4-22 21:43:02 | 显示全部楼层 |阅读模式
不好意思,又是这种安装的问题。
PsychoPy 站点: http://code.google.com/p/psychopy/http://www.psychopy.org/
其实我不懂到底有没有装上,我就将过程描述出来:
1. 我先是照着[color="Red"]这里的说明,全部安装了所有依赖的软件包
2. 由于看不懂“For non-Debian systems you need to install the dependencies below manually and then PsychoPy (with easy_install?)”括号里的内容,就照[color="red"]这里的命令
  1. easy_install -U psychopy
复制代码
敲了进去(已提升权限)
3. 终端居然好像自己下载了 PsychoPy-1.64.00-py2.6.egg 文件并开始安装,然后提示
  1. Installing psychopy_post_inst.py script to /usr/local/bin

  2. Using /usr/local/lib/python2.6/site-packages/PsychoPy-1.64.00-py2.6.egg
  3. Processing dependencies for psychopy
  4. Finished processing dependencies for psychopy
复制代码

等语
4. 若照期望,安装后应该是一个正常的程序,像 Chrome 一样,会在程序里创建快捷方式,并且有用户界面。可是,不仅程序里毫无踪影,就连终端都查找不到“psychopy”(我猜过去其程序应该就是这个了)。/usr/local/bin 里倒是有一个 psychopy_post_inst.py
5. 我无所为计,随便在提升权限后输入了
  1. psychopy_post_inst.py -install
复制代码
,提示:
  1. Adding shortcuts to >>Start>Programs>PsychoPy
  2. failed to install shortcuts
  3. <type 'exceptions.NameError'> global name 'get_special_folder_path' is not defined

  4. TOP TIP: It's a good idea to add PsychoPyIDE to your handlers for *.py files.
  5.     To do that, open a windows explorer window, go to >Tools>FoldersOptions>FileTypes.
  6.     Find .py file type, click 'Advanced' and add the command:
  7.         "C:\Python25\pythonw.exe" "C:\Python25\Lib\site-packages\PsychoPyIDE\PsychoPyIDE.py" "%1"
  8.     Now you can right-click files and open them in PsychoPy, ready-to-run :-)
复制代码

输入
  1. easy_install psychopy
复制代码
提示:
  1. Searching for psychopy
  2. Best match: PsychoPy 1.64.00
  3. Processing PsychoPy-1.64.00-py2.6.egg
  4. PsychoPy 1.64.00 is already the active version in easy-install.pth
  5. Installing psychopy_post_inst.py script to /usr/local/bin

  6. Using /usr/local/lib/python2.6/site-packages/PsychoPy-1.64.00-py2.6.egg
  7. Processing dependencies for psychopy
  8. Finished processing dependencies for psychopy
复制代码

6. 我试着给软件作者发了邮件询问如何找到自己所装的这个软件,杳无回应,[color="red"]这里倒是还有个介绍,不过也与我所做的差不多。我不知道该怎么办了。



  1. user@linux-b8md:~> easy_install --help

  2. Global options:
  3.   --verbose (-v)  run verbosely (default)
  4.   --quiet (-q)    run quietly (turns verbosity off)
  5.   --dry-run (-n)  don't actually do anything
  6.   --help (-h)     show detailed help message

  7. Options for 'easy_install' command:
  8.   --prefix                       installation prefix
  9.   --zip-ok (-z)                  install package as a zipfile
  10.   --multi-version (-m)           make apps have to require() a version
  11.   --upgrade (-U)                 force upgrade (searches PyPI for latest
  12.                                  versions)
  13.   --install-dir (-d)             install package to DIR
  14.   --script-dir (-s)              install scripts to DIR
  15.   --exclude-scripts (-x)         Don't install scripts
  16.   --always-copy (-a)             Copy all needed packages to install dir
  17.   --index-url (-i)               base URL of Python Package Index
  18.   --find-links (-f)              additional URL(s) to search for packages
  19.   --delete-conflicting (-D)      no longer needed; don't use this
  20.   --ignore-conflicts-at-my-risk  no longer needed; don't use this
  21.   --build-directory (-b)         download/extract/build in DIR; keep the
  22.                                  results
  23.   --optimize (-O)                also compile with optimization: -O1 for
  24.                                  "python -O", -O2 for "python -OO", and -O0 to
  25.                                  disable [default: -O0]
  26.   --record                       filename in which to record list of installed
  27.                                  files
  28.   --always-unzip (-Z)            don't install as a zipfile, no matter what
  29.   --site-dirs (-S)               list of directories where .pth files work
  30.   --editable (-e)                Install specified packages in editable form
  31.   --no-deps (-N)                 don't install dependencies
  32.   --allow-hosts (-H)             pattern(s) that hostnames must match
  33.   --local-snapshots-ok (-l)      allow building eggs from local checkouts

  34. usage: easy_install [options] requirement_or_url ...
  35.    or: easy_install --help
复制代码
 楼主| 发表于 2011-5-15 17:00:09 | 显示全部楼层
各位帮忙看看如何安装
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表