计算化学公社

标题: Github下载的python包怎么在服务器上使用问题 [打印本页]

作者
Author:
HZW    时间: 2021-1-29 21:26
标题: Github下载的python包怎么在服务器上使用问题
请教一下从github上下载的一个分析gromacs数据的python包,利用python setup.py install 到/usr/lib/python2.7/site-packages后不知怎么使用,求大神支招。
地址如下:
https://github.com/zhuhong/g4analysis

作者
Author:
冰释之川    时间: 2021-1-29 21:38
使用通则一般是 import xxx  导入库文件进行处理
作者
Author:
HZW    时间: 2021-1-29 21:43
冰释之川 发表于 2021-1-29 21:38
使用通则一般是 import xxx  导入库文件进行处理

具体咋操作?感觉懵了
作者
Author:
hebrewsnabla    时间: 2021-1-29 22:33
先读了程序主页的README再说
作者
Author:
HZW    时间: 2021-1-29 22:41
hebrewsnabla 发表于 2021-1-29 22:33
先读了程序主页的README再说

看了,感觉写的不全
作者
Author:
tjuptz    时间: 2021-1-29 23:12
本帖最后由 tjuptz 于 2021-1-31 17:06 编辑
HZW 发表于 2021-1-29 22:41
看了,感觉写的不全

如果功能手册里没有,建议直接问作者
作者
Author:
liyuanhe211    时间: 2021-1-30 17:58
人家写了直接带参数运行G4Analysis
作者
Author:
HZW    时间: 2021-1-30 18:34
liyuanhe211 发表于 2021-1-30 17:58
人家写了直接带参数运行G4Analysis

但是按照README中操作结果如下:
Python 2.7.5 (default, Dec 19 2020, 18:03:20)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> G4Analysis -h
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'G4Analysis' is not defined

[@mgr ~]$ G4Analysis -h
bash: G4Analysis: command not found...

作者
Author:
liyuanhe211    时间: 2021-1-30 20:21
HZW 发表于 2021-1-30 18:34
但是按照README中操作结果如下:
Python 2.7.5 (default, Dec 19 2020, 18:03:20)
[GCC 4.8.5 2015062 ...

显然不可能在Python中调用。
写全G4Analysis的路径,再不行运行python G4Analysis的路径 其他参数
作者
Author:
HZW    时间: 2021-1-30 21:09
liyuanhe211 发表于 2021-1-30 20:21
显然不可能在Python中调用。
写全G4Analysis的路径,再不行运行python G4Analysis的路径 其他参数

好的,谢谢我再试试
作者
Author:
HZW    时间: 2021-1-31 14:09
liyuanhe211 发表于 2021-1-30 20:21
显然不可能在Python中调用。
写全G4Analysis的路径,再不行运行python G4Analysis的路径 其他参数

还是不行那




欢迎光临 计算化学公社 (http://bbs.keinsci.com/) Powered by Discuz! X3.3