python要装3.6版本,因为目前pyamg4.0是3.6版本
python环境下利用 whl 安装 numpy scipy matplotlib及 pyamg
vs studio安装的 python 位置C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64
PyAMG requires numpy and scipy
pip install pyamg
or
python setup.py install
or with conda (see details below)
conda config --add channels conda-forge
conda install pyamg
python、pip、whl安装和使用
https://www.cnblogs.com/klb561/p/9271322.html
python环境下利用 whl 安装 numpy scipy matplotlib及 pyamg
方法:
首先安装pip, 再cmd中将目录转到 scrip文件夹,
python -m pip install --upgrade pip
然后将whl文件copy到该文件夹,利用pip install 文件名 安装。
备注:安装完pyamg.whl, 可以用vs-code运行python程序,
也可以用Anaconda3- 5.2.0环境下(因为5.2.0的python是3.6版本)的python编译pyamg.whl,然后用spider运行pythin文件,而且spider中可以查看文件类型。