24小时热门版块排行榜    

查看: 1367  |  回复: 5

1xiaohua1

木虫 (正式写手)

[求助] 求一个 linux版本的p4vasp 已有1人参与

各位朋友,由于无法登录p4vasp官网,求一个   linux版本的p4vasp   1217467061@qq.com
回复此楼
活着,就要不停地做事
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

1xiaohua1

木虫 (正式写手)

1217467061Q]@qq.com
活着,就要不停地做事
2楼2024-10-28 16:55:02
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

rlafite

木虫 (正式写手)

【答案】应助回帖

感谢参与,应助指数 +1
You can then install py4vasp from PyPI using the pip package installer
pip install py4vasp

» 本帖已获得的红花(最新10朵)

3楼2024-10-31 00:15:35
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

1xiaohua1

木虫 (正式写手)

送红花一朵
引用回帖:
3楼: Originally posted by rlafite at 2024-10-31 00:15:35
You can then install py4vasp from PyPI using the pip package installer
pip install py4vasp

这个不知道什么原因,安装不成功
活着,就要不停地做事
4楼2024-10-31 20:54:32
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

rlafite

木虫 (正式写手)

【答案】应助回帖

★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★
1xiaohua1: 金币+50, ★★★★★最佳答案 2024-11-01 10:32:08
引用回帖:
4楼: Originally posted by 1xiaohua1 at 2024-10-31 00:54:32
这个不知道什么原因,安装不成功...

https://pypi.org/project/py4vasp/


Installation
We use the poetry dependency manager which takes care of all dependencies and maintains a virtual environment to check the code. If you want to test something in the virtual environment, just use e.g. poetry run jupyter-notebook.

We recommend installing py4vasp in a conda environment to resolve issues related to installing mdtraj with pip. To do this please use the following steps. The last step will test whether everything worked

conda create --name py4vasp-env python=3.8
git clone git@github.com:vasp-dev/py4vasp.git
pip install poetry
poetry install
conda install -c conda-forge mdtraj
poetry run pytest
Note that this will install py4vasp into the conda environment. This isolates the code from all packages you have installed in other conda environments. Using poetry makes sure that when you modify the code all the relevant dependencies are tracked.

py4vasp core
If you want to use py4vasp to develop your own scripts, you may want to limit the amount of external dependencies. To this end, we provide alternative configuration files that only install numpy, h5py, and the development dependencies. To install this core package replace the configurations files in the root folder with the ones in the core folder

cp core/* .
Then you can install py4vasp with the same steps as above. Alternatively, since py4vasp-core does not use mdtraj, you can also install everything in a virtual environment mangaged by poetry

pip install poetry
poetry install
poetry run pytest
Note that some tests will be skipped because they require the external packages to run. If you want to exclude even the development dependencies, you can run

poetry install --without dev
for the minimal installation.

Code style
Code style is enforced, but is not something the developer should spend time on, so we decided on using black and isort. Please run

black src tests
isort src tests
before committing the code. This will autoformat your code and sort the import statements in a consistent order. If you would like this code formatting to be done along with each commit, you can run

pre-commit install
Contributing to py4vasp
We welcome contributions to py4vasp. To improve the code please follow this workflow

Create an issue for the bugfix or feature you plan to work on, this gives the option to provide some input before work is invested.
Implement your work in a fork of the repository and create a pull request for it. Please make sure to test your code thoroughly and commit the tests in the pull request in the tests directory.
In the message to your merge request mention the issue the code attempts to solve.
We will try to include your merge request rapidly when all the tests pass and your code is covered by tests.
Please limit the size of a pull request to approximately 200 lines of code otherwise reviewing the changes gets unwieldy. Prefer splitting the work into multiple smaller chunks if necessary.

» 本帖已获得的红花(最新10朵)

5楼2024-11-01 00:33:34
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

1xiaohua1

木虫 (正式写手)

送红花一朵
引用回帖:
5楼: Originally posted by rlafite at 2024-11-01 00:33:34
https://pypi.org/project/py4vasp/


Installation
We use the poetry dependency manager which takes care of all dependencies and maintains a virtual environment to check the code. If you want to t ...

谢啦
活着,就要不停地做事
6楼2024-11-01 10:32:20
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 1xiaohua1 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 招调剂 +13 帆船哥 2026-03-04 15/750 2026-03-07 14:12 by 想读研究生( ?∵
[考研] 一志愿南京大学资源与环境专业283分求调剂 +8 追云?? 2026-03-04 8/400 2026-03-07 09:23 by 斩魂滴兔子!
[考研] 085600材料与化工 292分 求调剂 +6 程晴之 2026-03-06 6/300 2026-03-07 09:22 by 斩魂滴兔子!
[考研] 售渎SCI文章,我:8⊙ 55 1⊙ 54。备注【⊙=0】 +3 ipys00zm58 2026-03-06 4/200 2026-03-07 03:57 by vwchyxxzm4
[考研] 求调剂 +4 呼呼?~+123456 2026-03-05 5/250 2026-03-06 23:15 by L135790
[考研] 0805总分292,求调剂 +13 幻想之殇 2026-03-01 13/650 2026-03-06 16:40 by @飒飒飒飒
[考研] 材料与化工328求调剂 +4 。,。,。,。i 2026-03-02 4/200 2026-03-06 16:24 by @飒飒飒飒
[考研] 材料与化工304求调剂 +7 邱gl 2026-03-05 10/500 2026-03-06 01:11 by 卷柏卷柏
[考研] 考研282分求调剂,接受跨专业 +4 刘淄博 2026-03-04 7/350 2026-03-05 22:56 by 刘淄博
[考研] 材料调剂 +5 ws 上岸鸭 2026-03-05 5/250 2026-03-05 20:06 by houyaoxu
[考研] 267调剂求助 +5 聪少OZ 2026-03-04 5/250 2026-03-05 09:38 by kakakapanpan
[考研] 295求调剂 +6 等春来, 2026-03-04 6/300 2026-03-04 16:11 by zhukairuo
[考研] 085600求调剂 +4 LRZZZZZZ 2026-03-02 6/300 2026-03-04 09:11 by 无际的草原
[考研] 材料工程269求调剂 +7 白刺玫 2026-03-02 7/350 2026-03-04 08:47 by zhyzzh
[考研] 298求调剂一志愿中海洋 +3 lour. 2026-03-03 3/150 2026-03-03 20:41 by gxg2025
[考研] 26考研报考西工大材料308分求调剂 +4 weizhong123 2026-03-01 5/250 2026-03-03 12:22 by weizhong123
[考研] 化工335求调剂 +5 摸摸猫猫头 2026-03-02 5/250 2026-03-03 09:10 by houyaoxu
[考研] 清华大学 材料与化工 353分求调剂 +5 awaystay 2026-03-02 6/300 2026-03-03 09:03 by houyaoxu
[考研] 一志愿郑大材料学硕298分,求调剂 +6 wsl111 2026-03-01 6/300 2026-03-02 11:00 by ydudjddnd
[考研] 化工专硕342,一志愿大连理工大学,求调剂 +6 kyf化工 2026-02-28 7/350 2026-03-02 10:56 by 无际的草原
信息提示
请填处理意见