I'm trying to install FiPy on Python 3.6. and ran into trouble. I followed the installation instruction from the NIST website: https://www.ctcms.nist.gov/fipy/INSTALLATION.html
But at the last step pip install fipy
I get an error that I don't understand:
(MYFIPYENV) >pip install fipy Collecting fipy Cache entry deserialization failed, entry ignored Cache entry deserialization failed, entry ignored
Downloading FiPy-3.1.3.tar.gzComplete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\AppData\Local\Temp\pip-build-9xzf0bmv\fipy\setup.py", line 61 except ImportError, e: ^ SyntaxError: invalid syntax ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\AppData\Local\Temp\pip-build-9xzf0bmv\fipy\ Cache entry deserialization failed, entry ignored
Could someone please tell me what's this error about and how to fix it?
To not dupplicate the question I tried following hints:
>pip upgrade
>pip install --upgrade setuptools
>pip install ez_setup
Working on Windows 10. Thanks in advance!
FiPy is a Python 2 package.
2to3
:
https://www.ctcms.nist.gov/fipy/documentation/USAGE.html#running-under-python-3You can use conda to maintain side-by-side Py2 and Py3k installations. Conda is our recommended pathway these days, anyway. Those instructions need to be modified to ask for a specific python version:
conda create --name <MYFIPYENV> --channel guyer --channel conda-forge fipy nomkl python=2.7