When references are made to file system paths, it is assumed that the current working directory is the FiPy distribution directory, refered to as the “base directory”, such that:
/home/username/miniconda<version>/envs/<name of the environemnt you installed fipy in>
如果出现“找不到fipy module”的错误,则不需要导出路径,只需:
conda activate <nameOfEnvironment you installed fipy there>
尝试:
从FiPy docs(http://www.ctcms.nist.gov/fipy/README.html)中:
这意味着如果FiPy存储库被克隆或tarball解包,然后目录被改为}。如果在不克隆或不使用tarball(例如使用pip代替)的情况下安装FiPy,则分发目录(基本目录)将不可用。在
fipy/
,那么就是工作目录。它将有setup.py
和{它不是从
import fipy; print(fipy.__file__)
返回的路径。这就是安装路径。在因为我对Ubuntu也有同样的问题,所以我把这个贴在这里。 如果您使用miniconda或anaconda安装,它将是:
/home/username/miniconda<version>/envs/<name of the environemnt you installed fipy in>
如果出现“找不到fipy module”的错误,则不需要导出路径,只需:conda activate <nameOfEnvironment you installed fipy there>
相关问题 更多 >
编程相关推荐