社区所有版块导航
Python
python开源   Django   Python   DjangoApp   pycharm  
DATA
docker   Elasticsearch  
aigc
aigc   chatgpt  
WEB开发
linux   MongoDB   Redis   DATABASE   NGINX   其他Web框架   web工具   zookeeper   tornado   NoSql   Bootstrap   js   peewee   Git   bottle   IE   MQ   Jquery  
机器学习
机器学习算法  
Python88.com
反馈   公告   社区推广  
产品
短视频  
印度
印度  
Py学习  »  Python

python2.7.12不包含numpy也不包含pip,所以我不能在gromacs中运行我的程序

Suchismita Mitra • 4 年前 • 300 次点击  

我手动下载python2.7.12,因为在我的charm文件中python2.7.15+不起作用。

在Python 2.7.12中没有pip命令,因此无法安装networkx&numpy包。

我该怎么办才能跑

python cgenff_charmm2gmx.py JZ4 jz4_fix.mol2 jz4.str charmm36-mar2019.ff

我试图在我的Python2.7.12上增加pip。但这也带来了一个错误:

suchi@DESKTOP-TR0BVV2:/mnt/c/Users/Microsoft/DESKTOP/Gromacs/Complex1$python cgenff_charmm2gmx_py3.py UNK1 jz4_fix.mol2 jz4.str charmm36-2017年7月.ff 回溯(最近一次呼叫时间): 文件“cgenff_charmm2gmx_py3.py”,第50行,in 将numpy导入为np 重要错误:没有名为“numpy”的模块 suchi@DESKTOP-TR0BVV2:/mnt/c/Users/Microsoft/DESKTOP/Gromacs/Complex1$

============ DONE ============
Conversion complete.
The molecule topology has been written to jz4.itp
Additional parameters needed by the molecule are written to jz4.prm, which needs to be included in the system .top
============ DONE ============
Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/49723
 
300 次点击  
文章 [ 1 ]  |  最新文章 4 年前
xiao-Tiger
Reply   •   1 楼
xiao-Tiger    4 年前

您可以先手动安装pip。下载 get-pip.py 然后宣判 使用下面的命令。

# download the get-pip.py
wget https://bootstrap.pypa.io/get-pip.py

# use these 2 commands to make sure you have selected the right python
which python
python --version

# install pip, should work for both python2 and python3
python get-pip.py

然后,你可以安装几乎所有你需要的软件包。 例如,

python -m pip install numpy

安装 numpy .